com.ohrasys.cad.gds.dao
Class Property

java.lang.Object
  extended by com.ohrasys.cad.gds.dao.Property
All Implemented Interfaces:
InfoProvider

public class Property
extends java.lang.Object
implements InfoProvider

A property data access object


Constructor Summary
Property()
          Creates a new instance of Property
Property(int number, java.lang.String value)
          Creates a new Property object.
 
Method Summary
 java.lang.String getInfo()
          Returns a textual representation of the property
 int getNumber()
          Getter for property number.
 java.lang.String getValue()
          Getter for property value.
 void setNumber(int number)
          Setter for property number.
 void setValue(java.lang.String value)
          Setter for property value.
 java.lang.String toString()
          Returns a string representation of the property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Property

public Property()
Creates a new instance of Property


Property

public Property(int number,
                java.lang.String value)
Creates a new Property object.

Parameters:
number - The property number
value - The value of the property
Method Detail

getInfo

public java.lang.String getInfo()
Returns a textual representation of the property

Specified by:
getInfo in interface InfoProvider
Returns:
A textual representation of the property

getNumber

public int getNumber()
Getter for property number.

Returns:
Value of property number.

getValue

public java.lang.String getValue()
Getter for property value.

Returns:
Value of property value.

setNumber

public void setNumber(int number)
Setter for property number.

Parameters:
number - New value of property number.

setValue

public void setValue(java.lang.String value)
Setter for property value.

Parameters:
value - New value of property value.

toString

public java.lang.String toString()
Returns a string representation of the property

Overrides:
toString in class java.lang.Object
Returns:
A string representation of the property