public abstract class AbstractXMLStreamBindings extends AbstractBindings
Base abstract class for all XML bindings using XML Stream API
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ERROR_INVALID_ELT |
static java.lang.String |
ERROR_UNSUPPORTED_TYPE |
protected java.util.Map<java.lang.String,java.lang.Object> |
idrefMap |
protected NamespaceRegister |
nsContext |
static java.lang.String |
XLINK_NS_URI |
static java.lang.String |
XSI_NS_URI |
Constructor and Description |
---|
AbstractXMLStreamBindings() |
Modifier and Type | Method and Description |
---|---|
boolean |
canWriteExtension(java.lang.Object obj) |
protected boolean |
checkElementName(javax.xml.stream.XMLStreamReader reader,
java.lang.String localName) |
protected boolean |
checkElementQName(javax.xml.stream.XMLStreamReader reader,
java.lang.String nsUri,
java.lang.String localName) |
protected java.util.Map<java.lang.String,java.lang.String> |
collectAttributes(javax.xml.stream.XMLStreamReader reader) |
void |
declareNamespacesOnRootElement() |
void |
ensureNamespaceDecl(javax.xml.stream.XMLStreamWriter writer,
javax.xml.namespace.QName qname) |
java.lang.String |
ensurePrefix(javax.xml.stream.XMLStreamWriter writer,
javax.xml.namespace.QName qname) |
protected java.lang.String |
errorLocationString(javax.xml.stream.XMLStreamReader reader) |
NamespaceRegister |
getNamespaceContext() |
javax.xml.namespace.QName |
getQNameFromString(java.lang.String qname) |
protected java.lang.String |
getStringValue(javax.xml.namespace.QName qname) |
java.io.Serializable |
readExtension(javax.xml.stream.XMLStreamReader reader) |
protected void |
readPropertyAttributes(java.util.Map<java.lang.String,java.lang.String> attrMap,
OgcProperty<?> prop) |
protected void |
readPropertyAttributes(javax.xml.stream.XMLStreamReader reader,
OgcProperty<?> prop) |
void |
setNamespaceContext(NamespaceRegister nsContext) |
void |
setNamespacePrefixes(javax.xml.stream.XMLStreamWriter writer) |
protected void |
skipElementAndAllChildren(javax.xml.stream.XMLStreamReader reader)
Skip an element and all its children and keep parsing
|
protected void |
skipElementAndAllChildren(javax.xml.stream.XMLStreamReader reader,
boolean skipEndTag) |
void |
writeExtension(javax.xml.stream.XMLStreamWriter writer,
java.lang.Object obj) |
void |
writeNamespaces(javax.xml.stream.XMLStreamWriter writer) |
protected void |
writePropertyAttributes(javax.xml.stream.XMLStreamWriter writer,
OgcProperty<?> prop) |
getBooleanArrayFromString, getBooleanFromString, getByteFromString, getDateTimeArrayFromString, getDateTimeFromString, getDoubleArrayFromString, getDoubleFromString, getDurationFromString, getFloatFromString, getIntArrayFromString, getIntFromString, getIsoDurationString, getLongFromString, getShortFromString, getStringArrayFromString, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, getStringValue, getStringValueAsDoubles, trimStringValue
public static final java.lang.String ERROR_INVALID_ELT
public static final java.lang.String ERROR_UNSUPPORTED_TYPE
public static final java.lang.String XLINK_NS_URI
public static final java.lang.String XSI_NS_URI
protected NamespaceRegister nsContext
protected java.util.Map<java.lang.String,java.lang.Object> idrefMap
public void declareNamespacesOnRootElement()
public javax.xml.namespace.QName getQNameFromString(java.lang.String qname)
protected java.lang.String getStringValue(javax.xml.namespace.QName qname)
public void ensureNamespaceDecl(javax.xml.stream.XMLStreamWriter writer, javax.xml.namespace.QName qname) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public java.lang.String ensurePrefix(javax.xml.stream.XMLStreamWriter writer, javax.xml.namespace.QName qname) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public void setNamespacePrefixes(javax.xml.stream.XMLStreamWriter writer) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public void writeNamespaces(javax.xml.stream.XMLStreamWriter writer) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected final java.util.Map<java.lang.String,java.lang.String> collectAttributes(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected final boolean checkElementName(javax.xml.stream.XMLStreamReader reader, java.lang.String localName) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected final boolean checkElementQName(javax.xml.stream.XMLStreamReader reader, java.lang.String nsUri, java.lang.String localName) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected final java.lang.String errorLocationString(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected final void readPropertyAttributes(javax.xml.stream.XMLStreamReader reader, OgcProperty<?> prop) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected void readPropertyAttributes(java.util.Map<java.lang.String,java.lang.String> attrMap, OgcProperty<?> prop) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected void writePropertyAttributes(javax.xml.stream.XMLStreamWriter writer, OgcProperty<?> prop) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected final void skipElementAndAllChildren(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException
reader
- javax.xml.stream.XMLStreamException
protected final void skipElementAndAllChildren(javax.xml.stream.XMLStreamReader reader, boolean skipEndTag) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public java.io.Serializable readExtension(javax.xml.stream.XMLStreamReader reader) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public void writeExtension(javax.xml.stream.XMLStreamWriter writer, java.lang.Object obj) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public boolean canWriteExtension(java.lang.Object obj)
public NamespaceRegister getNamespaceContext()
public void setNamespaceContext(NamespaceRegister nsContext)