|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
All Attributes operate on Attribute values. Some may also implement Composable. These objects should implement clone, hashCode, toString and equals in addition to the methods proscribed by Measurable. Note that they should be immutable. This will make everything quicker, as there is far more cloning going on than I would like.
Nested Class Summary |
Nested classes inherited from class viper.descriptors.attributes.Measurable |
Measurable.Difference |
Method Summary | |
AttributeValue |
setValue(org.w3c.dom.Element el)
Returns a new copy of the object set to the data the xml-dom element represents. |
AttributeValue |
setValue(java.lang.String S)
Returns a new copy of the object with the data the String represents. |
org.w3c.dom.Element |
toXML(org.w3c.dom.Document doc)
Returns an xml element for this object. |
boolean |
validate(AttributeValue v)
Checks to make sure that the value can be set. |
Methods inherited from interface viper.descriptors.attributes.Measurable |
getDifference, getDifference, getType |
Method Detail |
public org.w3c.dom.Element toXML(org.w3c.dom.Document doc)
Attribute.DEFAULT_NAMESPACE_QUALIFIER
:type.
doc
- The root for the element.
public AttributeValue setValue(java.lang.String S) throws java.lang.IllegalArgumentException
a.equals (a.setValue (a.toString()))
Should try to use XML format whenever possible.
S
- String representation of this type of value.
java.lang.IllegalArgumentException
- If the data is ill-formedpublic AttributeValue setValue(org.w3c.dom.Element el) throws java.lang.IllegalArgumentException
el
- DOM Node to parse
java.lang.IllegalArgumentException
- If the data is ill-formedpublic boolean validate(AttributeValue v)
v
- the value to check against this archetype
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |