Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.jfree.xml.util.AbstractModelReader
org.jfree.xml.generator.DefaultModelReader
public class DefaultModelReader
extends AbstractModelReader
Constructor Summary | |
|
Method Summary | |
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected PropertyDescriptor |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected void |
|
protected boolean |
|
protected void |
|
DescriptionModel |
|
protected void |
|
protected void |
|
protected boolean |
|
protected void |
|
protected void endIncludeHandling()
Ends include handling.
- Overrides:
- endIncludeHandling in interface AbstractModelReader
protected void endMultiplexMapping() throws ObjectDescriptionException
Ends a multiplex mapping.
- Overrides:
- endMultiplexMapping in interface AbstractModelReader
- Throws:
ObjectDescriptionException
- if there is a problem with the object description.
protected void endObjectDefinition() throws ObjectDescriptionException
Finishes processing an object definition (sets the constructor and property info for the class description, and adds the class description to the model).
- Overrides:
- endObjectDefinition in interface AbstractModelReader
- Throws:
ObjectDescriptionException
- if there is a problem with the object description.
protected void endRootDocument()
Ends the root document.
- Overrides:
- endRootDocument in interface AbstractModelReader
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, ornull
if there is no descriptor with the given name.
- Parameters:
propertyName
- the property name.
- Returns:
- a property descriptor.
protected void handleAttributeDefinition(String name, String attribName, String handlerClass) throws ObjectDescriptionException
Handles the description of an attribute within an object definition.
- Overrides:
- handleAttributeDefinition in interface AbstractModelReader
- Parameters:
name
- the name.attribName
- the attribute name.handlerClass
- the fully qualified class name for the attribute handler.
- Throws:
ObjectDescriptionException
- if there is a problem with the object description.
protected void handleConstructorDefinition(String tagName, String parameterClass) throws ObjectDescriptionException
Handles the constructor definition.
- Overrides:
- handleConstructorDefinition in interface AbstractModelReader
- Parameters:
tagName
- the tag name.parameterClass
- the parameter class.
- Throws:
ObjectDescriptionException
- if there is a problem with the object description.
protected void handleElementDefinition(String name, String element) throws ObjectDescriptionException
Handles the description of an element within an object definition.
- Overrides:
- handleElementDefinition in interface AbstractModelReader
- Parameters:
name
- the property name.element
- the element name.
- Throws:
ObjectDescriptionException
- if there is a problem with the object description.
protected void handleIgnoredProperty(String name)
Handles an ignored property.
- Overrides:
- handleIgnoredProperty in interface AbstractModelReader
- Parameters:
name
- the name.
protected void handleLookupDefinition(String name, String lookupKey) throws ObjectDescriptionException
Handles a lookup definition.
- Overrides:
- handleLookupDefinition in interface AbstractModelReader
- Parameters:
name
- the name.lookupKey
- the lookup key.
- Throws:
ObjectDescriptionException
- if there is a problem with the object description.
protected boolean handleManualMapping(String className, String readHandler, String writeHandler) throws ObjectDescriptionException
Handles a manual mapping.
- Overrides:
- handleManualMapping in interface AbstractModelReader
- Parameters:
className
- the class name.readHandler
- the read handler.writeHandler
- the write handler.
- Returns:
- A boolean.
- Throws:
ObjectDescriptionException
- if there is a problem with the object description.
protected void handleMultiplexMapping(String typeName, String className) throws ObjectDescriptionException
Handles a multiplex mapping.
- Overrides:
- handleMultiplexMapping in interface AbstractModelReader
- Parameters:
typeName
- the type name.className
- the class name.
- Throws:
ObjectDescriptionException
- if there is a problem with the object description.
public DescriptionModel load(String file) throws IOException, ObjectDescriptionException
Loads a description model.
- Parameters:
file
- the file name.
- Returns:
- A description model.
- Throws:
ObjectDescriptionException
- if there is a problem reading the object descriptions.
protected void startIncludeHandling(URL resource)
Starts include handling.
- Overrides:
- startIncludeHandling in interface AbstractModelReader
- Parameters:
resource
- the URL.
protected void startMultiplexMapping(String className, String typeAttr)
Start a multiplex mapping.
- Overrides:
- startMultiplexMapping in interface AbstractModelReader
- Parameters:
className
- the class name.typeAttr
- the type.
protected boolean startObjectDefinition(String className, String register, boolean ignore)
Begin processing an object definition element.
- Overrides:
- startObjectDefinition in interface AbstractModelReader
- Parameters:
className
- the class name.register
- the register name (null
permitted).ignore
- ??
- Returns:
true
if the class is available, andfalse
otherwise.
protected void startRootDocument()
Starts the root document.
- Overrides:
- startRootDocument in interface AbstractModelReader