public class XSQNameBinding extends Object implements SimpleBinding
<xs:simpleType name="QName" id="QName">
<xs:annotation>
<xs:appinfo>
<hfp:hasFacet name="length"/>
<hfp:hasFacet name="minLength"/>
<hfp:hasFacet name="maxLength"/>
<hfp:hasFacet name="pattern"/>
<hfp:hasFacet name="enumeration"/>
<hfp:hasFacet name="whiteSpace"/>
<hfp:hasProperty name="ordered" value="false"/>
<hfp:hasProperty name="bounded" value="false"/>
<hfp:hasProperty name="cardinality" value="countably infinite"/>
<hfp:hasProperty name="numeric" value="false"/>
</xs:appinfo>
<xs:documentation source="http://www.w3.org/TR/xmlschema-2/#QName"/>
</xs:annotation>
<xs:restriction base="xs:anySimpleType">
<xs:whiteSpace value="collapse" fixed="true" id="QName.whiteSpace"/>
</xs:restriction>
</xs:simpleType>
Modifier and Type | Field and Description |
---|---|
protected NamespaceContext |
namespaceContext |
Constructor and Description |
---|
XSQNameBinding(NamespaceContext namespaceContext) |
Modifier and Type | Method and Description |
---|---|
String |
encode(Object object,
String value)
Performs the encoding of the object as a String.
|
int |
getExecutionMode() |
QName |
getTarget() |
Class |
getType()
This binding returns objects of type
QName |
Object |
parse(InstanceComponent instance,
Object value)
This binding returns objects of type
QName |
protected NamespaceContext namespaceContext
public XSQNameBinding(NamespaceContext namespaceContext)
public QName getTarget()
public int getExecutionMode()
getExecutionMode
in interface Binding
Binding.AFTER
,
Binding.BEFORE
,
Binding.OVERRIDE
public Object parse(InstanceComponent instance, Object value) throws Exception
QName
.
parse
in interface SimpleBinding
instance
- The component being parsed.value
- The result of the parse from another strategy in the type hierarchy. Could be
null if this is the first strategy being executed.Exception
public String encode(Object object, String value) throws Exception
SimpleBinding
encode
in interface SimpleBinding
object
- The object being encoded, never null.value
- The string returned from another binding in the type hierachy, which could be
null.Exception
Copyright © 1996–2019 Geotools. All rights reserved.