org.skyscreamer.yoga.model
Class XmlHierarchyModelImpl

java.lang.Object
  extended by org.skyscreamer.yoga.model.XmlHierarchyModelImpl
All Implemented Interfaces:
HierarchicalModel<org.dom4j.Element>, ListHierarchicalModel<org.dom4j.Element>, MapHierarchicalModel<org.dom4j.Element>

public class XmlHierarchyModelImpl
extends Object
implements MapHierarchicalModel<org.dom4j.Element>, ListHierarchicalModel<org.dom4j.Element>


Field Summary
protected  String defaultName
           
protected  org.dom4j.Element element
           
 
Constructor Summary
XmlHierarchyModelImpl(org.dom4j.Element element)
           
XmlHierarchyModelImpl(org.dom4j.Element element, String defaultName)
           
 
Method Summary
 void addProperty(String name, Object result)
           
 void addValue(Object instance)
           
 ListHierarchicalModel<org.dom4j.Element> createChildList(String name)
           
 MapHierarchicalModel<org.dom4j.Element> createChildMap()
           
 MapHierarchicalModel<org.dom4j.Element> createChildMap(String name)
           
 org.dom4j.Element getUnderlyingModel()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

element

protected org.dom4j.Element element

defaultName

protected String defaultName
Constructor Detail

XmlHierarchyModelImpl

public XmlHierarchyModelImpl(org.dom4j.Element element)

XmlHierarchyModelImpl

public XmlHierarchyModelImpl(org.dom4j.Element element,
                             String defaultName)
Method Detail

addProperty

public void addProperty(String name,
                        Object result)
Specified by:
addProperty in interface MapHierarchicalModel<org.dom4j.Element>

createChildMap

public MapHierarchicalModel<org.dom4j.Element> createChildMap(String name)
Specified by:
createChildMap in interface MapHierarchicalModel<org.dom4j.Element>

createChildMap

public MapHierarchicalModel<org.dom4j.Element> createChildMap()
Specified by:
createChildMap in interface ListHierarchicalModel<org.dom4j.Element>

createChildList

public ListHierarchicalModel<org.dom4j.Element> createChildList(String name)
Specified by:
createChildList in interface MapHierarchicalModel<org.dom4j.Element>

addValue

public void addValue(Object instance)
Specified by:
addValue in interface ListHierarchicalModel<org.dom4j.Element>

getUnderlyingModel

public org.dom4j.Element getUnderlyingModel()
Specified by:
getUnderlyingModel in interface HierarchicalModel<org.dom4j.Element>


Copyright © 2012. All Rights Reserved.