
public class Property extends ModelObject implements Cloneable, Serializable
A property consists of the properties name, type and
value. Property name holds the name uniquely identifying the
property in a collection of properties. Property type holds the type
of the property. Property value holds the properties value which is
of type type. The api flag indicates if the property is part
of a public API.
| Constructor and Description |
|---|
Property()
Creates a new
Property instance. |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Creates and returns a 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.
|
String |
getName()
Gets the name of the property.
|
Class |
getType()
Gets the type of the property.
|
Object |
getValue()
Gets the value of the property.
|
int |
hashCode()
Returns a hash code value for this object.
|
boolean |
isApi()
Gets the flag indicating if the property is part of a public API.
|
void |
setApi(boolean value)
Setter for property
api. |
void |
setName(String value)
Setter for property
name. |
void |
setType(Class value)
Setter for property
type. |
void |
setValue(Object value)
Setter for property
value. |
String |
toString()
Returns a string representation of the object.
|
getDocumentation, getModelVersion, setDocumentation, setModelVersionpublic Property()
Property instance.public Object clone()
public boolean equals(Object o)
public Object getValue()
null.public int hashCode()
public boolean isApi()
true if the property is part of a public API.public void setApi(boolean value)
api.value - true if the property is part of a public API.public void setName(String value)
name.value - the new name of the property.public void setType(Class value)
type.value - the new type of the property.public void setValue(Object value)
value.value - the new value of the property.Copyright © 2005-2012 jDTAUS. All Rights Reserved.