当前页面:
在线文档首页 >
JBoss 4.0.1 sp1 common API Documentation 英文版文档
SchemalessObjectModelFactory (JBoss/Common API) - JBoss 4.0.1 sp1 common API Documentation 英文版文档
org.jboss.xml.binding
Class SchemalessObjectModelFactory
java.lang.Object
org.jboss.xml.binding.SchemalessObjectModelFactory
- All Implemented Interfaces:
- GenericObjectModelFactory, ObjectModelFactory
- public class SchemalessObjectModelFactory
- extends Object
- implements GenericObjectModelFactory
Sandbox. Very testcase specific impl.
- Version:
- $Revision: 1.1.2.2 $
- Author:
- Alexey Loubyansky
Method Summary |
void |
addChild(Object parent,
Object child,
ContentNavigator navigator,
String namespaceURI,
String localName)
|
Object |
completedRoot(Object root,
ContentNavigator navigator,
String namespaceURI,
String localName)
|
Object |
newChild(Object parent,
ContentNavigator navigator,
String namespaceURI,
String localName,
Attributes attrs)
|
Object |
newRoot(Object root,
ContentNavigator navigator,
String namespaceURI,
String localName,
Attributes attrs)
This method is called by the object model factory and returns the root of the object graph. |
void |
setValue(Object o,
ContentNavigator navigator,
String namespaceURI,
String localName,
String value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SchemalessObjectModelFactory
public SchemalessObjectModelFactory()
newChild
public Object newChild(Object parent,
ContentNavigator navigator,
String namespaceURI,
String localName,
Attributes attrs)
- Specified by:
newChild
in interface GenericObjectModelFactory
addChild
public void addChild(Object parent,
Object child,
ContentNavigator navigator,
String namespaceURI,
String localName)
- Specified by:
addChild
in interface GenericObjectModelFactory
setValue
public void setValue(Object o,
ContentNavigator navigator,
String namespaceURI,
String localName,
String value)
- Specified by:
setValue
in interface GenericObjectModelFactory
newRoot
public Object newRoot(Object root,
ContentNavigator navigator,
String namespaceURI,
String localName,
Attributes attrs)
- Description copied from interface:
ObjectModelFactory
- This method is called by the object model factory and returns the root of the object graph.
If the
root
argument is null the factory is supposed to create and return a new one.
If the root
argument is not null (i.e. the user provided the root object through the
org.jboss.xml.binding.Unmarshaller) then the factory should either just return it as is
or extract the real root from the root
argument based on the namespace URI and local name.
- Specified by:
newRoot
in interface ObjectModelFactory
- Parameters:
root
- an object that is the root or which contains the root objectnavigator
- content navigatornamespaceURI
- namespace URI of the rootlocalName
- local name of the rootattrs
- attributes of the root object
- Returns:
- the root of the object graph
completedRoot
public Object completedRoot(Object root,
ContentNavigator navigator,
String namespaceURI,
String localName)
- Specified by:
completedRoot
in interface GenericObjectModelFactory
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.