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 Stringstatic final Stringprotected NamespaceRegisterstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final booleancheckElementName(XMLStreamReader reader, String localName) protected final booleancheckElementQName(XMLStreamReader reader, String nsUri, String localName) collectAttributes(XMLStreamReader reader) voidvoidensureNamespaceDecl(XMLStreamWriter writer, QName qname) ensurePrefix(XMLStreamWriter writer, QName qname) protected final StringerrorLocationString(XMLStreamReader reader) getQNameFromString(String qname) protected StringgetStringValue(QName qname) readExtension(XMLStreamReader reader) protected voidreadPropertyAttributes(Map<String, String> attrMap, OgcProperty<?> prop) protected final voidreadPropertyAttributes(XMLStreamReader reader, OgcProperty<?> prop) protected voidreadXlinkAttributes(Map<String, String> attrMap, IXlinkReference<?> prop) voidsetNamespaceContext(NamespaceRegister nsContext) voidsetNamespacePrefixes(XMLStreamWriter writer) protected voidsetupHrefResolver(XMLStreamReader reader, OgcProperty<?> prop) protected final voidSkip an element and all its children and keep parsingprotected final voidskipElementAndAllChildren(XMLStreamReader reader, boolean skipEndTag) voidwriteExtension(XMLStreamWriter writer, Object obj) voidwriteNamespaces(XMLStreamWriter writer) protected voidwritePropertyAttributes(XMLStreamWriter writer, OgcProperty<?> prop) protected voidwriteXlinkAttributes(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
-