|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbyucc.jhdl.base.Property
The Property class allows a user to attach an arbitrary number of name-value properties, where the value can be of any type, to a Cell or Wire. It remains public and extensible, if other uses are desired. Properties can be stored in a PropertyList, and null values are presently allowed.
Constructor Summary | |
Property(java.lang.String name,
java.lang.Class type,
java.lang.Object argument)
Creates a new property. |
|
Property(java.lang.String name,
java.lang.Object argument)
Creates a new property. |
|
Property(java.lang.String name,
java.lang.Object argument,
boolean isVisible)
Creates a new property. |
Method Summary | |
boolean |
bvalue()
If this is a boolean property, return the value as a native boolean. |
void |
bvalue(boolean b)
If this is a boolean property, resets the argument. |
java.lang.String |
getName()
Returns the name of this Property |
java.lang.Class |
getType()
Returns the declared type of the property (which may be a superclass of the actual argument). |
java.lang.Object |
getValue()
Returns the value of the Property. |
boolean |
isVisible()
Returns whether this property is visible to netlisters |
void |
isVisible(boolean b)
Sets whether this property is visible to netlisters |
int |
ivalue()
If this is an integer property, return the value as a native int. |
void |
ivalue(int i)
If this is an integer property, resets the argument. |
java.lang.Object |
setValue(java.lang.Object arg)
Sets the value if it is compatible, otherwise throws an exception. |
java.lang.String |
svalue()
Returns the string value of this property. |
void |
svalue(java.lang.String s)
If this is a String property, resets the argument. |
java.lang.String |
toString()
Returns a string representation of this Property, in the form 'name: value'. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Property(java.lang.String name, java.lang.Object argument, boolean isVisible)
name
- the name of the propertyargument
- the value of the property
BuildException
- if the argument is incompatible with the specified typepublic Property(java.lang.String name, java.lang.Object argument)
name
- the name of the propertyargument
- the value of the property
BuildException
- if the argument is incompatible with the specified typepublic Property(java.lang.String name, java.lang.Class type, java.lang.Object argument)
name
- the name of the propertytype
- the type of the propertyargument
- the value of the property
BuildException
- if the argument is incompatible with the specified typeMethod Detail |
public java.lang.Class getType()
public boolean isVisible()
public void isVisible(boolean b)
b
- the new state of the visibility flagpublic java.lang.String getName()
public void bvalue(boolean b)
b
- the new value of the argument
BuildException
- if this property is not of type booleanpublic boolean bvalue()
BuildException
- if this property is not of type booleanpublic void ivalue(int i)
i
- the new value of the argument
BuildException
- if this property is not of type integerpublic int ivalue()
BuildException
- if this property is not of type integerpublic void svalue(java.lang.String s)
s
- the new value of the argument
BuildException
- if this property is not of type Stringpublic java.lang.String svalue()
public java.lang.Object setValue(java.lang.Object arg)
arg
- the new value
BuildException
- if the new value is incompatible with the declared typepublic java.lang.Object getValue()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |