|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jdtaus.core.container.ModelObject
org.jdtaus.core.container.Properties
public class Properties
Collection of properties.
| Constructor Summary | |
|---|---|
Properties()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.jdtaus.core.container.ModelObject |
|---|
getDocumentation, getModelVersion, setDocumentation, setModelVersion |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Properties()
| Method Detail |
|---|
public Object clone()
clone in class Objectpublic boolean equals(Object o)
equals in class Objecto - the reference object with which to compare.
true if this object is the same as o;
false otherwise.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()
hashCode in class Objectpublic 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()
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||