|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.util.documentserializer.SerializationState
public class SerializationState
This object keeps track of most of the open tags while a document is serialized. Note that instances of this class
may not necessarily hold all open tags of a document while it is being serialized. For example, tags enclosing list elements
and map entries are not contained within here. See DocumentSerializerServiceImpl
to determine when this object's state
is modified.
This class's manipulators behave much like a stack, but it has random access characteristics like an array.
Nested Class Summary | |
---|---|
protected class |
SerializationState.SerializationPropertyElement
|
Constructor Summary | |
---|---|
SerializationState()
|
Method Summary | |
---|---|
void |
addSerializedProperty(String elementName,
PropertyType propertyType)
Adds an additional state element into this object. |
String |
getElementName(int propertyIndex)
Retrieves the element name of the state element. |
PropertyType |
getPropertyType(int propertyIndex)
Retrieves the property type of the state element. |
int |
numPropertyElements()
The number of property elements in this state object. |
void |
removeSerializedProperty()
Removes the last added serialized property |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SerializationState()
Method Detail |
---|
public int numPropertyElements()
public void addSerializedProperty(String elementName, PropertyType propertyType)
elementName
- propertyType
- the type of the property when it was serializedpublic void removeSerializedProperty()
public String getElementName(int propertyIndex)
addSerializedProperty(String, PropertyType)
that hasn't been removed, and a value of
numPropertyElements()
- 1 represents the element last added that hasn't been removed.
propertyIndex
- most be between 0 and the value returned by numPropertyElements()
- 1
public PropertyType getPropertyType(int propertyIndex)
addSerializedProperty(String, PropertyType)
that hasn't been removed, and a value of
numPropertyElements()
- 1 represents the element last added that hasn't been removed.
propertyIndex
- most be between 0 and the value returned by numPropertyElements()
- 1
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |