Module dev.metaschema.core
Class AbstractInstanceNodeItem<D extends IDefinition,I extends INamedInstance,P extends IModelNodeItem<? extends IModelDefinition,? extends INamedInstance>>
java.lang.Object
dev.metaschema.core.metapath.item.node.AbstractNodeItem
dev.metaschema.core.metapath.item.node.AbstractInstanceNodeItem<D,I,P>
- Type Parameters:
D- the Java type of the definitionI- the Java type of the instanceP- the Java type of the parent node item
- All Implemented Interfaces:
IPathSegment,ICollectionValue,IItem,IDefinitionNodeItem<D,,I> INodeItem,INodeItemVisitable,IMetapathQueryable
- Direct Known Subclasses:
AbstractFlagInstanceNodeItem
public abstract class AbstractInstanceNodeItem<D extends IDefinition,I extends INamedInstance,P extends IModelNodeItem<? extends IModelDefinition,? extends INamedInstance>>
extends AbstractNodeItem
implements IDefinitionNodeItem<D,I>
A base implementation of a node item backed by a Metaschema instance.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.metaschema.core.metapath.item.node.INodeItem
INodeItem.NodeType -
Constructor Summary
ConstructorsConstructorDescriptionAbstractInstanceNodeItem(I instance, P parent) Construct a new instance node item. -
Method Summary
Modifier and TypeMethodDescriptionGet the Metaschema definition associated with this node.Retrieve the instance associated with this path segment.Retrieve the parent content node item if it exists.Retrieve the parent node item if it exists.Methods inherited from class dev.metaschema.core.metapath.item.node.AbstractNodeItem
getValueSignature, toSignature, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.metaschema.core.metapath.item.ICollectionValue
deepEquals, toSignatureMethods inherited from interface dev.metaschema.core.metapath.item.node.IDefinitionNodeItem
getLocation, getQNameMethods 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, getFlagByName, getFlags, getMetapath, getModelItems, getModelItemsByName, getNodeItemKind, getNodeType, 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
-
Constructor Details
-
AbstractInstanceNodeItem
Construct a new instance node item.- Parameters:
instance- the Metaschema instance this node representsparent- the parent node item containing this instance
-
-
Method Details
-
getDefinition
Description copied from interface:IDefinitionNodeItemGet the Metaschema definition associated with this node.- Specified by:
getDefinitionin interfaceIDefinitionNodeItem<D extends IDefinition,I extends INamedInstance> - Returns:
- the definition
-
getInstance
Description copied from interface:IDefinitionNodeItemRetrieve the instance associated with this path segment.- Specified by:
getInstancein interfaceIDefinitionNodeItem<D extends IDefinition,I extends INamedInstance> - Returns:
- the instance of the segment, or
nullif it doesn't have one
-
getParentNodeItem
Description copied from interface:INodeItemRetrieve the parent node item if it exists.- Specified by:
getParentNodeItemin interfaceINodeItem- Returns:
- the parent node item, or
nullif this node item has no known parent
-
getParentContentNodeItem
Description copied from interface:INodeItemRetrieve the parent content node item if it exists. A content node is a non-document node.- Specified by:
getParentContentNodeItemin interfaceINodeItem- Returns:
- the parent content node item, or
nullif this node item has no known parent content node item
-