public class ElementProperties extends Object implements Serializable
| Constructor and Description |
|---|
ElementProperties()
Typical constructor
|
ElementProperties(ElementProperties 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.
|
Map<String,PropertyValue> |
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.
|
PropertyValue |
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 |
setInstanceProperties(Map<String,PropertyValue> instanceProperties)
Set up the instance properties map.
|
void |
setProperty(String newPropertyName,
PropertyValue newPropertyValue)
Adds or updates an instance property.
|
String |
toString()
Standard toString method.
|
public ElementProperties()
public ElementProperties(ElementProperties templateProperties)
templateProperties - template object to copy.public Map<String,PropertyValue> getInstanceProperties()
public void setInstanceProperties(Map<String,PropertyValue> instanceProperties)
instanceProperties - map of name valued propertiespublic Iterator<String> getPropertyNames()
public PropertyValue getPropertyValue(String name)
name - String name of the property to return.public void setProperty(String newPropertyName, PropertyValue newPropertyValue)
newPropertyName - namenewPropertyValue - valuepublic int getPropertyCount()
public String toString()
public boolean equals(Object objectToCompare)
Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.