|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectthinkmap.client.Property
public class Property
The property class is used by to add properties and metadata to Source Entities and Entity Types.
| Field Summary | |
|---|---|
protected Object |
oDeferred
|
| Constructor Summary | |
|---|---|
protected |
Property(boolean md)
Constructs a new Property. |
| Method Summary | |
|---|---|
Object |
getAttribute(String name)
Get an attribute from the Property |
Enumeration |
getAttributeNames()
Get the names of all attributes. |
String |
getName()
|
Class |
getType()
Gets the type of this property. |
Object |
getValue()
|
boolean |
hasAttributes()
Get the names of all attributes. |
boolean |
isPersistent()
|
void |
setAttribute(String name,
Object value)
Set an attribute on the Property |
void |
setName(String name)
Sets the name of this property. |
void |
setPersist(boolean b)
Set this to true if you would like this property to be persisted to a DataSource the default is false. |
void |
setType(Class cType)
Sets the type of this property. |
void |
setValue(Object o)
Sets the value of the provided property |
void |
setValue(String s)
Sets the value of this property as a String, which will be converted to the type specified in the setType method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Object oDeferred
| Constructor Detail |
|---|
protected Property(boolean md)
| Method Detail |
|---|
public void setName(String name)
name - the name of this propertypublic String getName()
public void setValue(Object o)
o - the value that will be assigned to the propertypublic void setValue(String s)
s - the value of this property as a Stringpublic void setType(Class cType)
cType - public Class getType()
public Object getValue()
public void setPersist(boolean b)
b - true if you would like this property to be persisted to a DataSourcepublic boolean isPersistent()
public void setAttribute(String name,
Object value)
public Object getAttribute(String name)
public boolean hasAttributes()
public Enumeration getAttributeNames()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||