org.xmlcml.cml
Class FloatValImpl
java.lang.Object
|
+--org.apache.xerces.dom.NodeImpl
|
+--org.apache.xerces.dom.ChildNode
|
+--org.apache.xerces.dom.ChildAndParentNode
|
+--org.apache.xerces.dom.ElementImpl
|
+--uk.co.demon.ursus.dom.AbstractElementImpl
|
+--uk.co.demon.ursus.dom.PMRElementImpl
|
+--org.xmlcml.cml.CMLBaseImpl
|
+--org.xmlcml.cml.AbstractStringValImpl
|
+--org.xmlcml.cml.StringValImpl
|
+--org.xmlcml.cml.NumericValImpl
|
+--org.xmlcml.cml.FloatValImpl
- Direct Known Subclasses:
- FloatArrayImpl
- public class FloatValImpl
- extends NumericValImpl
- implements FloatVal
holds a float with max and minimum values
- See Also:
- Serialized Form
| Fields inherited from class org.apache.xerces.dom.ElementImpl |
attributes,
name |
| Fields inherited from class org.apache.xerces.dom.ChildAndParentNode |
changes,
firstChild,
nodeListIndex,
nodeListLength,
nodeListNode,
ownerDocument |
| Fields inherited from class org.apache.xerces.dom.ChildNode |
nextSibling,
previousSibling |
| Fields inherited from class org.apache.xerces.dom.NodeImpl |
ELEMENT_DEFINITION_NODE,
FIRSTCHILD,
flags,
IGNORABLEWS,
MUTATION_AGGREGATE,
MUTATION_ALL,
MUTATION_LOCAL,
MUTATION_NONE,
MUTATIONEVENTS,
OWNED,
ownerNode,
READONLY,
SETVALUE,
SPECIFIED,
SYNCCHILDREN,
SYNCDATA |
| Fields inherited from interface org.xmlcml.cml.CMLBase |
ANGLE,
ATOM,
ATOMARRAY,
BOND,
BONDARRAY,
BUILTIN,
CML,
CRYSTAL,
ELECTRON,
ELEMENT_COUNT,
ELEMENT_NAMES,
EXECUTE,
FEATURE,
FLOAT,
FLOAT_TYPE,
FLOATARRAY,
FLOATMATRIX,
FORMULA,
INTEGER,
INTEGER_TYPE,
INTEGERARRAY,
LINK,
LIST,
MOLECULE,
PACKAGE_NAME,
REACTION,
SEQUENCE,
STRING,
STRING_TYPE,
STRINGARRAY,
TORSION,
UNK,
UNK_ELEM,
UNKNOWN |
| Fields inherited from interface org.xmlcml.cml.HasId |
ID |
| Fields inherited from interface uk.co.demon.ursus.dom.PMRNode |
ATTRIBUTES,
CONTENT,
ELEMENTNAME,
IDLIST,
NESTED,
NESTEDATTS,
PACKAGENAME,
PRETTY,
SPLITFILES,
STYLE,
TAGGED,
UNTAGGED,
WHITESPACE,
XMLCONTENT |
| Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE,
CDATA_SECTION_NODE,
COMMENT_NODE,
DOCUMENT_FRAGMENT_NODE,
DOCUMENT_NODE,
DOCUMENT_TYPE_NODE,
ELEMENT_NODE,
ENTITY_NODE,
ENTITY_REFERENCE_NODE,
NOTATION_NODE,
PROCESSING_INSTRUCTION_NODE,
TEXT_NODE |
| Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE,
CDATA_SECTION_NODE,
COMMENT_NODE,
DOCUMENT_FRAGMENT_NODE,
DOCUMENT_NODE,
DOCUMENT_TYPE_NODE,
ELEMENT_NODE,
ENTITY_NODE,
ENTITY_REFERENCE_NODE,
NOTATION_NODE,
PROCESSING_INSTRUCTION_NODE,
TEXT_NODE |
|
Constructor Summary |
FloatValImpl()
|
FloatValImpl(org.w3c.dom.Document document)
new FloatVal in context |
FloatValImpl(org.w3c.dom.Document document,
double realValue,
java.lang.String builtin,
java.lang.String title,
java.lang.String id,
java.lang.String dictRef,
java.lang.String conventionName,
Units units,
double minimum,
double maximum)
|
FloatValImpl(org.w3c.dom.Element element)
|
FloatValImpl(java.lang.String tagName,
org.w3c.dom.Document document)
new FloatVal in context |
|
Method Summary |
double |
getMaximum()
maximum value, set by default to Double.MAX_VALUE |
double |
getMinimum()
minimum value, set by default to Double.MIN_VALUE |
double |
getRealValue()
|
Validity |
getValidity()
Determines whether node is valid (class specific). |
protected void |
init()
|
void |
processDOM()
carries out class-specific processing for subclasses of PMRElement. |
void |
setMaximum(double maximum)
set maximum value; must be greater than minimum |
void |
setMinimum(double minimum)
set minimum value; must be less than maximum |
void |
setRealValue(double realValue)
|
| Methods inherited from class org.xmlcml.cml.CMLBaseImpl |
addValidity,
convertToSubclass,
debug,
getConventionName,
getDictRef,
getId,
getSubClassedElement,
getTitle,
help,
isValid,
main,
setConventionName,
setDictRef,
setId,
setTitle,
showElementNames,
test1,
updateDOMHasConvention,
updateDOMHasConvention,
updateDOMHasCount,
updateDOMHasDictRef,
updateDOMHasDictRef,
updateDOMHasId,
updateDOMHasId,
updateDOMHasTitle,
updateDOMHasTitle,
updateDOMHasUnits |
| Methods inherited from class org.apache.xerces.dom.ElementImpl |
cloneNode,
getAttribute,
getAttributeNode,
getAttributeNodeNS,
getAttributeNS,
getAttributes,
getElementsByTagName,
getElementsByTagNameNS,
getNodeName,
getNodeType,
getTagName,
hasAttribute,
hasAttributeNS,
normalize,
removeAttribute,
removeAttributeNode,
removeAttributeNS,
setAttribute,
setAttributeNode,
setAttributeNodeNS,
setAttributeNS,
setReadOnly,
setupDefaultAttributes,
synchronizeData |
| Methods inherited from class org.apache.xerces.dom.ChildAndParentNode |
changed,
changes,
getChildNodes,
getFirstChild,
getLastChild,
getLength,
getOwnerDocument,
hasChildNodes,
insertBefore,
item,
removeChild,
replaceChild,
synchronizeChildren,
synchronizeChildren |
| Methods inherited from class org.apache.xerces.dom.ChildNode |
getNextSibling,
getParentNode,
getPreviousSibling |
| Methods inherited from class org.apache.xerces.dom.NodeImpl |
addEventListener,
appendChild,
dispatchEvent,
finalize,
getLocalName,
getNamespaceURI,
getNodeValue,
getPrefix,
getReadOnly,
getUserData,
removeEventListener,
setNodeValue,
setPrefix,
setUserData,
supports,
toString |
| Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
maximum
protected double maximum
minimum
protected double minimum
realValue
protected double realValue
FloatValImpl
public FloatValImpl()
FloatValImpl
public FloatValImpl(org.w3c.dom.Element element)
FloatValImpl
public FloatValImpl(java.lang.String tagName,
org.w3c.dom.Document document)
- new FloatVal in context
FloatValImpl
public FloatValImpl(org.w3c.dom.Document document)
- new FloatVal in context
FloatValImpl
public FloatValImpl(org.w3c.dom.Document document,
double realValue,
java.lang.String builtin,
java.lang.String title,
java.lang.String id,
java.lang.String dictRef,
java.lang.String conventionName,
Units units,
double minimum,
double maximum)
init
protected void init()
- Overrides:
- init in class StringValImpl
setRealValue
public void setRealValue(double realValue)
- Specified by:
- setRealValue in interface FloatVal
getRealValue
public double getRealValue()
- Specified by:
- getRealValue in interface FloatVal
setMaximum
public void setMaximum(double maximum)
- set maximum value; must be greater than minimum
- Specified by:
- setMaximum in interface FloatVal
getMaximum
public double getMaximum()
- maximum value, set by default to Double.MAX_VALUE
- Specified by:
- getMaximum in interface FloatVal
setMinimum
public void setMinimum(double minimum)
- set minimum value; must be less than maximum
- Specified by:
- setMinimum in interface FloatVal
getMinimum
public double getMinimum()
- minimum value, set by default to Double.MIN_VALUE
- Specified by:
- getMinimum in interface FloatVal
processDOM
public void processDOM()
throws java.lang.NumberFormatException
- Description copied from interface: PMRElement
- carries out class-specific processing for subclasses of PMRElement.
The default for a generic PMRElement is no-op. Often creates an internal model
- Overrides:
- processDOM in class AbstractStringValImpl
- Tags copied from class: PMRElementImpl
- Throws:
- java.lang.Exception - these can be of many kinds and may include class-specific ones
getValidity
public Validity getValidity()
- Description copied from interface: PMRElement
- Determines whether node is valid (class specific). Perhaps used in treeWalk mode
- Overrides:
- getValidity in class CMLBaseImpl