Package org.codehaus.stax2.ri.typed
Class ValueDecoderFactory.QNameDecoder
- java.lang.Object
-
- org.codehaus.stax2.typed.TypedValueDecoder
-
- org.codehaus.stax2.ri.typed.ValueDecoderFactory.DecoderBase
-
- org.codehaus.stax2.ri.typed.ValueDecoderFactory.QNameDecoder
-
- Enclosing class:
- ValueDecoderFactory
public static final class ValueDecoderFactory.QNameDecoder extends ValueDecoderFactory.DecoderBase
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.xml.namespace.QNamemValue-
Fields inherited from class org.codehaus.stax2.ri.typed.ValueDecoderFactory.DecoderBase
mNextPtr
-
-
Constructor Summary
Constructors Constructor Description QNameDecoder(javax.xml.namespace.NamespaceContext nsc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecode(char[] lexical, int start, int end)Method used to invoke decoding functionality, for decoding the value encoded in given portion of character array It is to try decoding value, and either store decoded value for later access (using method(s) caller knows about), or throw an exception to indicate problem encountered.voiddecode(java.lang.String lexical)Method used to invoke decoding functionality, for decoding the value encoded in given substring.java.lang.StringgetType()javax.xml.namespace.QNamegetValue()protected javax.xml.namespace.QNameresolveQName(java.lang.String localName)protected javax.xml.namespace.QNameresolveQName(java.lang.String prefix, java.lang.String localName)-
Methods inherited from class org.codehaus.stax2.ri.typed.ValueDecoderFactory.DecoderBase
_clean, constructInvalidValue, constructInvalidValue, handleEmptyValue, lexicalDesc, lexicalDesc, parseInt, parseInt, parseInt, parseInt, parseLong, parseLong, skipSignAndZeroes, skipSignAndZeroes, verifyDigits, verifyDigits
-
-
-
-
Method Detail
-
getType
public java.lang.String getType()
- Specified by:
getTypein classValueDecoderFactory.DecoderBase
-
getValue
public javax.xml.namespace.QName getValue()
-
decode
public void decode(java.lang.String lexical) throws java.lang.IllegalArgumentExceptionDescription copied from class:TypedValueDecoderMethod used to invoke decoding functionality, for decoding the value encoded in given substring. It is to try decoding value, and either store decoded value for later access (using method(s) caller knows about), or throw an exception to indicate problem encountered.Note: method will get called with "trimmed" input, i.e. input will never have any leading or trailing white space. It will also never be called with empty content (
TypedValueDecoder.handleEmptyValue()is called instead for such cases)- Specified by:
decodein classTypedValueDecoder- Throws:
java.lang.IllegalArgumentException
-
decode
public void decode(char[] lexical, int start, int end) throws java.lang.IllegalArgumentExceptionDescription copied from class:TypedValueDecoderMethod used to invoke decoding functionality, for decoding the value encoded in given portion of character array It is to try decoding value, and either store decoded value for later access (using method(s) caller knows about), or throw an exception to indicate problem encountered.Note: method will get called with "trimmed" input, i.e. input will never have any leading or trailing white space. It will also never be called with empty content (
TypedValueDecoder.handleEmptyValue()is called instead for such cases)- Specified by:
decodein classTypedValueDecoder- Throws:
java.lang.IllegalArgumentException
-
resolveQName
protected javax.xml.namespace.QName resolveQName(java.lang.String localName) throws java.lang.IllegalArgumentException- Throws:
java.lang.IllegalArgumentException
-
resolveQName
protected javax.xml.namespace.QName resolveQName(java.lang.String prefix, java.lang.String localName) throws java.lang.IllegalArgumentException- Throws:
java.lang.IllegalArgumentException
-
-