Class SMOAttribute
java.lang.Object
org.codehaus.staxmate.out.SMOutputtable
org.codehaus.staxmate.out.SMOAttribute
Simple container class for storing definition of a buffered
element attribute.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final SMNamespaceprotected final StringFields inherited from class SMOutputtable
_next -
Constructor Summary
ConstructorsConstructorDescriptionSMOAttribute(SMNamespace namespace, String localName, String value) Deprecated.Since 2.2 Use factory methods instead of direct construction. -
Method Summary
Modifier and TypeMethodDescriptionprotected void_forceOutput(SMOutputContext ctxt) Method similar toSMOutputtable._output(SMOutputContext, boolean), except that this method will always succeed in doing the output.protected boolean_output(SMOutputContext ctxt, boolean canClose) Method called to request that the entity output itself; either as much as it can without closing, or as much as it can if it is to get closed.static org.codehaus.staxmate.out.SMSimpleOutputattribute(SMNamespace namespace, String localName, byte[] value) static org.codehaus.staxmate.out.SMSimpleOutputattribute(SMNamespace namespace, String localName, int value) static org.codehaus.staxmate.out.SMSimpleOutputattribute(SMNamespace namespace, String localName, String value) Methods inherited from class SMOutputtable
_linkNext, getNext
-
Field Details
-
_namespace
-
_localName
-
_value
-
-
Constructor Details
-
SMOAttribute
Deprecated.Since 2.2 Use factory methods instead of direct construction.
-
-
Method Details
-
attribute
public static org.codehaus.staxmate.out.SMSimpleOutput attribute(SMNamespace namespace, String localName, String value) -
attribute
public static org.codehaus.staxmate.out.SMSimpleOutput attribute(SMNamespace namespace, String localName, byte[] value) -
attribute
public static org.codehaus.staxmate.out.SMSimpleOutput attribute(SMNamespace namespace, String localName, int value) -
_output
Description copied from class:SMOutputtableMethod called to request that the entity output itself; either as much as it can without closing, or as much as it can if it is to get closed. In both cases output can fail or be only a partial one: buffered nodes will not be output at all, and nodes with buffered children can only be partially output.- Parameters:
ctxt- Output context to use for outputting this node (and its contents)canClose- If true, indicates that the node can (and should) be fully closed if possible. This (passing true) is usually done when a new sibling is added after a node (element/fragment); if so, current one should be recursively closed. If false, should only try to output as much as can be done without forcing closures.- Returns:
- True if the whole node could be output, ie. neither it nor its children are buffered.
- Throws:
XMLStreamException
-
_forceOutput
Description copied from class:SMOutputtableMethod similar toSMOutputtable._output(SMOutputContext, boolean), except that this method will always succeed in doing the output. Specifically, it will force all buffered nodes to be unbuffered, and then output.- Specified by:
_forceOutputin classSMOutputtable- Throws:
XMLStreamException
-