Class PropertysetRecordingSaveTime
- java.lang.Object
-
- no.priv.bang.modeling.modelstore.value.PropertysetRecordingSaveTime
-
- All Implemented Interfaces:
Map<String,Value>
,Propertyset
class PropertysetRecordingSaveTime extends Object implements Propertyset
This is an implementation ofPropertyset
that wraps aPropertysetImpl
object, and has a back reference to the ModelContextRecordingMetadata that is used to set the lastmodifiedtime of thePropertyset
.
-
-
Field Summary
Fields Modifier and Type Field Description private Propertyset
propertyset
private ModificationRecorder
recorder
-
Fields inherited from interface no.priv.bang.modeling.modelstore.services.Propertyset
ASPECTS_KEY, ID_KEY
-
-
Constructor Summary
Constructors Constructor Description PropertysetRecordingSaveTime(ModificationRecorder recorder, Propertyset propertyset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAspect(Propertyset aspect)
void
clear()
boolean
containsKey(Object key)
boolean
containsValue(Object value)
void
copyValues(Propertyset propertyset)
Copy all property values from the propertyset given as argument into the current propertyset, except for the "id" property.Set<Map.Entry<String,Value>>
entrySet()
boolean
equals(Object obj)
Value
get(Object key)
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()
(package private) Propertyset
getPropertyset()
Propertyset
getReferenceProperty(String propertyname)
String
getStringProperty(String propertyname)
boolean
hasAspect()
int
hashCode()
boolean
hasId()
boolean
isEmpty()
boolean
isNil()
Set<String>
keySet()
Value
put(String key, Value value)
void
putAll(Map<? extends String,? extends Value> map)
Value
remove(Object key)
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)
int
size()
String
toString()
Collection<Value>
values()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Field Detail
-
recorder
private ModificationRecorder recorder
-
propertyset
private Propertyset propertyset
-
-
Constructor Detail
-
PropertysetRecordingSaveTime
public PropertysetRecordingSaveTime(ModificationRecorder recorder, Propertyset propertyset)
-
-
Method Detail
-
copyValues
public void copyValues(Propertyset propertyset)
Description copied from interface:Propertyset
Copy all property values from the propertyset given as argument into the current propertyset, except for the "id" property.- Specified by:
copyValues
in interfacePropertyset
- Parameters:
propertyset
- thePropertyset
to copy from
-
getPropertyset
Propertyset getPropertyset()
-
isNil
public boolean isNil()
- Specified by:
isNil
in interfacePropertyset
-
getPropertynames
public Collection<String> getPropertynames()
- Specified by:
getPropertynames
in interfacePropertyset
-
getProperty
public Value getProperty(String propertyname)
- Specified by:
getProperty
in interfacePropertyset
-
setProperty
public void setProperty(String propertyname, Value property)
- Specified by:
setProperty
in interfacePropertyset
-
addAspect
public void addAspect(Propertyset aspect)
- Specified by:
addAspect
in interfacePropertyset
-
hasAspect
public boolean hasAspect()
- Specified by:
hasAspect
in interfacePropertyset
-
getAspects
public ValueList getAspects()
- Specified by:
getAspects
in interfacePropertyset
-
hasId
public boolean hasId()
- Specified by:
hasId
in interfacePropertyset
-
getId
public UUID getId()
- Specified by:
getId
in interfacePropertyset
-
getBooleanProperty
public Boolean getBooleanProperty(String propertyname)
- Specified by:
getBooleanProperty
in interfacePropertyset
-
setBooleanProperty
public void setBooleanProperty(String propertyname, Boolean boolValue)
- Specified by:
setBooleanProperty
in interfacePropertyset
-
setBooleanProperty
public void setBooleanProperty(String propertyname, boolean boolValue)
- Specified by:
setBooleanProperty
in interfacePropertyset
-
getLongProperty
public Long getLongProperty(String propertyname)
- Specified by:
getLongProperty
in interfacePropertyset
-
setLongProperty
public void setLongProperty(String propertyname, Long intValue)
- Specified by:
setLongProperty
in interfacePropertyset
-
setLongProperty
public void setLongProperty(String propertyname, long intvalue)
- Specified by:
setLongProperty
in interfacePropertyset
-
getDoubleProperty
public Double getDoubleProperty(String propertyname)
- Specified by:
getDoubleProperty
in interfacePropertyset
-
setDoubleProperty
public void setDoubleProperty(String propertyname, Double doubleValue)
- Specified by:
setDoubleProperty
in interfacePropertyset
-
setDoubleProperty
public void setDoubleProperty(String propertyname, double doubleValue)
- Specified by:
setDoubleProperty
in interfacePropertyset
-
getStringProperty
public String getStringProperty(String propertyname)
- Specified by:
getStringProperty
in interfacePropertyset
-
setStringProperty
public void setStringProperty(String propertyname, String stringValue)
- Specified by:
setStringProperty
in interfacePropertyset
-
getComplexProperty
public Propertyset getComplexProperty(String propertyname)
- Specified by:
getComplexProperty
in interfacePropertyset
-
setComplexProperty
public void setComplexProperty(String propertyname, Propertyset complexProperty)
- Specified by:
setComplexProperty
in interfacePropertyset
-
getReferenceProperty
public Propertyset getReferenceProperty(String propertyname)
- Specified by:
getReferenceProperty
in interfacePropertyset
-
setReferenceProperty
public void setReferenceProperty(String propertyname, Propertyset referencedObject)
- Specified by:
setReferenceProperty
in interfacePropertyset
-
getListProperty
public ValueList getListProperty(String propertyname)
- Specified by:
getListProperty
in interfacePropertyset
-
setListProperty
public void setListProperty(String propertyname, ValueList listValue)
- Specified by:
setListProperty
in interfacePropertyset
-
hashCode
public int hashCode()
-
equals
public boolean equals(Object obj)
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interfaceMap<String,Value>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interfaceMap<String,Value>
-
-