Package jadex.xml
Class StackElement
- java.lang.Object
- 
- jadex.xml.StackElement
 
- 
 public class StackElement extends java.lang.ObjectA struct to represent an element on the stack while parsing.
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.StringcontentThe collected content.protected ILocationlocationThe location of the start tag.protected java.lang.ObjectobjectThe created object.protected java.util.List<java.lang.String>partsCollecting content.protected java.util.Map<java.lang.String,java.lang.String>rawattrsThe raw attributes.protected IObjectReaderHandlerreaderhandlerThe reader handler (if any).protected QNametagThe xml tag.protected TypeInfotypeinfoThe type info.
 - 
Constructor SummaryConstructors Constructor Description StackElement(IObjectReaderHandler readerhandler, QName tag, java.lang.Object object)Create a new stack element.StackElement(IObjectReaderHandler readerhandler, QName tag, java.lang.Object object, java.util.Map<java.lang.String,java.lang.String> rawattrs)Create a new stack element.StackElement(IObjectReaderHandler readerhandler, QName tag, java.lang.Object object, java.util.Map<java.lang.String,java.lang.String> rawattrs, TypeInfo typeinfo, ILocation location)Create a new stack element.StackElement(QName tag, java.lang.Object object)Create a new stack element.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddContent(java.lang.String content)Add content to the already collected content (if any).booleanequals(java.lang.Object obj)Test if two stack elements are equal.java.lang.StringgetContent()Get the content (if any).ILocationgetLocation()Get the location.java.lang.ObjectgetObject()Get the object.java.util.Map<java.lang.String,java.lang.String>getRawAttributes()Get the raw attributes.IObjectReaderHandlergetReaderHandler()Get the current reader handler.QNamegetTag()Get the tag.TypeInfogetTypeInfo()Get the typeinfo.inthashCode()Get the hash code.voidsetObject(java.lang.Object object)Set the object.java.lang.StringtoString()Get the string representation.
 
- 
- 
- 
Field Detail- 
readerhandlerprotected IObjectReaderHandler readerhandler The reader handler (if any).
 - 
tagprotected QName tag The xml tag.
 - 
objectprotected java.lang.Object object The created object.
 - 
contentprotected java.lang.String content The collected content.
 - 
partsprotected java.util.List<java.lang.String> parts Collecting content.
 - 
rawattrsprotected java.util.Map<java.lang.String,java.lang.String> rawattrs The raw attributes.
 - 
typeinfoprotected TypeInfo typeinfo The type info.
 - 
locationprotected ILocation location The location of the start tag.
 
- 
 - 
Constructor Detail- 
StackElementpublic StackElement(QName tag, java.lang.Object object) Create a new stack element.
 - 
StackElementpublic StackElement(IObjectReaderHandler readerhandler, QName tag, java.lang.Object object) Create a new stack element.
 - 
StackElementpublic StackElement(IObjectReaderHandler readerhandler, QName tag, java.lang.Object object, java.util.Map<java.lang.String,java.lang.String> rawattrs) Create a new stack element.
 - 
StackElementpublic StackElement(IObjectReaderHandler readerhandler, QName tag, java.lang.Object object, java.util.Map<java.lang.String,java.lang.String> rawattrs, TypeInfo typeinfo, ILocation location) Create a new stack element.
 
- 
 - 
Method Detail- 
getTagpublic QName getTag() Get the tag.- Returns:
- The tag.
 
 - 
getObjectpublic java.lang.Object getObject() Get the object.- Returns:
- The object.
 
 - 
setObjectpublic void setObject(java.lang.Object object) Set the object.- Parameters:
- object- The object to set.
 
 - 
getContentpublic java.lang.String getContent() Get the content (if any).- Returns:
- The content or null for empty elements.
 
 - 
getRawAttributespublic java.util.Map<java.lang.String,java.lang.String> getRawAttributes() Get the raw attributes.- Returns:
- The raw attributes.
 
 - 
getTypeInfopublic TypeInfo getTypeInfo() Get the typeinfo.- Returns:
- The typeinfo.
 
 - 
getLocationpublic ILocation getLocation() Get the location.- Returns:
- The location.
 
 - 
addContentpublic void addContent(java.lang.String content) Add content to the already collected content (if any).- Parameters:
- content- The content to add.
 
 - 
toStringpublic java.lang.String toString() Get the string representation.- Overrides:
- toStringin class- java.lang.Object
- Returns:
- The string representation.
 
 - 
hashCodepublic int hashCode() Get the hash code.- Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) Test if two stack elements are equal.- Overrides:
- equalsin class- java.lang.Object
 
 - 
getReaderHandlerpublic IObjectReaderHandler getReaderHandler() Get the current reader handler.
 
- 
 
-