|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectbyucc.edif.Property
public class Property
Specifies a String name/value pair to describe an EDIF property. The Property name defines the name of a given property and the value defines the actual value assigned to the property.
| Field Summary | |
|---|---|
private EdifNameable |
_name
The actual name of the property |
private EdifTypedValue |
_value
The actual String value of the property |
| Constructor Summary | |
|---|---|
Property(EdifNameable name,
EdifTypedValue setValue)
|
|
Property(java.lang.String setName,
boolean bool)
Construct a Property Object with the specified name and value as a BooleanTypedValue. |
|
Property(java.lang.String setName,
EdifTypedValue setValue)
Construct a Property Object with the specified name and value as a EdifTypedValue. |
|
Property(java.lang.String setName,
int i)
Construct a Property Object with the specified name and value as an IntegerTypedValue. |
|
Property(java.lang.String setName,
java.lang.String str)
Construct a Property Object with the specified name and value as a StringTypedValue. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clone this Property Object and return a clone of it. |
boolean |
equals(Property p)
Return True if this Property matches the passed-in one, making sure they are the same type, value, etc. |
boolean |
existsWithin(java.util.Map properties)
Return True if this Property Object matches with one of the Objects in the passed-in Map Object. |
java.lang.String |
getName()
Return the name of this Object. |
EdifTypedValue |
getValue()
Return the typed value of this object. |
void |
setValue(EdifTypedValue val)
Set the typed value of this object. |
void |
toEdif(EdifPrintWriter epw)
Convert this Property Object to EDIF format and write it to the passed-in EdifPrintWriter Object. |
java.lang.String |
toString()
Return a String representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private EdifNameable _name
private EdifTypedValue _value
| Constructor Detail |
|---|
public Property(EdifNameable name,
EdifTypedValue setValue)
public Property(java.lang.String setName,
EdifTypedValue setValue)
EdifTypedValue.
setName - The name of this new Property ObjectsetValue - The value of this new Property Object
public Property(java.lang.String setName,
java.lang.String str)
StringTypedValue.
setName - The name of this new Property Objectstr - The String value of this new Property Object
public Property(java.lang.String setName,
boolean bool)
BooleanTypedValue.
setName - The name of this new Property Objectbool - The boolean value of this new Property Object
public Property(java.lang.String setName,
int i)
IntegerTypedValue.
setName - The name of this new Property Objecti - The integer value of this new Property Object| Method Detail |
|---|
public java.lang.Object clone()
clone in class java.lang.Objectpublic boolean equals(Property p)
p - The Property Object to compare this one to
public boolean existsWithin(java.util.Map properties)
properties - A list of properties to match against with
this one
public java.lang.String getName()
getName in interface Nameablepublic EdifTypedValue getValue()
EdifTypedValue Object representing the typed
value of this Property Objectpublic void setValue(EdifTypedValue val)
val - The new typed value of this objectpublic void toEdif(EdifPrintWriter epw)
toEdif in interface EdifOutepw - The EdifPrintWriter Object that the EDIF will be
written to.public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||