|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.thoughtworks.xstream.io.WriterWrapper
org.apache.shindig.protocol.conversion.xstream.StackWriterWrapper
public class StackWriterWrapper
A Writer that provides a Stack based tracking of the location of the underlying writer.
| Field Summary |
|---|
| Fields inherited from class com.thoughtworks.xstream.io.WriterWrapper |
|---|
wrapped |
| Constructor Summary | |
|---|---|
StackWriterWrapper(com.thoughtworks.xstream.io.HierarchicalStreamWriter wrapped,
WriterStack writerStack,
Map<String,NamespaceSet> namespaces)
Create a StackWriterWrapper that wraps a
HierarchicalStreamWriter and tracks where that writer is in the
hierarchy. |
|
| Method Summary | |
|---|---|
void |
addAttribute(String name,
String value)
Set attribute values on the current node, but filter out class attributes from the writer, this is not strictly a feature of this class, but is required (for shindig to meet the XSD requirements. |
void |
endNode()
End the current node, making the parent node the active node. |
void |
startNode(String name)
Begin a new element or node of the supplied name. |
void |
startNode(String name,
Class clazz)
Start a node with a specific class. |
| Methods inherited from class com.thoughtworks.xstream.io.WriterWrapper |
|---|
close, flush, setValue, underlyingWriter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StackWriterWrapper(com.thoughtworks.xstream.io.HierarchicalStreamWriter wrapped,
WriterStack writerStack,
Map<String,NamespaceSet> namespaces)
StackWriterWrapper that wraps a
HierarchicalStreamWriter and tracks where that writer is in the
hierarchy.
wrapped - the underlying writerwriterStack - the stack that will record where the writer is.namespaces - | Method Detail |
|---|
public void addAttribute(String name,
String value)
addAttribute in interface com.thoughtworks.xstream.io.HierarchicalStreamWriteraddAttribute in class com.thoughtworks.xstream.io.WriterWrappername - the name of attributevalue - the value of the attribute.WriterWrapper.addAttribute(java.lang.String,
java.lang.String)public void startNode(String name)
startNode in interface com.thoughtworks.xstream.io.HierarchicalStreamWriterstartNode in class com.thoughtworks.xstream.io.WriterWrappername - the name of the node.WriterWrapper.startNode(java.lang.String )
public void startNode(String name,
Class clazz)
startNode(String) so we might have double
recording of the position in the stack. This would be a bug.
startNode in interface com.thoughtworks.xstream.io.ExtendedHierarchicalStreamWriterstartNode in class com.thoughtworks.xstream.io.WriterWrapperWriterWrapper.startNode(java.lang.String ,
java.lang.Class)public void endNode()
endNode in interface com.thoughtworks.xstream.io.HierarchicalStreamWriterendNode in class com.thoughtworks.xstream.io.WriterWrapperWriterWrapper.endNode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||