|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.phoenix_int.aserver.types.PHXReference
public class PHXReference
The Phoenix type for references. This class matches up to references in ModelCenter. Users may define their own properties in addition to the value property.
| Constructor Summary | |
|---|---|
PHXReference()
constructor |
|
| Method Summary | |
|---|---|
PHXRefProperty |
_getProperty(java.lang.String name)
retrieves a named property |
IPHXRefPropInfo |
createRefProp(java.lang.String name,
java.lang.String type)
adds a property to the variable |
void |
fromString(java.lang.String s)
converts from a string |
void |
fromString2(PHXStringBuffer s)
converts from a PHXStringBuffer |
java.lang.String |
getDescription()
|
PHXRefProperty[] |
getProperties()
retrieves the properties of the variable |
java.lang.String |
getReference()
retrieves the current reference string. |
boolean |
getRefPropValueBoolean(java.lang.String name)
|
double |
getRefPropValueDouble(java.lang.String name)
gets a value for a ref prop |
long |
getRefPropValueLong(java.lang.String name)
|
java.lang.String |
getRefPropValueString(java.lang.String name)
|
double |
getValue()
retrieves the current value of the variable |
void |
setDescription(java.lang.String desc)
|
void |
setProperties(PHXRefProperty[] v)
|
void |
setReference(java.lang.String ref)
sets the value for the reference string. |
void |
setRefPropValue(java.lang.String name,
boolean value)
|
void |
setRefPropValue(java.lang.String name,
double value)
sets a value for a ref prop |
void |
setRefPropValue(java.lang.String name,
long value)
|
void |
setRefPropValue(java.lang.String name,
java.lang.String value)
|
void |
setValue(double v)
sets the value for the variable |
java.lang.String |
toString()
converts to a string |
PHXStringBuffer |
toString2()
converts to a PHXStringBuffer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PHXReference()
| Method Detail |
|---|
public double getValue()
public void setValue(double v)
v - the valuepublic java.lang.String getReference()
public void setReference(java.lang.String ref)
ref - the reference stringpublic PHXRefProperty[] getProperties()
public void setProperties(PHXRefProperty[] v)
public IPHXRefPropInfo createRefProp(java.lang.String name,
java.lang.String type)
name - the name of the propertytype - property type: "long", "double", "boolean", or "string"
public double getRefPropValueDouble(java.lang.String name)
throws PHXTypeMismatchException
name - the name of the propertyindex - the array element
PHXTypeMismatchException
public long getRefPropValueLong(java.lang.String name)
throws PHXTypeMismatchException
PHXTypeMismatchException
public boolean getRefPropValueBoolean(java.lang.String name)
throws PHXTypeMismatchException
PHXTypeMismatchException
public java.lang.String getRefPropValueString(java.lang.String name)
throws PHXTypeMismatchException
PHXTypeMismatchException
public void setRefPropValue(java.lang.String name,
double value)
throws PHXTypeMismatchException
name - the name of the propertyindex - the array elementvalue - the value of the property
PHXTypeMismatchException
public void setRefPropValue(java.lang.String name,
long value)
throws PHXTypeMismatchException
PHXTypeMismatchException
public void setRefPropValue(java.lang.String name,
boolean value)
throws PHXTypeMismatchException
PHXTypeMismatchException
public void setRefPropValue(java.lang.String name,
java.lang.String value)
throws PHXTypeMismatchException
PHXTypeMismatchExceptionpublic PHXRefProperty _getProperty(java.lang.String name)
name - the name of the property
public PHXStringBuffer toString2()
toString2 in interface IPHXType2public java.lang.String toString()
toString in interface IPHXTypetoString in class java.lang.Objectpublic void fromString2(PHXStringBuffer s)
fromString2 in interface IPHXType2s - the PHXStringBuffer valuepublic void fromString(java.lang.String s)
fromString in interface IPHXTypes - the string valuepublic java.lang.String getDescription()
public void setDescription(java.lang.String desc)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||