Package io.lionweb.serialization.data
Class SerializedClassifierInstance
java.lang.Object
io.lionweb.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 TypeMethodDescriptionvoidaddAnnotation(String annotationID) voidaddChildren(MetaPointer containment, List<String> childrenIds) voidaddContainmentValue(SerializedContainmentValue containmentValue) voidaddPropertyValue(SerializedPropertyValue propertyValue) voidaddReferenceValue(MetaPointer reference, List<SerializedReferenceValue.Entry> referenceValues) voidaddReferenceValue(SerializedReferenceValue referenceValue) voidRemove all containments.booleangetContainmentValues(MetaPointer containmentMetaPointer) getID()getPropertyValue(MetaPointer propertyMetaPointer) getPropertyValue(String propertyKey) getReferenceValues(MetaPointer referenceMetaPointer) getReferenceValues(String referenceKey) inthashCode()voidsetAnnotations(List<String> annotationIDs) voidsetClassifier(MetaPointer classifier) voidvoidsetParentNodeID(String parentNodeID) voidsetPropertyValue(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
-