Class DynamicNode
java.lang.Object
io.lionweb.lioncore.java.model.impl.AbstractClassifierInstance<T>
io.lionweb.lioncore.java.model.impl.DynamicClassifierInstance<Concept>
io.lionweb.lioncore.java.model.impl.DynamicNode
- All Implemented Interfaces:
ClassifierInstance<Concept>
,HasFeatureValues
,HasSettableParent
,Node
public class DynamicNode
extends DynamicClassifierInstance<Concept>
implements Node, HasSettableParent
DynamicNode can be used to represent Node of any Concept. The drawback is that this class expose
only homogeneous-APIs (e.g., getProperty('book')) and not heterogeneous-APIs (e.g., getBook()).
-
Field Summary
Fields inherited from class io.lionweb.lioncore.java.model.impl.DynamicClassifierInstance
containmentValues, id, propertyValues, referenceValues
Fields inherited from class io.lionweb.lioncore.java.model.impl.AbstractClassifierInstance
annotations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
The concept of which this Node is an instance.Return the Containment feature used to hold this Node within its parent.The immediate parent of the Node.int
hashCode()
void
setConcept
(Concept concept) void
setParent
(ClassifierInstance<?> parent) toString()
Methods inherited from class io.lionweb.lioncore.java.model.impl.DynamicClassifierInstance
addChild, addReferenceValue, getChildren, getID, getPropertyValue, getReferenceValues, removeChild, removeChild, removeReferenceValue, removeReferenceValue, setID, setPropertyValue, setReferenceValues
Methods inherited from class io.lionweb.lioncore.java.model.impl.AbstractClassifierInstance
addAnnotation, getAnnotations, getAnnotations, removeAnnotation
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.lionweb.lioncore.java.model.ClassifierInstance
addAnnotation, getAnnotations, getAnnotations, removeAnnotation
Methods inherited from interface io.lionweb.lioncore.java.model.HasFeatureValues
addChild, addReferenceValue, getChildren, getPropertyValue, getReferenceValues, removeChild, removeChild, removeReferenceValue, removeReferenceValue, setPropertyValue, setReferenceValues
Methods inherited from interface io.lionweb.lioncore.java.model.Node
getID, getRoot, isRoot, thisAndAllDescendants
-
Constructor Details
-
DynamicNode
-
DynamicNode
public DynamicNode()
-
-
Method Details
-
setConcept
-
getParent
Description copied from interface:ClassifierInstance
The immediate parent of the Node. This should be null only for root nodes.- Specified by:
getParent
in interfaceClassifierInstance<Concept>
- Specified by:
getParent
in interfaceNode
-
getClassifier
Description copied from interface:Node
The concept of which this Node is an instance. The Concept should not be abstract.- Specified by:
getClassifier
in interfaceClassifierInstance<Concept>
- Specified by:
getClassifier
in interfaceNode
-
getContainmentFeature
Description copied from interface:Node
Return the Containment feature used to hold this Node within its parent. This will be null only for root nodes or dangling nodes (which are not distinguishable by looking at the node itself).- Specified by:
getContainmentFeature
in interfaceNode
- See Also:
-
setParent
- Specified by:
setParent
in interfaceHasSettableParent
-
equals
-
hashCode
public int hashCode() -
toString
-