public class ExceptionsElement extends OpenDofSaxHandler implements OpenDofSaxHandler.ChildComplete
OpenDofSaxHandler.ChildComplete, OpenDofSaxHandler.CType, OpenDofSaxHandler.OpendofErrorHandler| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ExceptionsElement
The Exceptions Element tag
|
static java.lang.String |
ExceptionsPath |
static java.lang.String |
MyTag |
pretty, spacesPerTab, stack, useSpaces| Constructor and Description |
|---|
ExceptionsElement()
Default Exceptions element constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addException(ExceptionElement exception) |
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName) |
void |
exceptionMethod(ExceptionElement exception) |
java.lang.StringBuilder |
export(java.lang.StringBuilder sb,
int level)
Export this Exceptions element as XML
|
java.util.List<ExceptionElement> |
getExceptions() |
static boolean |
oneOfYours(java.lang.String element) |
void |
setChildComplete(java.lang.Object listener,
java.lang.Object obj) |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes) |
void |
uniqueItemId(java.util.Hashtable<java.lang.Integer,java.lang.Integer> uniqueMap) |
void |
validate(TypedefsElement typedefs)
Validate that this Exceptions element meets OpenDOF requirements
|
boolean |
validPublish(ExceptionsElement other)
Validate if published/immutable fields have been modified.
|
amIParent, cdataFixup, checkEquals, closer, currentPath, element, element, element, element, endDocument, exportNames, getInterface, isMyPath, isMyTag, isPublish, level, setPublish, skippedEntity, startDocumentpublic static final java.lang.String ExceptionsElement
public static final java.lang.String MyTag
public static final java.lang.String ExceptionsPath
public ExceptionsElement()
public java.util.List<ExceptionElement> getExceptions()
public void addException(ExceptionElement exception)
public void exceptionMethod(ExceptionElement exception)
public void uniqueItemId(java.util.Hashtable<java.lang.Integer,java.lang.Integer> uniqueMap)
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionpublic void validate(TypedefsElement typedefs) throws org.xml.sax.SAXException
typedefs - the typedefs structure to validate typeIds with. Must not be nullorg.xml.sax.SAXException - if the validation fails.public static boolean oneOfYours(java.lang.String element)
public void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerstartElement in class OpenDofSaxHandlerorg.xml.sax.SAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlercharacters in class OpenDofSaxHandlerorg.xml.sax.SAXExceptionpublic void endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.ContentHandlerendElement in class OpenDofSaxHandlerorg.xml.sax.SAXExceptionpublic void setChildComplete(java.lang.Object listener,
java.lang.Object obj)
setChildComplete in interface OpenDofSaxHandler.ChildCompletepublic java.lang.StringBuilder export(java.lang.StringBuilder sb,
int level)
sb - the StringBuilder to add the XML to. Must not be null.level - the indent level for this element.public boolean validPublish(ExceptionsElement other)
other - The master/published element to be compared against.