public class DofStringElement extends DofTypeBase
OpenDofSaxHandler.ChildComplete, OpenDofSaxHandler.CType, OpenDofSaxHandler.OpendofErrorHandler| Modifier and Type | Field and Description |
|---|---|
int |
encoding |
int |
length |
currentType, LengthAttr, MinLengthAttr, MyPath, MyTags, TypeIdAttr, UnitElementpretty, spacesPerTab, stack, useSpaces| Constructor and Description |
|---|
DofStringElement(int itemId,
MetadataElements metadata,
int length,
int encoding) |
DofStringElement(OpenDofSaxHandler.ChildComplete childComplete)
DofStringElement constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.StringBuilder |
export(java.lang.StringBuilder sb,
int level)
Export this DOFType element as XML
|
int |
getEncoding() |
int |
getLength() |
void |
validate(TypedefsElement typedefs)
Validate that this DOFType element meets OpenDOF requirements
|
boolean |
validPublish(DofTypeBase doftype) |
characters, endElement, getMetadata, getTypeAsString, getTypeId, instantiate, oneOfYours, setTypeAsString, startElement, toStringamIParent, cdataFixup, checkEquals, closer, currentPath, element, element, element, element, endDocument, exportNames, getInterface, isMyPath, isMyTag, isPublish, level, setPublish, skippedEntity, startDocumentpublic DofStringElement(OpenDofSaxHandler.ChildComplete childComplete)
childComplete - the child completion callback to my parent. Must not be null.public DofStringElement(int itemId,
MetadataElements metadata,
int length,
int encoding)
public int getLength()
public int getEncoding()
public void validate(TypedefsElement typedefs) throws org.xml.sax.SAXException
DofTypeBasevalidate in class DofTypeBasetypedefs - the typedefs structure to validate typeIds with. Must not be nullorg.xml.sax.SAXException - if the validation fails.public java.lang.StringBuilder export(java.lang.StringBuilder sb,
int level)
DofTypeBaseexport in class DofTypeBasesb - the StringBuilder to add the XML to. Must not be null.level - the indent level for this element.public boolean validPublish(DofTypeBase doftype)
validPublish in class DofTypeBase