Module dev.metaschema.core
Interface IFeatureFlagContainerItem
- All Superinterfaces:
ICollectionValue,IItem,IMetapathQueryable,INodeItem,INodeItemVisitable,IPathSegment
- All Known Subinterfaces:
IFeatureModelContainerItem
This mixin interface indicates that the implementation is a
INodeItem
that is based on an IModelDefinition. This means it has flag
children.
If an implementation may have flag and model children, or model children
only, then the IFeatureModelContainerItem should be used instead.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classProvides an abstract implementation of a model that contains a collection of flags.Nested classes/interfaces inherited from interface dev.metaschema.core.metapath.item.node.INodeItem
INodeItem.NodeType -
Method Summary
Modifier and TypeMethodDescriptiondefault IFlagNodeItemgetFlagByName(IEnhancedQName name) Lookup a flag and value data on this node by it's effective qualified name.default Collection<IFlagNodeItem>getFlags()Get the flags and value data associated this node.getModel()Get the model implementation that potentially contains flags.default Collection<? extends List<? extends IModelNodeItem<?,?>>> Get the model items (i.e., fields, assemblies) and value data associated this node.default List<? extends IModelNodeItem<?,?>> Get the collection of model items associated with the instance having the providedname.Methods inherited from interface dev.metaschema.core.metapath.item.ICollectionValue
deepEquals, toSignatureMethods inherited from interface dev.metaschema.core.metapath.item.IItem
atomize, contentsAsSequence, flatten, getType, getValue, hasValue, toAtomicItem, toSequenceMethods inherited from interface dev.metaschema.core.metapath.item.node.INodeItem
accept, ancestor, ancestorOrSelf, descendant, descendantOrSelf, flags, following, followingSibling, format, getBaseUri, getLocation, getMetapath, getNodeItemKind, getNodeType, getParentContentNodeItem, getParentNodeItem, getPathStream, getPosition, getStaticContext, modelItems, preceding, precedingSibling, stringValueMethods inherited from interface dev.metaschema.core.metapath.item.node.INodeItemVisitable
acceptMethods inherited from interface dev.metaschema.core.metapath.format.IPathSegment
getNodeItem, getPath, toPath
-
Method Details
-
getModel
Get the model implementation that potentially contains flags.- Returns:
- the model
-
getFlags
Description copied from interface:INodeItemGet the flags and value data associated this node. The resulting collection is expected to be ordered, with the results in document order.The resulting collection may be modified, but such modification is not thread safe
-
getFlagByName
Description copied from interface:INodeItemLookup a flag and value data on this node by it's effective qualified name.- Specified by:
getFlagByNamein interfaceINodeItem- Parameters:
name- the effective qualified name of the flag- Returns:
- the flag with the matching effective name or
nullif no match was found
-
getModelItems
Description copied from interface:INodeItemGet the model items (i.e., fields, assemblies) and value data associated this node. A given model instance can be multi-valued, so the value of each instance will be a list. The resulting collection is expected to be ordered, with the results in document order.The resulting collection may be modified, but such modification is not thread safe
- Specified by:
getModelItemsin interfaceINodeItem- Returns:
- a collection of list(s), with each list containing the items for a given model instance
-
getModelItemsByName
Description copied from interface:INodeItemGet the collection of model items associated with the instance having the providedname.The resulting collection may be modified, but such modification is not thread safe
- Specified by:
getModelItemsByNamein interfaceINodeItem- Parameters:
name- the instance name to get model items for- Returns:
- the sequence of items associated with the named model instance, or an empty list if an instance with that name is not present
-