public class Base64BinaryChunk extends Object implements ExtensionElement
This class is immutable.
Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE_LAST |
static String |
ATTRIBUTE_NR |
static String |
ATTRIBUTE_STREAM_ID |
static String |
ELEMENT_CHUNK |
Constructor and Description |
---|
Base64BinaryChunk(String text,
String streamId,
int nr)
Creates the extension.
|
Base64BinaryChunk(String text,
String streamId,
int nr,
boolean last)
Creates the extension.
|
Modifier and Type | Method and Description |
---|---|
String |
getElementName()
Returns the root element name.
|
String |
getNamespace()
Returns the root element XML namespace.
|
int |
getNr()
Returns nr attribute.
|
String |
getStreamId()
Returns streamId attribute.
|
String |
getText()
Returns text attribute.
|
boolean |
isLast()
Returns last attribute.
|
XmlStringBuilder |
toXML(String enclosingNamespace)
Returns the XML representation of this Element.
|
public static final String ELEMENT_CHUNK
public static final String ATTRIBUTE_STREAM_ID
public static final String ATTRIBUTE_LAST
public static final String ATTRIBUTE_NR
public Base64BinaryChunk(String text, String streamId, int nr, boolean last)
text
- value of text attributestreamId
- value of streamId attributenr
- value of nr attributelast
- value of last attributepublic Base64BinaryChunk(String text, String streamId, int nr)
text
- value of text attributestreamId
- value of streamId attributenr
- value of nr attributepublic String getStreamId()
public boolean isLast()
public int getNr()
public String getElementName()
NamedElement
getElementName
in interface NamedElement
public String getNamespace()
ExtensionElement
getNamespace
in interface ExtensionElement
public XmlStringBuilder toXML(String enclosingNamespace)
Element