|
||||||||||
| 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
public class DefaultModelReader
A reader for the class model.
| Constructor Summary | |
|---|---|
DefaultModelReader()
Creates a new model reader. |
|
| Method Summary | |
|---|---|
protected void |
endIncludeHandling()
Ends include handling. |
protected void |
endMultiplexMapping()
Ends a multiplex 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()
Ends the root document. |
protected void |
fillSuperClasses()
Iterates through all the class descriptions in the model, setting the superclass attribute in all cases where the superclass definitions are contained in the model. |
protected PropertyDescriptor |
getPropertyDescriptor(String propertyName)
Returns a property descriptor for the named property, or null if there is
no descriptor with the given name. |
protected void |
handleAttributeDefinition(String name,
String attribName,
String handlerClass)
Handles the description of an attribute within an object definition. |
protected void |
handleConstructorDefinition(String tagName,
String parameterClass)
Handles the constructor definition. |
protected void |
handleElementDefinition(String name,
String element)
Handles the description of an element within an object definition. |
protected void |
handleIgnoredProperty(String name)
Handles an ignored property. |
protected void |
handleLookupDefinition(String name,
String lookupKey)
Handles a lookup definition. |
protected boolean |
handleManualMapping(String className,
String readHandler,
String writeHandler)
Handles a manual mapping. |
protected void |
handleMultiplexMapping(String typeName,
String className)
Handles a multiplex mapping. |
DescriptionModel |
load(String file)
Loads a description model. |
protected void |
startIncludeHandling(URL resource)
Starts include handling. |
protected void |
startMultiplexMapping(String className,
String typeAttr)
Start a multiplex mapping. |
protected boolean |
startObjectDefinition(String className,
String register,
boolean ignore)
Begin processing an object definition element. |
protected void |
startRootDocument()
Starts the root document. |
| Methods inherited from class org.jfree.xml.util.AbstractModelReader |
|---|
getCloseComment, getCommentHandler, 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(String file)
throws IOException,
ObjectDescriptionException
file - the file name.
IOException - if there is an I/O problem.
ObjectDescriptionException - if there is a problem reading the object descriptions.protected void fillSuperClasses()
protected boolean startObjectDefinition(String className,
String register,
boolean ignore)
startObjectDefinition in class AbstractModelReaderclassName - 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 AbstractModelReaderObjectDescriptionException - if there is a problem with the object description.
protected void handleAttributeDefinition(String name,
String attribName,
String handlerClass)
throws ObjectDescriptionException
handleAttributeDefinition in class AbstractModelReadername - the name.attribName - the attribute name.handlerClass - the fully qualified class name for the attribute handler.
ObjectDescriptionException - if there is a problem with the object description.
protected void handleConstructorDefinition(String tagName,
String parameterClass)
throws ObjectDescriptionException
handleConstructorDefinition in class AbstractModelReadertagName - the tag name.parameterClass - the parameter class.
ObjectDescriptionException - if there is a problem with the object description.
protected void handleElementDefinition(String name,
String element)
throws ObjectDescriptionException
handleElementDefinition in class AbstractModelReadername - the property name.element - the element name.
ObjectDescriptionException - if there is a problem with the object description.
protected void handleLookupDefinition(String name,
String lookupKey)
throws ObjectDescriptionException
handleLookupDefinition in class AbstractModelReadername - the name.lookupKey - the lookup key.
ObjectDescriptionException - if there is a problem with the object description.protected PropertyDescriptor getPropertyDescriptor(String propertyName)
null if there is
no descriptor with the given name.
propertyName - the property name.
protected void handleIgnoredProperty(String name)
handleIgnoredProperty in class AbstractModelReadername - the name.
protected boolean handleManualMapping(String className,
String readHandler,
String writeHandler)
throws ObjectDescriptionException
handleManualMapping in class AbstractModelReaderclassName - the class name.readHandler - the read handler.writeHandler - the write handler.
ObjectDescriptionException - if there is a problem with the object description.
protected void startMultiplexMapping(String className,
String typeAttr)
startMultiplexMapping in class AbstractModelReaderclassName - the class name.typeAttr - the type.
protected void handleMultiplexMapping(String typeName,
String className)
throws ObjectDescriptionException
handleMultiplexMapping in class AbstractModelReadertypeName - the type name.className - the class name.
ObjectDescriptionException - if there is a problem with the object description.
protected void endMultiplexMapping()
throws ObjectDescriptionException
endMultiplexMapping in class AbstractModelReaderObjectDescriptionException - if there is a problem with the object description.protected void startIncludeHandling(URL resource)
startIncludeHandling in class AbstractModelReaderresource - the URL.protected void endIncludeHandling()
endIncludeHandling in class AbstractModelReaderprotected void startRootDocument()
startRootDocument in class AbstractModelReaderprotected void endRootDocument()
endRootDocument in class AbstractModelReader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||