org.jboss.xb.binding
Interface UnmarshallingContext

All Known Implementing Classes:
ObjectModelBuilder

public interface UnmarshallingContext

An interface for content navigation. At the moment it has only one method to get child's content. But it could also implement XPath navigation.

Version:
$Revision: 2913 $
Author:
Alexey Loubyansky

Method Summary
 String getChildContent(String namespaceURI, String qName)
          Returns child's content.
 NamespaceContext getNamespaceContext()
           
 Iterator<String> getNamespaceURIs()
           
 org.apache.xerces.xs.XSTypeDefinition getType()
           
 boolean isTrimTextContent()
           
 QName resolveQName(String value)
          Construct a QName from a value
 void setTrimTextContent(boolean trimTextContent)
          Should the text content be automatically trimmed before setValue(...) is called.
 

Method Detail

resolveQName

QName resolveQName(String value)
Construct a QName from a value

Parameters:
value - A value that is of the form [prefix:]localpart

getNamespaceURIs

Iterator<String> getNamespaceURIs()
Returns:
all the known namespace URIs

getNamespaceContext

NamespaceContext getNamespaceContext()
Returns:
NamespaceContext instance

isTrimTextContent

boolean isTrimTextContent()
Returns:
true if the text content passed to the setValue(...) method is automatically trimmed (the default).

setTrimTextContent

void setTrimTextContent(boolean trimTextContent)
Should the text content be automatically trimmed before setValue(...) is called.

Parameters:
trimTextContent -

getChildContent

String getChildContent(String namespaceURI,
                       String qName)
Returns child's content. todo consider deprecating this method

Parameters:
namespaceURI -
qName -
Returns:

getType

org.apache.xerces.xs.XSTypeDefinition getType()
Returns:
current element's type definition or null if this info is not available


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.