org.jfree.xml.util
public abstract class AbstractModelReader extends Object
Constructor Summary | |
---|---|
AbstractModelReader()
Default Constructor. |
Method Summary | |
---|---|
protected void | endIncludeHandling()
End handling an include. |
protected abstract void | endMultiplexMapping()
Finializes the multiplexer mapping.
|
protected abstract void | endObjectDefinition()
Finializes the object definition.
|
protected void | endRootDocument()
End the root document. |
protected String[] | getCloseComment()
Returns the close comment.
|
protected CommentHandler | getCommentHandler()
Returns the comment handler.
|
protected String[] | getOpenComment()
Returns the open comment.
|
protected abstract void | handleAttributeDefinition(String name, String attribName, String handlerClass)
Handles an attribute definition. |
protected abstract void | handleConstructorDefinition(String propertyName, String parameterClass)
Handles a constructor definition. |
protected abstract void | handleElementDefinition(String name, String element)
Handles an element definition. |
protected void | handleIgnoredProperty(String name)
Callback method for ignored properties. |
protected abstract void | handleLookupDefinition(String name, String lookupKey)
Handles an lookup definition. |
protected abstract boolean | handleManualMapping(String className, String readHandler, String writeHandler)
Handles a manual mapping definition. |
protected abstract void | handleMultiplexMapping(String typeName, String className)
Defines an entry for the multiplex mapping. |
protected Class | loadClass(String className)
Loads the given class, and ignores all exceptions which may occur
during the loading. |
protected void | parseXml(URL resource)
Parses an XML document at the given URL.
|
protected void | parseXmlDocument(URL resource, boolean isInclude)
Parses the given specification and loads all includes specified in the files.
|
protected void | setCloseComment(String[] closeComment)
Sets the close comment.
|
protected void | setOpenComment(String[] openComment)
Sets the open comment.
|
protected void | startIncludeHandling(URL resource)
Start handling an include.
|
protected abstract void | startMultiplexMapping(String className, String typeAttr)
Starts a multiplex mapping. |
protected abstract boolean | startObjectDefinition(String className, String register, boolean ignored)
Starts a object definition. |
protected void | startRootDocument()
Start the root document. |
Throws: ObjectDescriptionException if an error occurs.
Throws: ObjectDescriptionException if an error occures.
Returns: The close comment.
Returns: The comment handler.
Returns: The open comment.
Parameters: name the name of the property attribName the xml-attribute name to use later. handlerClass the attribute handler class.
Throws: ObjectDescriptionException if an error occured.
Parameters: propertyName the property name of the referenced local property parameterClass the parameter class for the parameter.
Throws: ObjectDescriptionException if an error occured.
Parameters: name the name of the property element the xml-tag name for the child element.
Throws: ObjectDescriptionException if an error occurs.
Parameters: name the name of the ignored property.
Parameters: name the property name of the base object lookupKey the register key of the referenced object
Throws: ObjectDescriptionException if an error occured.
Parameters: className the base class name readHandler the class name of the read handler writeHandler the class name of the write handler
Returns: true, if the mapping was accepted, false otherwise.
Throws: ObjectDescriptionException if an unexpected error occured.
typename
and
will resolve to the handler for the given classname.
Parameters: typeName the type value for this mapping. className the class name to which this mapping resolves.
Throws: ObjectDescriptionException if an error occurs.
Parameters: className the name of the class to be loaded.
Returns: the class or null.
Parameters: resource the document URL.
Throws: ObjectDescriptionException ??
Parameters: resource the url of the xml specification. isInclude an include?
Throws: org.jfree.xml.util.ObjectDescriptionException if an error occured which prevented the loading of the specifications.
Parameters: closeComment the close comment.
Parameters: openComment the open comment.
Parameters: resource the URL.
Parameters: className the base class name typeAttr the xml-attribute name containing the mapping key
Parameters: className the class name of the defined object register the (optional) register name, to lookup and reference the object later. ignored ??.
Returns: true, if the definition was accepted, false otherwise.
Throws: ObjectDescriptionException if an unexpected error occured.