thinkmap.client
Class Property

java.lang.Object
  extended by thinkmap.client.Property

public class Property
extends Object

The property class is used by to add properties and metadata to Source Entities and Entity Types.

Version:
$Revision: 1.13 $

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

oDeferred

protected Object oDeferred
Constructor Detail

Property

protected Property(boolean md)
Constructs a new Property. Used by XML configuration.

Method Detail

setName

public void setName(String name)
Sets the name of this property. Used by XML configuration.

Parameters:
name - the name of this property

getName

public String getName()

setValue

public void setValue(Object o)
Sets the value of the provided property

Parameters:
o - the value that will be assigned to the property

setValue

public 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. Used by XML configuration.

Parameters:
s - the value of this property as a String

setType

public void setType(Class cType)
Sets the type of this property.

Parameters:
cType -

getType

public Class getType()
Gets the type of this property.

Returns:
the type of this property.

getValue

public Object getValue()

setPersist

public void setPersist(boolean b)
Set this to true if you would like this property to be persisted to a DataSource the default is false.

Parameters:
b - true if you would like this property to be persisted to a DataSource

isPersistent

public boolean isPersistent()

setAttribute

public void setAttribute(String name,
                         Object value)
Set an attribute on the Property


getAttribute

public Object getAttribute(String name)
Get an attribute from the Property


hasAttributes

public boolean hasAttributes()
Get the names of all attributes.

Returns:
An enumeration of all request attribute names in this message.

getAttributeNames

public Enumeration getAttributeNames()
Get the names of all attributes.

Returns:
An enumeration of all request attribute names in this message.


Copyright © 2013 Thinkmap, Inc. All Rights Reserved.