public class StackElement
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
content
The collected content.
|
protected ILocation |
location
The location of the start tag.
|
protected java.lang.Object |
object
The created object.
|
protected java.util.List<java.lang.String> |
parts
Collecting content.
|
protected java.util.Map<java.lang.String,java.lang.String> |
rawattrs
The raw attributes.
|
protected IObjectReaderHandler |
readerhandler
The reader handler (if any).
|
protected QName |
tag
The xml tag.
|
protected TypeInfo |
typeinfo
The type info.
|
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
void |
addContent(java.lang.String content)
Add content to the already collected content (if any).
|
boolean |
equals(java.lang.Object obj)
Test if two stack elements are equal.
|
java.lang.String |
getContent()
Get the content (if any).
|
ILocation |
getLocation()
Get the location.
|
java.lang.Object |
getObject()
Get the object.
|
java.util.Map<java.lang.String,java.lang.String> |
getRawAttributes()
Get the raw attributes.
|
IObjectReaderHandler |
getReaderHandler()
Get the current reader handler.
|
QName |
getTag()
Get the tag.
|
TypeInfo |
getTypeInfo()
Get the typeinfo.
|
int |
hashCode()
Get the hash code.
|
void |
setObject(java.lang.Object object)
Set the object.
|
java.lang.String |
toString()
Get the string representation.
|
protected IObjectReaderHandler readerhandler
protected QName tag
protected java.lang.Object object
protected java.lang.String content
protected java.util.List<java.lang.String> parts
protected java.util.Map<java.lang.String,java.lang.String> rawattrs
protected TypeInfo typeinfo
protected ILocation location
public StackElement(QName tag, java.lang.Object object)
public StackElement(IObjectReaderHandler readerhandler, QName tag, java.lang.Object object)
public StackElement(IObjectReaderHandler readerhandler, QName tag, java.lang.Object object, java.util.Map<java.lang.String,java.lang.String> rawattrs)
public StackElement(IObjectReaderHandler readerhandler, QName tag, java.lang.Object object, java.util.Map<java.lang.String,java.lang.String> rawattrs, TypeInfo typeinfo, ILocation location)
public QName getTag()
public java.lang.Object getObject()
public void setObject(java.lang.Object object)
object
- The object to set.public java.lang.String getContent()
public java.util.Map<java.lang.String,java.lang.String> getRawAttributes()
public TypeInfo getTypeInfo()
public ILocation getLocation()
public void addContent(java.lang.String content)
content
- The content to add.public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public IObjectReaderHandler getReaderHandler()