maspack.properties
Class PropertyDescTest
java.lang.Object
maspack.properties.PropertyDescTest
- All Implemented Interfaces:
- HasProperties
public class PropertyDescTest
- extends java.lang.Object
- implements HasProperties
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyDescTest
public PropertyDescTest()
getByte
public byte getByte()
setByte
public void setByte(byte val)
getChar
public char getChar()
setChar
public void setChar(char val)
getShort
public short getShort()
setShort
public void setShort(short val)
getInt
public int getInt()
setInt
public void setInt(int val)
getLong
public long getLong()
setLong
public void setLong(long val)
getFloat
public float getFloat()
setFloat
public void setFloat(float val)
getDouble
public double getDouble()
setDouble
public void setDouble(double val)
getBoolean
public boolean getBoolean()
setBoolean
public void setBoolean(boolean val)
getShortArray
public short[] getShortArray()
setShortArray
public void setShortArray(short[] vals)
getIntArray
public int[] getIntArray()
setIntArray
public void setIntArray(int[] vals)
getLongArray
public long[] getLongArray()
setLongArray
public void setLongArray(long[] vals)
getFloatArray
public float[] getFloatArray()
setFloatArray
public void setFloatArray(float[] vals)
getDoubleArray
public double[] getDoubleArray()
setDoubleArray
public void setDoubleArray(double[] vals)
getColor
public java.awt.Color getColor()
setColor
public void setColor(java.awt.Color val)
getGeomObj
public maspack.properties.PropertyDescTest.GeomObj getGeomObj()
setGeomObj
public void setGeomObj(maspack.properties.PropertyDescTest.GeomObj val)
getVectorNd
public VectorNd getVectorNd()
setVectorNd
public void setVectorNd(VectorNd val)
getMatrixNd
public MatrixNd getMatrixNd()
setMatrixNd
public void setMatrixNd(MatrixNd val)
getString
public java.lang.String getString()
setString
public void setString(java.lang.String val)
getProperty
public Property getProperty(java.lang.String name)
- Description copied from interface:
HasProperties
- Returns a property associated with a specified path name. All properties
exported by this object must have a name which is a valid Java identifier.
Specifying one of these names causes the corresponding Property to be
returned. Handles to sub-properties can also be obtained by delimiting the
sub-property name(s) by '
.
' characters. A sub-property
exists if the value of a property is itself an object which exports
properties. It is only possible to obtain a sub-property handle if each of
its ancestor properties exports their values by reference.
- Specified by:
getProperty
in interface HasProperties
- Parameters:
name
- name of the desired property or sub-property
- Returns:
- handle to the property
getAllPropertyInfo
public PropertyList getAllPropertyInfo()
- Description copied from interface:
HasProperties
- Returns a list giving static information about all properties exported by
this object.
- Specified by:
getAllPropertyInfo
in interface HasProperties
- Returns:
- static information for all exported properties
writeAll
public void writeAll(IndentingPrintWriter pw,
NumberFormat fmt)
throws java.io.IOException
- Throws:
java.io.IOException
scan
public void scan(ReaderTokenizer rtok)
throws java.io.IOException
- Throws:
java.io.IOException
main
public static void main(java.lang.String[] args)