|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.xb.binding.ObjectModelBuilder
public class ObjectModelBuilder
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!
| Constructor Summary | |
|---|---|
ObjectModelBuilder()
|
|
| Method Summary | |
|---|---|
void |
characters(char[] ch,
int start,
int length)
|
void |
endDTD()
|
void |
endElement(String namespaceURI,
String localName,
String qName)
|
void |
endPrefixMapping(String prefix)
|
String |
getChildContent(String namespaceURI,
String qName)
Returns child's content. |
NamespaceContext |
getNamespaceContext()
|
Iterator |
getNamespaceURIs()
|
Object |
getRoot()
|
org.apache.xerces.xs.XSTypeDefinition |
getType()
|
void |
init(ObjectModelFactory defaultFactory,
Object root)
|
boolean |
isTrimTextContent()
|
void |
mapFactoryToNamespace(ObjectModelFactory factory,
String namespaceUri)
|
void |
popFactory()
|
void |
processingInstruction(String target,
String data)
|
void |
pushFactory(String namespaceURI,
String localName,
GenericObjectModelFactory factory)
|
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. |
void |
startDTD(String name,
String publicId,
String systemId)
|
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 |
|---|
public ObjectModelBuilder()
| Method Detail |
|---|
public void mapFactoryToNamespace(ObjectModelFactory factory,
String namespaceUri)
public void init(ObjectModelFactory defaultFactory,
Object root)
public void pushFactory(String namespaceURI,
String localName,
GenericObjectModelFactory factory)
public void popFactory()
public Iterator getNamespaceURIs()
getNamespaceURIs in interface UnmarshallingContextpublic NamespaceContext getNamespaceContext()
getNamespaceContext in interface UnmarshallingContextpublic boolean isTrimTextContent()
isTrimTextContent in interface UnmarshallingContextpublic void setTrimTextContent(boolean trimTextContent)
UnmarshallingContext
setTrimTextContent in interface UnmarshallingContextpublic QName resolveQName(String value)
resolveQName in interface UnmarshallingContextvalue - A value that is of the form [prefix:]localpart
public String getChildContent(String namespaceURI,
String qName)
UnmarshallingContext
getChildContent in interface UnmarshallingContextpublic org.apache.xerces.xs.XSTypeDefinition getType()
getType in interface UnmarshallingContext
public void startPrefixMapping(String prefix,
String uri)
startPrefixMapping in interface JBossXBParser.ContentHandlerpublic void endPrefixMapping(String prefix)
endPrefixMapping in interface JBossXBParser.ContentHandler
public void processingInstruction(String target,
String data)
processingInstruction in interface JBossXBParser.ContentHandlerpublic Object getRoot()
getRoot in interface JBossXBParser.ContentHandler
public void startDTD(String name,
String publicId,
String systemId)
startDTD in interface JBossXBParser.DtdAwareContentHandlerpublic void endDTD()
endDTD in interface JBossXBParser.DtdAwareContentHandler
public void startElement(String namespaceURI,
String localName,
String qName,
Attributes atts,
org.apache.xerces.xs.XSTypeDefinition type)
startElement in interface JBossXBParser.ContentHandler
public void endElement(String namespaceURI,
String localName,
String qName)
endElement in interface JBossXBParser.ContentHandler
public void characters(char[] ch,
int start,
int length)
characters in interface JBossXBParser.ContentHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||