|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.cybertory.MSS.XMLHandler
org.cybertory.MSS.XMLHandlerStd
The base class for most custom handler extensions.
Field Summary |
Fields inherited from class org.cybertory.MSS.XMLHandler |
handledClass |
Constructor Summary | |
XMLHandlerStd(java.lang.Class cls)
|
|
XMLHandlerStd(java.lang.Class cls,
boolean allowBackwardRef)
|
Method Summary | |
protected boolean |
allowBackwardRef()
Allow multiple elements for this data type ? |
protected boolean |
allowMultiple()
Allow data in the "defs" section, with later backward references ? |
protected boolean |
needsTypedef()
Allow multiple elements for this data type ? |
protected abstract java.lang.Object |
parseElement(org.jdom.Element elem,
XMLAltData altData)
Given that the element already extracted from it's context, parse the data (whose type should match that of the handler). |
protected abstract org.jdom.Element |
schemaTypedef()
Generate Schema type definition for the class (using JDOM). |
java.lang.String |
xmlTypeName()
Return the label to be used in the name of schema type defs. |
Methods inherited from class org.cybertory.MSS.XMLHandler |
alternateElement, compareTo, extractChildren, getAllHandlers, getHandledClasses, getHandler, getHandlersDefs, getXMLChildFilter, getXMLChildFilter, handledClass, handlersReport, parseChildren, parseRequest, parseXMLDocument, schemaDocument, schemaInContext, schemaInContext, schemaInContext, schemaInContext, typeDescription |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLHandlerStd(java.lang.Class cls, boolean allowBackwardRef)
public XMLHandlerStd(java.lang.Class cls)
Method Detail |
protected abstract org.jdom.Element schemaTypedef() throws XMLUnhandledTypeException
schemaTypedef
in class XMLHandler
XMLUnhandledTypeException
protected abstract java.lang.Object parseElement(org.jdom.Element elem, XMLAltData altData) throws XMLParseException, XMLUnhandledTypeException
parseElement
in class XMLHandler
elem
- the JDOM element containing the dataaltData
- the background data context for parsing
XMLParseException
XMLUnhandledTypeException
public java.lang.String xmlTypeName()
xmlTypeName
in class XMLHandler
protected boolean allowBackwardRef()
XMLHandler
allowBackwardRef
in class XMLHandler
protected final boolean allowMultiple()
allowMultiple
in class XMLHandler
protected final boolean needsTypedef()
needsTypedef
in class XMLHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |