|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.xml.util.AbstractModelReader
org.jfree.xml.generator.DefaultModelReader
A reader for the class model.
Constructor Summary | |
DefaultModelReader()
Creates a new model reader. |
Method Summary | |
protected void |
endIncludeHandling()
|
protected void |
endMultiplexMapping()
Finializes the multiplexer mapping. |
protected void |
endObjectDefinition()
Finishes processing an object definition (sets the constructor and property info for the class description, and adds the class description to the model). |
protected void |
endRootDocument()
|
protected void |
fillSuperClasses()
|
protected java.beans.PropertyDescriptor |
getPropertyDescriptor(java.lang.String propertyName)
Returns a property descriptor for the named property, or null if there is
no descriptor with the given name. |
protected void |
handleAttributeDefinition(java.lang.String name,
java.lang.String attribName,
java.lang.String handlerClass)
Handles the description of an attribute within an object definition. |
protected void |
handleConstructorDefinition(java.lang.String tagName,
java.lang.String parameterClass)
Handles a constructor definition. |
protected void |
handleElementDefinition(java.lang.String name,
java.lang.String element)
Handles the description of an element within an object definition. |
protected void |
handleIgnoredProperty(java.lang.String name)
Callback method for ignored properties. |
protected void |
handleLookupDefinition(java.lang.String name,
java.lang.String lookupKey)
Handles an lookup definition. |
protected boolean |
handleManualMapping(java.lang.String className,
java.lang.String readHandler,
java.lang.String writeHandler)
Handles a manual mapping. |
protected void |
handleMultiplexMapping(java.lang.String typeName,
java.lang.String className)
Defines an entry for the multiplex mapping. |
DescriptionModel |
load(java.lang.String file)
|
protected void |
startIncludeHandling(java.net.URL resource)
|
protected void |
startMultiplexMapping(java.lang.String className,
java.lang.String typeAttr)
Starts a multiplex mapping. |
protected boolean |
startObjectDefinition(java.lang.String className,
java.lang.String register,
boolean ignore)
Begin processing an object definition element. |
protected void |
startRootDocument()
|
Methods inherited from class org.jfree.xml.util.AbstractModelReader |
getCloseComment, getOpenComment, loadClass, parseXml, parseXmlDocument, setCloseComment, setOpenComment |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultModelReader()
Method Detail |
public DescriptionModel load(java.lang.String file) throws java.io.IOException, ObjectDescriptionException
java.io.IOException
ObjectDescriptionException
protected void fillSuperClasses()
protected boolean startObjectDefinition(java.lang.String className, java.lang.String register, boolean ignore)
startObjectDefinition
in class AbstractModelReader
className
- the class name.register
- the register name (null
permitted).ignore
- ??
true
if the class is available, and false
otherwise.protected void endObjectDefinition() throws ObjectDescriptionException
endObjectDefinition
in class AbstractModelReader
ObjectDescriptionException
- if an error occures.protected void handleAttributeDefinition(java.lang.String name, java.lang.String attribName, java.lang.String handlerClass) throws ObjectDescriptionException
handleAttributeDefinition
in class AbstractModelReader
name
- the name.attribName
- the attribute name.handlerClass
- the fully qualified class name for the attribute handler.
ObjectDescriptionException
- if an error occured.protected void handleConstructorDefinition(java.lang.String tagName, java.lang.String parameterClass) throws ObjectDescriptionException
AbstractModelReader
handleConstructorDefinition
in class AbstractModelReader
tagName
- the property name of the referenced local propertyparameterClass
- the parameter class for the parameter.
ObjectDescriptionException
- if an error occured.protected void handleElementDefinition(java.lang.String name, java.lang.String element) throws ObjectDescriptionException
handleElementDefinition
in class AbstractModelReader
name
- the property name.element
- the element name.
ObjectDescriptionException
- if an error occurs.protected void handleLookupDefinition(java.lang.String name, java.lang.String lookupKey) throws ObjectDescriptionException
AbstractModelReader
handleLookupDefinition
in class AbstractModelReader
name
- the property name of the base objectlookupKey
- the register key of the referenced object
ObjectDescriptionException
- if an error occured.protected java.beans.PropertyDescriptor getPropertyDescriptor(java.lang.String propertyName)
null
if there is
no descriptor with the given name.
propertyName
- the property name.
protected void handleIgnoredProperty(java.lang.String name)
AbstractModelReader
handleIgnoredProperty
in class AbstractModelReader
name
- the name of the ignored property.protected boolean handleManualMapping(java.lang.String className, java.lang.String readHandler, java.lang.String writeHandler) throws ObjectDescriptionException
handleManualMapping
in class AbstractModelReader
className
- the class name.readHandler
- the read handler.writeHandler
- the write handler.
ObjectDescriptionException
- if an unexpected error occured.protected void startMultiplexMapping(java.lang.String className, java.lang.String typeAttr)
AbstractModelReader
startMultiplexMapping
in class AbstractModelReader
className
- the base class nametypeAttr
- the xml-attribute name containing the mapping keyprotected void handleMultiplexMapping(java.lang.String typeName, java.lang.String className) throws ObjectDescriptionException
AbstractModelReader
typename
and
will resolve to the handler for the given classname.
handleMultiplexMapping
in class AbstractModelReader
typeName
- the type value for this mapping.className
- the class name to which this mapping resolves.
ObjectDescriptionException
- if an error occurs.protected void endMultiplexMapping() throws ObjectDescriptionException
AbstractModelReader
endMultiplexMapping
in class AbstractModelReader
ObjectDescriptionException
- if an error occurs.protected void startIncludeHandling(java.net.URL resource)
startIncludeHandling
in class AbstractModelReader
protected void endIncludeHandling()
endIncludeHandling
in class AbstractModelReader
protected void startRootDocument()
startRootDocument
in class AbstractModelReader
protected void endRootDocument()
endRootDocument
in class AbstractModelReader
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |