Class Element
- java.lang.Object
-
- com.inductiveautomation.ignition.common.xmlserialization.simple.Element
-
- Direct Known Subclasses:
ArrayElement
,BasicHistoricalRecord.HistoricalRecordXmlReader.Col
,BasicHistoricalRecord.HistoricalRecordXmlReader.Record
,BasicHistoricalRecord.HistoricalRecordXmlReader.Row
,DatasetElement
,DatasetElement.ColumnElement
,HistoricalDataXmlReader.DataTransactionElement
,HistoryFlavor.Base64XmlReader.Base64Element
,StringValueElement
,TagHistoryFlavor.TagXmlImportReader.RetirementListElement
,TagHistoryFlavor.TagXmlImportReader.ScanclassSet
,TagHistoryFlavor.TagXmlImportReader.TagElement
,TagHistoryFlavor.TagXmlImportReader.TagValueElement
,TagXMLImporter.TagXMLReader.AlarmConfigElement
,TagXMLImporter.TagXMLReader.EntryElement
,TagXMLImporter.TagXMLReader.EventElement
,TagXMLImporter.TagXMLReader.EventScriptsElement
,TagXMLImporter.TagXMLReader.ParametersElement
,TagXMLImporter.TagXMLReader.PermissionModelElement
,TagXMLImporter.TagXMLReader.PropertyBasedElement
,TagXMLImporter.TagXMLReader.PropertyElement
,TagXMLImporter.TagXMLReader.QueryParametersElement
,TagXMLImporter.TagXMLReader.TagsElement
public abstract class Element extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Element.ValidationResult
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
name
-
Constructor Summary
Constructors Constructor Description Element()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
addChild(Element child)
java.util.Locale
getLocale()
java.lang.String
getName()
java.lang.Object
getValue()
java.lang.Class<? extends Element>
resolveType(java.lang.String name)
This allows complex elements to return their own implementation or definitions for element types.void
setAttributes(org.xml.sax.Attributes attr)
void
setLocale(java.util.Locale locale)
void
setName(java.lang.String value)
void
setRawValue(java.lang.String value)
Element.ValidationResult
validate()
-
-
-
Method Detail
-
setAttributes
public void setAttributes(org.xml.sax.Attributes attr) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String value)
-
getValue
public java.lang.Object getValue()
-
setRawValue
public void setRawValue(java.lang.String value) throws java.lang.Exception
- Throws:
java.lang.Exception
-
setLocale
public void setLocale(java.util.Locale locale)
-
getLocale
public java.util.Locale getLocale()
-
addChild
public abstract void addChild(Element child) throws java.lang.Exception
- Throws:
java.lang.Exception
-
validate
public Element.ValidationResult validate()
-
resolveType
public java.lang.Class<? extends Element> resolveType(java.lang.String name)
This allows complex elements to return their own implementation or definitions for element types. When a new element is encountered, the system works its way up through the current stack, and finally ends up at the types registered on the reader. This should return null if the element doesn't provide a custom type for the given name.
The class returned can be a non-static class. In that case, it will get instantiated against the object returning it.- Parameters:
name
- the lower cased element name.- Returns:
- a class that represents the element, or null if unknown.
-
-