|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthmi.xml.XMLStructureAdapter
hmi.elckerlyc.animationengine.motionunit.Parameter
public class Parameter
Describes a float parameter that can be used in a motion unit and procedural animation Also includes XML-parser information
| Field Summary | |
|---|---|
private String |
description
|
private String |
sid
|
private double |
value
|
| Fields inherited from class hmi.xml.XMLStructureAdapter |
|---|
ATTRIBUTE_TOKEN_DELIMITERS, COMMA_SEPARATOR, DECODEDARRAYSIZE, DEFAULT_RECOVER_MODE, NEWLINE, SYSTEMNEWLINE, TAB, TAB_STRING |
| Constructor Summary | |
|---|---|
Parameter()
Constructor for new empty Parameter. |
|
Parameter(String n,
double v)
Constructor for new Parameter with predefined values |
|
Parameter(String n,
String d)
Constructor for new Parameter |
|
Parameter(String n,
String des,
double v)
Constructor for new Parameter with predefined values, description |
|
| Method Summary | |
|---|---|
StringBuilder |
appendAttributeString(StringBuilder buf)
Appends a String to buf that encodes the attributes for the XML encoding. |
StringBuilder |
appendContent(StringBuilder buf,
XMLFormatting fmt)
Appends a String to buf that encodes the contents for the XML encoding. |
boolean |
decodeAttribute(String attrName,
String attrValue,
XMLTokenizer tokenizer)
decodes the value from an attribute value String returns true if succesful, returns false for attribute names that are not recognized. |
void |
decodeAttributes(HashMap<String,String> attrMap,
XMLTokenizer tokenizer)
decodes all attributes. |
void |
decodeContent(XMLTokenizer tokenizer)
decodes the XML contents, i.e. the XML between the STag and ETag of the encoding. |
Parameter |
deepCopy()
|
boolean |
equals(Object p)
|
String |
getDescription()
returns the description of the parameter |
String |
getSid()
returns the sid of the parameter |
double |
getValue()
returns the value of the parameter |
String |
getXMLTag()
returns the XML tag that is used to encode this type of XMLStructure. |
int |
hashCode()
|
void |
setDescription(String d)
sets the description of the parameter |
void |
setSid(String n)
sets the sid of the parameter |
void |
setValue(double v)
sets the description of the parameter |
void |
setValue(String v)
sets the description of the parameter |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private String description
private String sid
private double value
| Constructor Detail |
|---|
public Parameter()
public Parameter(String n,
String d)
n - sidd - description
public Parameter(String n,
double v)
public Parameter(String n,
String des,
double v)
| Method Detail |
|---|
public Parameter deepCopy()
public String getDescription()
public void setDescription(String d)
d - the new descriptionpublic String getSid()
public void setSid(String n)
n - the new sidpublic double getValue()
public void setValue(String v)
v - the new value - this is a string but will be parsed to a
doublepublic void setValue(double v)
v - the new valuepublic int hashCode()
hashCode in class Objectpublic boolean equals(Object p)
equals in class Object
public void decodeAttributes(HashMap<String,String> attrMap,
XMLTokenizer tokenizer)
XMLStructureAdapter
decodeAttributes in class XMLStructureAdapter
public boolean decodeAttribute(String attrName,
String attrValue,
XMLTokenizer tokenizer)
XMLStructureAdapter
decodeAttribute in class XMLStructureAdapter
public void decodeContent(XMLTokenizer tokenizer)
throws IOException
XMLStructureAdapter
decodeContent in class XMLStructureAdapterIOException
public StringBuilder appendContent(StringBuilder buf,
XMLFormatting fmt)
XMLStructureAdapter
appendContent in class XMLStructureAdapterpublic StringBuilder appendAttributeString(StringBuilder buf)
XMLStructureAdapter
appendAttributeString in class XMLStructureAdapterpublic String getXMLTag()
XMLStructureAdapter
getXMLTag in interface XMLStructuregetXMLTag in class XMLStructureAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||