Package org.codehaus.staxmate.out
Class SMOAttribute
- java.lang.Object
-
- org.codehaus.staxmate.out.SMOutputtable
-
- org.codehaus.staxmate.out.SMSimpleOutput
-
- org.codehaus.staxmate.out.SMOAttribute
-
public class SMOAttribute extends SMSimpleOutput
Simple container class for storing definition of a buffered element attribute.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SMOAttribute.Binary
static class
SMOAttribute.IntAttribute
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
_localName
protected SMNamespace
_namespace
protected java.lang.String
_value
-
Fields inherited from class org.codehaus.staxmate.out.SMOutputtable
_next
-
-
Constructor Summary
Constructors Constructor Description SMOAttribute(SMNamespace namespace, java.lang.String localName, java.lang.String value)
Deprecated.Since 2.2 Use factory methods instead of direct construction.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 SMSimpleOutput
attribute(SMNamespace namespace, java.lang.String localName, byte[] value)
static SMSimpleOutput
attribute(SMNamespace namespace, java.lang.String localName, int value)
static SMSimpleOutput
attribute(SMNamespace namespace, java.lang.String localName, java.lang.String value)
-
Methods inherited from class org.codehaus.staxmate.out.SMSimpleOutput
_forceOutput
-
Methods inherited from class org.codehaus.staxmate.out.SMOutputtable
_linkNext, getNext
-
-
-
-
Field Detail
-
_namespace
protected final SMNamespace _namespace
-
_localName
protected final java.lang.String _localName
-
_value
protected final java.lang.String _value
-
-
Constructor Detail
-
SMOAttribute
@Deprecated public SMOAttribute(SMNamespace namespace, java.lang.String localName, java.lang.String value)
Deprecated.Since 2.2 Use factory methods instead of direct construction.
-
-
Method Detail
-
attribute
public static SMSimpleOutput attribute(SMNamespace namespace, java.lang.String localName, java.lang.String value)
-
attribute
public static SMSimpleOutput attribute(SMNamespace namespace, java.lang.String localName, byte[] value)
-
attribute
public static SMSimpleOutput attribute(SMNamespace namespace, java.lang.String localName, int value)
-
_output
protected boolean _output(SMOutputContext ctxt, boolean canClose) throws javax.xml.stream.XMLStreamException
Description copied from class:SMOutputtable
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. 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.- Specified by:
_output
in classSMSimpleOutput
- 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:
javax.xml.stream.XMLStreamException
-
-