|
|||||||||
| 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 java.lang.String |
_name
The actual String name of the property |
private NewTypedValue |
_value
The actual String value of the property |
| Constructor Summary | |
|---|---|
Property(java.lang.String setName,
boolean bool)
Constructs a Property Object with the specified name, and value as a BooleanTypedValue. |
|
Property(java.lang.String setName,
EdifNumber num)
Constructs a Property Object with the specified name, and value as a NumberTypedValue. |
|
Property(java.lang.String setName,
int i)
Constructs a Property Object with the specified name, and value as an IntegerTypedValue. |
|
Property(java.lang.String setName,
NewTypedValue setValue)
Constructs a Property Object with the specified name, and value as a NewTypedValue. |
|
Property(java.lang.String setName,
java.lang.String str)
Constructs a Property Object with the specified name, and value as a StringTypedValue. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clones this Property Object, and returns a clone of it. |
boolean |
equals(Property p)
Returns True if this Property matches the passed-in one, making sure they are the same type, value, ect. |
boolean |
existsWithin(java.util.Map properties)
Returns True if this Property Object matches with one of the Objects in the passed-in Map Object. |
java.lang.String |
getName()
Returns the name of this Object. |
NewTypedValue |
getValue()
Returns the typed value of this object. |
void |
setValue(NewTypedValue val)
Sets the typed value of this object. |
void |
toEdif(EdifPrintWriter epw)
Converts this Property Object to EDIF format and writes it to the passed-in EdifPrintWriter Object. |
java.lang.String |
toString()
Returns 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 java.lang.String _name
private NewTypedValue _value
| Constructor Detail |
|---|
public Property(java.lang.String setName,
NewTypedValue setValue)
NewTypedValue.
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
public Property(java.lang.String setName,
EdifNumber num)
NumberTypedValue.
setName - The name of this new Property Objectnum - The EdifNumber 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()
public NewTypedValue getValue()
NewTypedValue Object representing the typed
value of this Property Objectpublic void setValue(NewTypedValue 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 | ||||||||