| java.lang.Object org.cougaar.lib.vishnu.client.BaseXMLize org.cougaar.lib.vishnu.client.FormatXMLize
All known Subclasses: org.cougaar.lib.vishnu.client.DataXMLize,
FormatXMLize | public class FormatXMLize extends BaseXMLize implements XMLizer(Code) | | Create XML document in the Vishnu ObjectFormat format,
directly from ALP objects.
Create and return xml for first class log plan objects.
Element name is extracted from object class, by taking the
last field of the object class, and dropping a trailing "Impl",
if it exists.
|
Method Summary | |
protected void | addIntervalNamed(String name, Document doc, Element item) | protected void | addNodes(Document doc, Object obj, Element parentElement, int searchDepth, Collection createdNodes) | protected void | addScheduleElements(Document doc, Element item) | protected boolean | checkForDateAspect(PropertyNameValue pnv, boolean foundDateAspect) | protected void | correctKey(Element parentElement, Element item) | public Document | createDoc(Collection items, Collection ignoredChangedItems, String assetClassName) implemented for XMLizer interface
creates an DOM Document out of the collection of items passed in,
with the name of the resource class. | protected Element | createFieldFormat(Document doc, String name, Object theObj, boolean isList, boolean isSubobject) | protected Element | createObjectFormat(Document doc, String name, boolean isTask, boolean isResource, Object theObj, String resourceClassName) | protected Element | createRootNode(Document doc, String tag, boolean isTask, boolean isResource, Object obj, String resourceClassName) | protected void | generateElementReachedMaxDepth(Document doc, Element parentElement, Object obj) Already seen this object or reached maximum depth. | protected void | generateLeaf(Document doc, Element parentElement, String propertyName, Object propertyValue) | protected void | generateNonLeaf(Document doc, Element parentElement, String propertyName, Object propertyValue, int searchDepth, boolean isList, boolean isFirst, Collection createdNodes) | protected String | getTypeFor(Object theObj) | public Map | getUnique() | protected boolean | ignoreObject(Object theObj) | protected boolean | isGlobal(Object obj) | protected boolean | isKey(Object theObj) | protected boolean | isList(Object theObj) | protected void | removeChildNamed(Element roleScheduleImpl, String childName) | protected boolean | skipObject(Object theObj) |
RECURSION_DEPTH | final protected int RECURSION_DEPTH(Code) | | |
unique | Map unique(Code) | | Recursively introspect and add nodes to the XML document.
Keeps a Set of objects (as these can be circular) and stops
when it tries to introspect over an object a second time.
Also keeps a depth counter, decrements for each call to addNodes,
and stops when the counter is zero. Use Integer.MAX_VALUE to
indicate an unlimited search.
|
addScheduleElements | protected void addScheduleElements(Document doc, Element item)(Code) | | need to have special code to add plan element intervals to role schedule format, since
bean properties don't include them
|
createDoc | public Document createDoc(Collection items, Collection ignoredChangedItems, String assetClassName)(Code) | | implemented for XMLizer interface
creates an DOM Document out of the collection of items passed in,
with the name of the resource class.
|
generateElementReachedMaxDepth | protected void generateElementReachedMaxDepth(Document doc, Element parentElement, Object obj)(Code) | | Already seen this object or reached maximum depth.
Write the UID if possible, otherwise write the "toString".
|
ignoreObject | protected boolean ignoreObject(Object theObj)(Code) | | |
isGlobal | protected boolean isGlobal(Object obj)(Code) | | all property groups become globals, except for item id pg
|
removeChildNamed | protected void removeChildNamed(Element roleScheduleImpl, String childName)(Code) | | |
Methods inherited from org.cougaar.lib.vishnu.client.BaseXMLize | protected void addNodes(Document doc, Object obj, Element parentElement, int searchDepth, Collection createdNodes)(Code)(Java Doc) abstract protected Element createRootNode(Document doc, String tag, boolean isTask, boolean isResource, Object obj, String resourceClassName)(Code)(Java Doc) protected void generateElem(Document doc, Element parentElement, String propertyName, Object propertyValue, int searchDepth, boolean isList, boolean isFirst, Collection createdNodes)(Code)(Java Doc) abstract protected void generateElementReachedMaxDepth(Document doc, Element parentElement, Object obj)(Code)(Java Doc) abstract protected void generateLeaf(Document doc, Element parentElement, String propertyName, Object propertyValue)(Code)(Java Doc) abstract protected void generateNonLeaf(Document doc, Element parentElement, String propertyName, Object propertyValue, int searchDepth, boolean isList, boolean isFirst, Collection createdNodes)(Code)(Java Doc) public List getDynamicAssetProperties(Asset asset)(Code)(Java Doc) public Element getPlanObjectXML(Object obj, Document doc, String resourceClassName)(Code)(Java Doc) public Element getPlanObjectXML(Object obj, Document doc, int searchDepth, String resourceClassName)(Code)(Java Doc) public Collection getPlanObjectXMLNodes(Object obj, Document doc, String resourceClassName)(Code)(Java Doc) public Collection getPlanObjectXMLNodes(Object obj, Document doc, int searchDepth, String resourceClassName)(Code)(Java Doc) protected List getProperties(Object obj, Map listProps)(Code)(Java Doc) protected Object getReadResult(Object obj, Method rm)(Code)(Java Doc) protected String getValueOfPrimitiveFloat(Object value)(Code)(Java Doc) protected boolean ignoreClass(Class aClass)(Code)(Java Doc) protected boolean isPrimitive(Class propertyClass)(Code)(Java Doc) protected boolean isPrimitiveFloat(Class theClass)(Code)(Java Doc) protected boolean isUniqueObject(Object obj)(Code)(Java Doc) protected PropertyDescriptor[] prunePropertiesFromMeasure(AbstractMeasure measure, PropertyDescriptor[] properties)(Code)(Java Doc) protected void reportTime(String prefix, Date start)(Code)(Java Doc)
|
|
|