
public class Properties extends ModelObject implements Cloneable, Serializable
| Constructor and Description |
|---|
Properties()
Creates a new
Properties instance. |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Creates and returns a deep copy of this object.
|
boolean |
equals(Object o)
Indicates whether some other object is equal to this one by comparing
the values of all properties.
|
Property[] |
getProperties()
Gets the properties of the collection.
|
Property |
getProperty(int index)
Gets a property for an index.
|
Property |
getProperty(String name)
Gets a property for a name.
|
int |
hashCode()
Returns a hash code value for this object.
|
void |
setProperties(Property[] value)
Setter for property
properties. |
Property |
setProperty(Property property)
Setter for a named property from property
properties. |
int |
size()
Gets the number of properties held by the instance.
|
String |
toString()
Returns a string representation of the object.
|
getDocumentation, getModelVersion, setDocumentation, setModelVersionpublic Properties()
Properties instance.public boolean equals(Object o)
public Property[] getProperties()
public final Property getProperty(int index)
index - the index of the property to return.index.IndexOutOfBoundsException - if index is negativ,
greater than or equal to size().public Property getProperty(String name)
name - the name of the property to return.name.NullPointerException - if name is null.MissingPropertyException - if no property matching name
exists in the collection.public int hashCode()
public void setProperties(Property[] value)
properties.value - the new collection of properties.DuplicatePropertyException - if value contains duplicate
properties.public Property setProperty(Property property)
properties.property - the property to update or to add to property
properties.property.getName()
or null if no property with name property.getName()
existed before.NullPointerException - if property is null.IllegalArgumentException - if a property with the same name but
different type exists.public final int size()
Copyright © 2005-2012 jDTAUS. All Rights Reserved.