|
|||||||||
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.XMLHandlerAtomic
One class that can serve for XMLHandler instances for all of: primitive types (int, float, boolean, etc.) and their object equivalents (Integer, Float, ... Boolean) and String as well as arrays of any of those things.
Field Summary |
Fields inherited from class org.cybertory.MSS.XMLHandler |
handledClass |
Constructor Summary | |
XMLHandlerAtomic(java.lang.Class dataType)
|
Method Summary | |
protected boolean |
allowBackwardRef()
Allow multiple elements for this data type ? |
protected boolean |
allowMultiple()
|
protected static boolean |
canInstantiate(java.lang.Class cls)
|
protected boolean |
needsTypedef()
Allow data in the "defs" section, with later backward references ? |
protected 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). |
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 XMLHandlerAtomic(java.lang.Class dataType) throws XMLUnhandledTypeException
Method Detail |
protected static boolean canInstantiate(java.lang.Class cls)
public org.jdom.Element schemaTypedef() throws XMLUnhandledTypeException
schemaTypedef
in class XMLHandler
XMLUnhandledTypeException
protected java.lang.Object parseElement(org.jdom.Element elem, XMLAltData altData) throws XMLParseException
XMLHandler
parseElement
in class XMLHandler
elem
- the JDOM element containing the dataaltData
- the background data context for parsing
XMLParseException
protected boolean allowMultiple()
allowMultiple
in class XMLHandler
protected boolean allowBackwardRef()
allowBackwardRef
in class XMLHandler
protected boolean needsTypedef()
needsTypedef
in class XMLHandler
public java.lang.String xmlTypeName()
XMLHandler
xmlTypeName
in class XMLHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |