Package net.opengis
Class AbstractXMLStreamBindings
java.lang.Object
net.opengis.AbstractBindings
net.opengis.AbstractXMLStreamBindings
- Direct Known Subclasses:
XMLStreamBindings
,XMLStreamBindings
,XMLStreamBindingsV1
,XMLStreamBindingsV2
Base abstract class for all XML bindings using XML Stream API
- Since:
- Jul 28, 2014
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
protected NamespaceRegister
static final String
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final boolean
checkElementName
(XMLStreamReader reader, String localName) protected final boolean
checkElementQName
(XMLStreamReader reader, String nsUri, String localName) collectAttributes
(XMLStreamReader reader) void
void
ensureNamespaceDecl
(XMLStreamWriter writer, QName qname) ensurePrefix
(XMLStreamWriter writer, QName qname) protected final String
errorLocationString
(XMLStreamReader reader) getQNameFromString
(String qname) protected String
getStringValue
(QName qname) readExtension
(XMLStreamReader reader) protected void
readPropertyAttributes
(Map<String, String> attrMap, OgcProperty<?> prop) protected final void
readPropertyAttributes
(XMLStreamReader reader, OgcProperty<?> prop) protected void
readXlinkAttributes
(Map<String, String> attrMap, IXlinkReference<?> prop) void
setNamespaceContext
(NamespaceRegister nsContext) void
setNamespacePrefixes
(XMLStreamWriter writer) protected void
setupHrefResolver
(XMLStreamReader reader, OgcProperty<?> prop) protected final void
Skip an element and all its children and keep parsingprotected final void
skipElementAndAllChildren
(XMLStreamReader reader, boolean skipEndTag) void
writeExtension
(XMLStreamWriter writer, Object obj) void
writeNamespaces
(XMLStreamWriter writer) protected void
writePropertyAttributes
(XMLStreamWriter writer, OgcProperty<?> prop) protected void
writeXlinkAttributes
(XMLStreamWriter writer, IXlinkReference<?> prop) Methods inherited from class net.opengis.AbstractBindings
canWriteExtension, getBooleanArrayFromString, getBooleanFromString, getByteFromString, getCoordinateStringValue, getDateTimeArrayFromString, getDateTimeFromString, getDateTimeOrDoubleFromString, 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, getStringValue, getStringValueAsDoubles, trimStringValue
-
Field Details
-
ERROR_INVALID_ELT
- See Also:
-
ERROR_UNSUPPORTED_TYPE
- See Also:
-
XLINK_NS_URI
- See Also:
-
XSI_NS_URI
- See Also:
-
nsContext
-
idrefMap
-
-
Constructor Details
-
AbstractXMLStreamBindings
public AbstractXMLStreamBindings()
-
-
Method Details
-
declareNamespacesOnRootElement
public void declareNamespacesOnRootElement() -
getQNameFromString
-
getStringValue
-
ensureNamespaceDecl
- Throws:
XMLStreamException
-
ensurePrefix
- Throws:
XMLStreamException
-
setNamespacePrefixes
- Throws:
XMLStreamException
-
writeNamespaces
- Throws:
XMLStreamException
-
collectAttributes
protected final Map<String,String> collectAttributes(XMLStreamReader reader) throws XMLStreamException - Throws:
XMLStreamException
-
checkElementName
protected final boolean checkElementName(XMLStreamReader reader, String localName) throws XMLStreamException - Throws:
XMLStreamException
-
checkElementQName
protected final boolean checkElementQName(XMLStreamReader reader, String nsUri, String localName) throws XMLStreamException - Throws:
XMLStreamException
-
errorLocationString
- Throws:
XMLStreamException
-
readPropertyAttributes
protected final void readPropertyAttributes(XMLStreamReader reader, OgcProperty<?> prop) throws XMLStreamException - Throws:
XMLStreamException
-
readPropertyAttributes
protected void readPropertyAttributes(Map<String, String> attrMap, OgcProperty<?> prop) throws XMLStreamException- Throws:
XMLStreamException
-
readXlinkAttributes
protected void readXlinkAttributes(Map<String, String> attrMap, IXlinkReference<?> prop) throws XMLStreamException- Throws:
XMLStreamException
-
setupHrefResolver
-
writePropertyAttributes
protected void writePropertyAttributes(XMLStreamWriter writer, OgcProperty<?> prop) throws XMLStreamException - Throws:
XMLStreamException
-
writeXlinkAttributes
protected void writeXlinkAttributes(XMLStreamWriter writer, IXlinkReference<?> prop) throws XMLStreamException - Throws:
XMLStreamException
-
skipElementAndAllChildren
Skip an element and all its children and keep parsing- Parameters:
reader
-- Throws:
XMLStreamException
-
skipElementAndAllChildren
protected final void skipElementAndAllChildren(XMLStreamReader reader, boolean skipEndTag) throws XMLStreamException - Throws:
XMLStreamException
-
readExtension
- Throws:
XMLStreamException
-
writeExtension
- Throws:
XMLStreamException
-
getNamespaceContext
-
setNamespaceContext
-