org.jboss.seam.config.xml.model
Class AbstractXmlItem

java.lang.Object
  extended by org.jboss.seam.config.xml.model.AbstractXmlItem
All Implemented Interfaces:
XmlItem
Direct Known Subclasses:
AbstractValueXmlItem, AnnotationXmlItem, ClassXmlItem, EntryXmlItem, MethodXmlItem, ModifiesXmlItem, ParametersXmlItem, ParameterXmlItem, PropertyXmlItem, ReplacesXmlItem

public abstract class AbstractXmlItem
extends Object
implements XmlItem


Field Summary
protected  Map<String,String> attributes
           
protected  String document
           
protected  String innerText
           
protected  Class<?> javaClass
           
protected  int lineno
           
protected  XmlItem parent
           
protected  XmlItemType type
           
 
Constructor Summary
AbstractXmlItem(XmlItemType type, XmlItem parent, Class<?> javaClass, String innerText, Map<String,String> attributes, String document, int lineno)
           
 
Method Summary
 void addChild(XmlItem xmlItem)
           
 Map<String,String> getAttributes()
           
 List<XmlItem> getChildren()
           
<T> List<T>
getChildrenOfType(Class<T> type)
           
 String getDocument()
           
 String getInnerText()
           
 Class<?> getJavaClass()
           
 int getLineno()
           
 XmlItem getParent()
           
 XmlItemType getType()
           
 boolean resolveChildren(BeanManager manager)
          attempts to resolve any information that is not available at parse time
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.seam.config.xml.model.XmlItem
getAllowedItem
 

Field Detail

type

protected final XmlItemType type

parent

protected final XmlItem parent

javaClass

protected final Class<?> javaClass

innerText

protected final String innerText

attributes

protected final Map<String,String> attributes

lineno

protected final int lineno

document

protected final String document
Constructor Detail

AbstractXmlItem

public AbstractXmlItem(XmlItemType type,
                       XmlItem parent,
                       Class<?> javaClass,
                       String innerText,
                       Map<String,String> attributes,
                       String document,
                       int lineno)
Method Detail

getInnerText

public String getInnerText()
Specified by:
getInnerText in interface XmlItem

getLineno

public int getLineno()
Specified by:
getLineno in interface XmlItem

getDocument

public String getDocument()
Specified by:
getDocument in interface XmlItem

addChild

public void addChild(XmlItem xmlItem)
Specified by:
addChild in interface XmlItem

getParent

public XmlItem getParent()
Specified by:
getParent in interface XmlItem

getChildren

public List<XmlItem> getChildren()
Specified by:
getChildren in interface XmlItem

getType

public XmlItemType getType()
Specified by:
getType in interface XmlItem

getJavaClass

public Class<?> getJavaClass()
Specified by:
getJavaClass in interface XmlItem

resolveChildren

public boolean resolveChildren(BeanManager manager)
Description copied from interface: XmlItem
attempts to resolve any information that is not available at parse time

Specified by:
resolveChildren in interface XmlItem
Returns:

getAttributes

public Map<String,String> getAttributes()

getChildrenOfType

public <T> List<T> getChildrenOfType(Class<T> type)
Specified by:
getChildrenOfType in interface XmlItem


Copyright © 2011 Seam Framework. All Rights Reserved.