Interface Propertyset
-
- All Known Implementing Classes:
PropertysetImpl
,PropertysetNil
,PropertysetRecordingSaveTime
public interface Propertyset extends Map<String,Value>
Interface defining a class that can function as both nodes and edges in a model graph. The graph shold be easy to work and there should be no need to check for null values: the typed property accessors will never return null. The raw property accessors will return null values for unset properties, but the raw accessors are mainly intended for reflection.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ASPECTS_KEY
static String
ID_KEY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addAspect(Propertyset aspect)
void
copyValues(Propertyset propertyset)
Copy all property values from the propertyset given as argument into the current propertyset, except for the "id" property.ValueList
getAspects()
Boolean
getBooleanProperty(String propertyname)
Propertyset
getComplexProperty(String propertyname)
Double
getDoubleProperty(String propertyname)
UUID
getId()
ValueList
getListProperty(String propertyname)
Long
getLongProperty(String propertyname)
Value
getProperty(String propertyname)
Collection<String>
getPropertynames()
Propertyset
getReferenceProperty(String propertyname)
String
getStringProperty(String propertyname)
boolean
hasAspect()
boolean
hasId()
boolean
isNil()
void
setBooleanProperty(String propertyname, boolean boolValue)
void
setBooleanProperty(String propertyname, Boolean boolValue)
void
setComplexProperty(String propertyname, Propertyset complexProperty)
void
setDoubleProperty(String propertyname, double doubleValue)
void
setDoubleProperty(String propertyname, Double doubleValue)
void
setListProperty(String propertyname, ValueList listValue)
void
setLongProperty(String propertyname, long intvalue)
void
setLongProperty(String propertyname, Long intValue)
void
setProperty(String propertyname, Value property)
void
setReferenceProperty(String propertyname, Propertyset referencedObject)
void
setStringProperty(String propertyname, String stringValue)
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Field Detail
-
ID_KEY
static final String ID_KEY
- See Also:
- Constant Field Values
-
ASPECTS_KEY
static final String ASPECTS_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
copyValues
void copyValues(Propertyset propertyset)
Copy all property values from the propertyset given as argument into the current propertyset, except for the "id" property.- Parameters:
propertyset
- thePropertyset
to copy from
-
isNil
boolean isNil()
-
getPropertynames
Collection<String> getPropertynames()
-
addAspect
void addAspect(Propertyset aspect)
-
hasAspect
boolean hasAspect()
-
getAspects
ValueList getAspects()
-
hasId
boolean hasId()
-
getId
UUID getId()
-
setBooleanProperty
void setBooleanProperty(String propertyname, boolean boolValue)
-
setLongProperty
void setLongProperty(String propertyname, long intvalue)
-
setDoubleProperty
void setDoubleProperty(String propertyname, double doubleValue)
-
getComplexProperty
Propertyset getComplexProperty(String propertyname)
-
setComplexProperty
void setComplexProperty(String propertyname, Propertyset complexProperty)
-
getReferenceProperty
Propertyset getReferenceProperty(String propertyname)
-
setReferenceProperty
void setReferenceProperty(String propertyname, Propertyset referencedObject)
-
-