| java.lang.Object org.theospi.portfolio.shared.model.impl.GenericXmlRenderer
GenericXmlRenderer | public class GenericXmlRenderer implements PresentableObjectHome(Code) | | This class renders an object into an xml object. This implementation
uses bean introspection to navigate the object model and convert into
a jdom model. In relies on the objectStructure xml file to specify which
properties to traverse. The prevents circlular references from being
traversed.
Valid values for type attribute are: collection, artifact, object.
If not specified object is assumed.
|
Field Summary | |
final protected Log | logger |
Method Summary | |
protected void | addArtifactItem(Element parentNode, PropertyDescriptor prop, Object object) | protected void | addCollectionItems(Element parentNode, PropertyDescriptor prop, Object object, Element structure) | protected void | addItem(Element parentNode, PropertyDescriptor prop, Object object, Element structure) | protected void | addItemToXml(Element parentNode, PropertyDescriptor prop, Object object) | protected void | addObjectNodeInfo(Element parentNode, Object object, Element structure) | public Element | getArtifactAsXml(Artifact artifact) | public ArtifactFinder | getArtifactFinder() | public String | getArtifactType() | protected String | getCollectionItemName(String listName) | public String | getObjectStructure() | protected Element | getObjectStructureRoot() | public String | getRootName() | public String | getSupportedType() | protected Element | getXml(Object object) | protected boolean | isArtifact(PropertyDescriptor prop, Element structure) | protected boolean | isCollection(PropertyDescriptor prop, Element structure) | protected boolean | isTraversableType(PropertyDescriptor descriptor, Element structure) | public void | setArtifactFinder(ArtifactFinder artifactFinder) | public void | setArtifactType(String artifactType) | public void | setObjectStructure(String objectStructure) | public void | setRootName(String rootName) | public void | setSupportedType(String supportedType) |
logger | final protected Log logger(Code) | | |
getArtifactAsXml | public Element getArtifactAsXml(Artifact artifact)(Code) | | |
getObjectStructureRoot | protected Element getObjectStructureRoot()(Code) | | |
setArtifactType | public void setArtifactType(String artifactType)(Code) | | |
setObjectStructure | public void setObjectStructure(String objectStructure)(Code) | | |
setSupportedType | public void setSupportedType(String supportedType)(Code) | | |
|
|