Package org.umlg.sqlg.structure
Record Class PropertyDefinition
java.lang.Object
java.lang.Record
org.umlg.sqlg.structure.PropertyDefinition
- Record Components:
 propertyType- The type of the propertymultiplicity- The multiplicity of the propertydefaultLiteral- The default value of the propertycheckConstraint- A constraint on valid values for the property.temp- Only to be used internally. If true then the multiplicity will not be validated.
public record PropertyDefinition(PropertyType propertyType, Multiplicity multiplicity, String defaultLiteral, String checkConstraint, boolean temp)
extends Record
Represents a Vertex or Edge property.
- 
Constructor Summary
ConstructorsConstructorDescriptionPropertyDefinition(PropertyType propertyType, Multiplicity multiplicity, String defaultLiteral, String checkConstraint, boolean temp) Creates an instance of aPropertyDefinitionrecord class. - 
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecheckConstraintrecord component.Returns the value of thedefaultLiteralrecord component.final booleanIndicates whether some other object is "equal to" this one.static PropertyDefinitionfromNotifyJson(com.fasterxml.jackson.databind.JsonNode jsonNode) final inthashCode()Returns a hash code value for this object.Returns the value of themultiplicityrecord component.static PropertyDefinitionof(PropertyType propertyType) static PropertyDefinitionof(PropertyType propertyType, Multiplicity multiplicity) static PropertyDefinitionof(PropertyType propertyType, Multiplicity multiplicity, String defaultLiteral) static PropertyDefinitionof(PropertyType propertyType, Multiplicity multiplicity, String defaultLiteral, String checkConstraint) Returns the value of thepropertyTyperecord component.booleantemp()Returns the value of thetemprecord component.static PropertyDefinitiontemp(PropertyType propertyType) com.fasterxml.jackson.databind.node.ObjectNodefinal StringtoString()Returns a string representation of this record class. 
- 
Constructor Details
- 
PropertyDefinition
public PropertyDefinition(PropertyType propertyType, Multiplicity multiplicity, String defaultLiteral, String checkConstraint, boolean temp) Creates an instance of aPropertyDefinitionrecord class.- Parameters:
 propertyType- the value for thepropertyTyperecord componentmultiplicity- the value for themultiplicityrecord componentdefaultLiteral- the value for thedefaultLiteralrecord componentcheckConstraint- the value for thecheckConstraintrecord componenttemp- the value for thetemprecord component
 
 - 
 - 
Method Details
- 
of
 - 
temp
 - 
of
 - 
of
public static PropertyDefinition of(PropertyType propertyType, Multiplicity multiplicity, String defaultLiteral)  - 
of
public static PropertyDefinition of(PropertyType propertyType, Multiplicity multiplicity, String defaultLiteral, String checkConstraint)  - 
toNotifyJson
public com.fasterxml.jackson.databind.node.ObjectNode toNotifyJson() - 
fromNotifyJson
 - 
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. - 
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. - 
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. - 
propertyType
Returns the value of thepropertyTyperecord component.- Returns:
 - the value of the 
propertyTyperecord component 
 - 
multiplicity
Returns the value of themultiplicityrecord component.- Returns:
 - the value of the 
multiplicityrecord component 
 - 
defaultLiteral
Returns the value of thedefaultLiteralrecord component.- Returns:
 - the value of the 
defaultLiteralrecord component 
 - 
checkConstraint
Returns the value of thecheckConstraintrecord component.- Returns:
 - the value of the 
checkConstraintrecord component 
 - 
temp
public boolean temp()Returns the value of thetemprecord component.- Returns:
 - the value of the 
temprecord component 
 
 -