public class InstanceProperties extends InstanceElementHeader
| Constructor and Description |
|---|
InstanceProperties()
Typical constructor
|
InstanceProperties(InstanceProperties templateProperties)
Copy/clone constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object objectToCompare)
Validate that an object is equal depending on their stored values.
|
Date |
getEffectiveFromTime()
Return the date/time that this instance should start to be used (null means it can be used from creationTime).
|
Date |
getEffectiveToTime()
Return the date/time that this instance should no longer be used.
|
Map<String,InstancePropertyValue> |
getInstanceProperties()
Return the instance properties as a map.
|
int |
getPropertyCount()
Return the number of properties stored.
|
Iterator<String> |
getPropertyNames()
Returns a list of the instance properties for the element.
|
InstancePropertyValue |
getPropertyValue(String name)
Returns the requested instance property for the element.
|
int |
hashCode()
Return a hash code based on the values of this object.
|
void |
setEffectiveFromTime(Date effectiveFromTime)
Set up the date/time that this instance should start to be used (null means it can be used from creationTime).
|
void |
setEffectiveToTime(Date effectiveToTime)
Set up the date/time that this instance should no longer be used.
|
void |
setInstanceProperties(Map<String,InstancePropertyValue> instanceProperties)
Set up the instance properties map.
|
void |
setProperty(String newPropertyName,
InstancePropertyValue newPropertyValue)
Adds or updates an instance property.
|
String |
toString()
Standard toString method.
|
public InstanceProperties()
public InstanceProperties(InstanceProperties templateProperties)
templateProperties - template object to copy.public Date getEffectiveFromTime()
public void setEffectiveFromTime(Date effectiveFromTime)
effectiveFromTime - Date objectpublic Date getEffectiveToTime()
public void setEffectiveToTime(Date effectiveToTime)
effectiveToTime - Date objectpublic Map<String,InstancePropertyValue> getInstanceProperties()
public void setInstanceProperties(Map<String,InstancePropertyValue> instanceProperties)
instanceProperties - map of name valued propertiespublic Iterator<String> getPropertyNames()
public InstancePropertyValue getPropertyValue(String name)
name - String name of the property to return.public void setProperty(String newPropertyName, InstancePropertyValue newPropertyValue)
newPropertyName - namenewPropertyValue - valuepublic int getPropertyCount()
public String toString()
public boolean equals(Object objectToCompare)
Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.