站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 common API Documentation 英文版文档

ObjectModelBuilder (JBoss/Common API) - JBoss 4.0.1 sp1 common API Documentation 英文版文档


org.jboss.xml.binding
Class ObjectModelBuilder

java.lang.Object
  extended byorg.jboss.xml.binding.ObjectModelBuilder
All Implemented Interfaces:
ContentNavigator, JBossXBParser.ContentHandler

public class ObjectModelBuilder
extends Object
implements ContentNavigator, JBossXBParser.ContentHandler

An instance of this class translates SAX events into org.jboss.xml.binding.GenericObjectModelFactory calls such as newChild, addChild and setValue. WARN: this implementation is not thread-safe!

Version:
$Revision: 1.16.2.1 $
Author:
Alexey Loubyansky

Constructor Summary
ObjectModelBuilder()
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endElement(String namespaceURI, String localName, String qName)
           
 void endPrefixMapping(String prefix)
           
 String getChildContent(String namespaceURI, String qName)
           
 Map getPrefixToNamespaceMap()
           
 Object getRoot()
           
 org.apache.xerces.xs.XSTypeDefinition getType()
           
 void init(GenericObjectModelFactory defaultFactory, Object root)
           
 void mapFactoryToNamespace(GenericObjectModelFactory factory, String namespaceUri)
           
 String resolveNamespacePrefix(String prefix)
           
 javax.xml.namespace.QName resolveQName(String value)
          Construct a QName from a value
 void startElement(String namespaceURI, String localName, String qName, Attributes atts, org.apache.xerces.xs.XSTypeDefinition type)
           
 void startPrefixMapping(String prefix, String uri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectModelBuilder

public ObjectModelBuilder()
Method Detail

mapFactoryToNamespace

public void mapFactoryToNamespace(GenericObjectModelFactory factory,
                                  String namespaceUri)

init

public void init(GenericObjectModelFactory defaultFactory,
                 Object root)

getPrefixToNamespaceMap

public Map getPrefixToNamespaceMap()
Specified by:
getPrefixToNamespaceMap in interface ContentNavigator

resolveNamespacePrefix

public String resolveNamespacePrefix(String prefix)
Specified by:
resolveNamespacePrefix in interface ContentNavigator
Parameters:
prefix - the prefix to resolve
Returns:
the namespace URI the prefix was mapped to

resolveQName

public javax.xml.namespace.QName resolveQName(String value)
Construct a QName from a value

Specified by:
resolveQName in interface ContentNavigator
Parameters:
value - A value that is of the form [prefix:]localpart

getChildContent

public String getChildContent(String namespaceURI,
                              String qName)
Specified by:
getChildContent in interface ContentNavigator

getType

public org.apache.xerces.xs.XSTypeDefinition getType()
Specified by:
getType in interface ContentNavigator

startPrefixMapping

public void startPrefixMapping(String prefix,
                               String uri)
Specified by:
startPrefixMapping in interface JBossXBParser.ContentHandler

endPrefixMapping

public void endPrefixMapping(String prefix)
Specified by:
endPrefixMapping in interface JBossXBParser.ContentHandler

getRoot

public Object getRoot()
Specified by:
getRoot in interface JBossXBParser.ContentHandler

startElement

public void startElement(String namespaceURI,
                         String localName,
                         String qName,
                         Attributes atts,
                         org.apache.xerces.xs.XSTypeDefinition type)
Specified by:
startElement in interface JBossXBParser.ContentHandler

endElement

public void endElement(String namespaceURI,
                       String localName,
                       String qName)
Specified by:
endElement in interface JBossXBParser.ContentHandler

characters

public void characters(char[] ch,
                       int start,
                       int length)
Specified by:
characters in interface JBossXBParser.ContentHandler


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.