Class SchemaEntity
java.lang.Object
com.aquima.interactions.communication.impl.evaluator.parser.SchemaEntity
- All Implemented Interfaces:
Serializable
- Since:
- 11.3
- Author:
- Voicu Moldovan
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SchemaEntity
(String propertyName, EntityValue reference, String propertyPath) Creates a new instance which is not a hidden root.protected
SchemaEntity
(String propertyName, EntityValue reference, String propertyPath, boolean hiddenRoot) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAttribute
(SchemaAttribute attribute) protected void
addRelation
(SchemaRelation relation) getKey()
Returns the name of the property to which this entity was attached.boolean
Indicates whether this is a hidden root of a messageprotected void
setHiddenRoot
(boolean hiddenRoot) toString()
-
Constructor Details
-
SchemaEntity
Creates a new instance which is not a hidden root.- Parameters:
propertyName
- the name of the property from the parent object to which this entity is attachedreference
- the reference to the instance
-
SchemaEntity
protected SchemaEntity(String propertyName, EntityValue reference, String propertyPath, boolean hiddenRoot) Creates a new instance.- Parameters:
propertyName
- the name of the property from the parent object to which this entity instance is attachedreference
- the reference to the instancehiddenRoot
- indicates that this instance is the hidden root of a message
-
-
Method Details
-
isHiddenRoot
public boolean isHiddenRoot()Indicates whether this is a hidden root of a message- Returns:
- true if this is a hidden root, false otherwise.
-
setHiddenRoot
protected void setHiddenRoot(boolean hiddenRoot) -
getKey
-
getPropertyName
Returns the name of the property to which this entity was attached.For example, in the JSON message:
"person":{"firstName":"John", "lastName":"Smith"}
, the object represented by this SchemaEntity is{"firstName":"John", "lastName":"Smith"}
and its property name is "person".Note that the property name may be null, for instance for the root object in a JSON, or for objects which are array members.
- Returns:
- the property name of this entity, may be null.
-
addAttribute
-
addRelation
-
getAttributes
-
getRelations
-
getReference
-
toString
-