@groovy.transform.Trait @groovy.util.logging.Slf4j trait WithPropertyDefsTrait extends java.lang.Object
Inherited by traits that can have PropertyDefs: VertexDefinition and EdgedDefTrait
Type | Name and description |
---|---|
java.util.Set<PropertyDefinition> |
propertyDefs The set of property definitions |
Type Params | Return Type | Name and description |
---|---|---|
|
java.util.Set<Property> |
definedPropertiesOf(org.apache.tinkerpop.gremlin.structure.Element e) Return the set of properties of the provided element that are defined by this trait. |
|
java.util.Set<PropertyDefinition> |
getDefaultProperties() Get the property definitions that have default values set. |
|
java.util.Set<PropertyDefinition> |
getIndexedProperties() Get the property definitions that should be indexed by the graph database engine. |
|
java.util.Set<java.lang.String> |
getIndexedPropertyLabels() Get the labels of the properties that should be indexes in the graph database engine. |
|
java.util.Set<PropertyDefinition> |
getRequiredProperties() Get the set of property definitions that should be required to have values in instantiated elements. |
|
java.util.Set<java.lang.String> |
getRequiredPropertyLabels() Get the labels of the properties that should be required across instantiated graph elements. |
|
java.util.Set<PropertyDefinition> |
getUniqueProperties() Get the set of property definitions whose values should be unique across the instantiated elements. |
|
java.util.Set<java.lang.String> |
getUniquePropertyLabels() Get the labels of the properties that should have unique values across instantiated graph elements. |
|
WithPropertyDefsTrait |
withPropertyDef(PropertyDefinition propertyDef) Add the provided property definition to the set of stored property definitions. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The set of property definitions
Return the set of properties of the provided element that are defined by this trait.
e
- The element to testGet the property definitions that have default values set.
Get the property definitions that should be indexed by the graph database engine.
Get the labels of the properties that should be indexes in the graph database engine.
Get the set of property definitions that should be required to have values in instantiated elements.
Get the labels of the properties that should be required across instantiated graph elements.
Get the set of property definitions whose values should be unique across the instantiated elements.
Get the labels of the properties that should have unique values across instantiated graph elements.
Add the provided property definition to the set of stored property definitions.
propertyDef
- The property definition to store