Class SerializedClassifierInstance
java.lang.Object
io.lionweb.lioncore.java.serialization.data.SerializedClassifierInstance
Lower level representation of a Classifier Instance (either a Node or an AnnotationInstance)
which is used to load classifier instances during serialization. Note that also "broken"
classifier instances can be loaded.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAnnotation
(String annotationID) void
addChildren
(MetaPointer containment, List<String> childrenIds) void
addContainmentValue
(SerializedContainmentValue containmentValue) void
addPropertyValue
(SerializedPropertyValue propertyValue) void
addReferenceValue
(MetaPointer reference, List<SerializedReferenceValue.Entry> referenceValues) void
addReferenceValue
(SerializedReferenceValue referenceValue) void
Remove all containments.boolean
getContainmentValues
(MetaPointer containmentMetaPointer) getID()
getPropertyValue
(MetaPointer propertyMetaPointer) getPropertyValue
(String propertyKey) getReferenceValues
(MetaPointer referenceMetaPointer) getReferenceValues
(String referenceKey) int
hashCode()
void
setAnnotations
(List<String> annotationIDs) void
setClassifier
(MetaPointer classifier) void
void
setParentNodeID
(String parentNodeID) void
setPropertyValue
(MetaPointer property, String serializedValue) toString()
-
Constructor Details
-
SerializedClassifierInstance
public SerializedClassifierInstance() -
SerializedClassifierInstance
-
-
Method Details
-
getParentNodeID
-
setParentNodeID
-
clearContainments
public void clearContainments()Remove all containments. This is useful when we want to create a partition, as they cannot be created with children. Children can only be added in a second moment. -
getContainments
-
getChildren
-
getReferences
-
getAnnotations
-
getProperties
-
addPropertyValue
-
addContainmentValue
-
addReferenceValue
-
getClassifier
-
setClassifier
-
getID
-
setID
-
setPropertyValue
-
addChildren
-
addReferenceValue
public void addReferenceValue(MetaPointer reference, List<SerializedReferenceValue.Entry> referenceValues) -
getPropertyValue
-
getPropertyValue
-
getReferenceValues
-
getReferenceValues
@Nonnull public List<SerializedReferenceValue.Entry> getReferenceValues(@Nonnull MetaPointer referenceMetaPointer) -
getContainmentValues
-
setAnnotations
-
addAnnotation
-
equals
-
hashCode
public int hashCode() -
toString
-