|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.util.xml.AbstractObjectHandler
org.progeeks.util.xml.BeanObjectHandler
org.progeeks.util.xml.DefaultObjectHandler
org.progeeks.graph.xml.GraphObjectHandler
public class GraphObjectHandler
An ObjectXmlReader object handler capable of reading most Plexus Graphs from a specifically formatted XML file. For the most part this treats the Graph like a bean, but certain fields (such as "edges" and "nodes" have significant meaning to this handler and do not directly relate to bean setters.
Nested Class Summary | |
---|---|
static class |
GraphObjectHandler.EdgeHolder
|
Field Summary |
---|
Fields inherited from class org.progeeks.util.xml.BeanObjectHandler |
---|
CONFIG_IMPORT_PACKAGE |
Constructor Summary | |
---|---|
GraphObjectHandler()
|
Method Summary | |
---|---|
boolean |
canHandle(java.lang.String tag)
Returns true if this handler applies to the specified object tag. |
java.lang.Object |
createObject(java.lang.String tag,
org.xml.sax.Attributes atts,
ObjectXmlReader reader)
Creates and returns an object based on the specified parameters. |
boolean |
getHandleAllGraphs()
Returns true if the handler will handle any com.phoenixt.plexus.Graph implementations. |
java.lang.Class |
getPropertyClass(java.lang.Object obj,
java.lang.String field,
ObjectXmlReader reader)
Returns the base type for the specified field. |
java.util.Collection |
getPropertyCollection(java.lang.Object obj,
java.lang.String field,
ObjectXmlReader reader)
Returns the a collection for the specified field that can be used to accumulate multiple object values. |
protected boolean |
ignoreAttribute(java.lang.String name,
ObjectXmlReader reader)
A convenient place for subclasses to override attribute ignore behavior. |
void |
setHandleAllGraphs(boolean flag)
Set to true for the handler to handle any com.phoenixt.plexus.Graph implementations. |
void |
setProperty(java.lang.Object obj,
java.lang.String field,
java.lang.Object value,
ObjectXmlReader reader)
Sets a property on the specified object. |
Methods inherited from class org.progeeks.util.xml.DefaultObjectHandler |
---|
addHandledClass, getHandledClasses |
Methods inherited from class org.progeeks.util.xml.BeanObjectHandler |
---|
getClass, getClass, getConstant, getInnerClass, getPackages, getProperty, getTagClass, importPackage, setConfigurationProperty, setObjectProperties, setPackages, setTextProperty |
Methods inherited from class org.progeeks.util.xml.AbstractObjectHandler |
---|
resolveObject, setContainedText |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphObjectHandler()
Method Detail |
---|
public void setHandleAllGraphs(boolean flag)
public boolean getHandleAllGraphs()
public boolean canHandle(java.lang.String tag)
canHandle
in interface ObjectHandler
canHandle
in class DefaultObjectHandler
public void setProperty(java.lang.Object obj, java.lang.String field, java.lang.Object value, ObjectXmlReader reader)
setProperty
in interface ObjectHandler
setProperty
in class BeanObjectHandler
public java.lang.Class getPropertyClass(java.lang.Object obj, java.lang.String field, ObjectXmlReader reader)
getPropertyClass
in interface ObjectHandler
getPropertyClass
in class BeanObjectHandler
public java.util.Collection getPropertyCollection(java.lang.Object obj, java.lang.String field, ObjectXmlReader reader)
getPropertyCollection
in interface ObjectHandler
getPropertyCollection
in class BeanObjectHandler
protected boolean ignoreAttribute(java.lang.String name, ObjectXmlReader reader)
BeanObjectHandler
ignoreAttribute
in class BeanObjectHandler
public java.lang.Object createObject(java.lang.String tag, org.xml.sax.Attributes atts, ObjectXmlReader reader)
createObject
in interface ObjectHandler
createObject
in class BeanObjectHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |