org.codehaus.stax2.ri.typed
Class ValueDecoderFactory.QNameDecoder

java.lang.Object
  extended by org.codehaus.stax2.typed.TypedValueDecoder
      extended by org.codehaus.stax2.ri.typed.ValueDecoderFactory.DecoderBase
          extended by org.codehaus.stax2.ri.typed.ValueDecoderFactory.QNameDecoder
Enclosing class:
ValueDecoderFactory

public static final class ValueDecoderFactory.QNameDecoder
extends ValueDecoderFactory.DecoderBase


Field Summary
protected  QName mValue
           
 
Fields inherited from class org.codehaus.stax2.ri.typed.ValueDecoderFactory.DecoderBase
mNextPtr
 
Constructor Summary
ValueDecoderFactory.QNameDecoder(NamespaceContext nsc)
           
 
Method Summary
 void decode(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.
 void decode(String lexical)
          Method used to invoke decoding functionality, for decoding the value encoded in given substring.
 String getType()
           
 QName getValue()
           
protected  QName resolveQName(String localName)
           
protected  QName resolveQName(String prefix, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mValue

protected QName mValue
Constructor Detail

ValueDecoderFactory.QNameDecoder

public ValueDecoderFactory.QNameDecoder(NamespaceContext nsc)
Method Detail

getType

public String getType()
Specified by:
getType in class ValueDecoderFactory.DecoderBase

getValue

public QName getValue()

decode

public void decode(String lexical)
            throws IllegalArgumentException
Description copied from class: TypedValueDecoder
Method 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:
decode in class TypedValueDecoder
Throws:
IllegalArgumentException

decode

public void decode(char[] lexical,
                   int start,
                   int end)
            throws IllegalArgumentException
Description copied from class: TypedValueDecoder
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.

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:
decode in class TypedValueDecoder
Throws:
IllegalArgumentException

resolveQName

protected QName resolveQName(String localName)
                      throws IllegalArgumentException
Throws:
IllegalArgumentException

resolveQName

protected QName resolveQName(String prefix,
                             String localName)
                      throws IllegalArgumentException
Throws:
IllegalArgumentException


Copyright © 2011 Codehaus. All Rights Reserved.