|
Java API Reference for Oracle Infrastructure Web Services 11 Release 1 (11.1.1) E10654-02 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.webservices.model.Factory
public abstract class Factory
Abstract interface for model factories. A default implementation is provide by the newInstance method.
| Constructor Summary | |
|---|---|
Factory() |
|
| Method Summary | |
|---|---|
abstract Model |
createModel(QName name)Creates an empty model for a service with the unique name. |
abstract Serializer |
getSerializer(QName name)Returns the serializer (if any) registered for the provided extension type. |
abstract Model |
loadModel(Definition definition, QName service)Loads a model for the given service from the given WSDL definition. |
abstract Model |
loadModel(Element model)Loads a model from a DOM element created using the storeModel method. |
abstract Model |
loadModel(URL wsdlUrl, QName service)Loads a model of the indicated service from a WSDL specified by the wsdlUrl |
static Factory |
newInstance()This method can be used to create a default implementation of a model factory. |
abstract void |
registerSerializer(Serializer serializer)Adds a serializer to the model's serializer registry. |
abstract Element |
storeModel(Model model, Document document)Serializes the model to a DOM element. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Factory()
| Method Detail |
|---|
public static Factory newInstance()
throws ClassNotFoundException,
IllegalAccessException,
InstantiationException
ClassNotFoundException - If the default factory implementation cannot be loaded.IllegalAccessException - If a security check prevents the default factory implementation cannot be loaded.InstantiationException - If the default factory implementation cannot be instantiated.public abstract void registerSerializer(Serializer serializer)
serializer - The serializer to register.public abstract Serializer getSerializer(QName name)
name - The extension type name to query the serializer registry.public abstract Model createModel(QName name)
name - The unique qualified name of the service.
public abstract Model loadModel(Definition definition,
QName service)
definition - The WSDL definition from which to load the model.service - The unique service within the WSDL to model.
public abstract Model loadModel(URL wsdlUrl,
QName service)
throws WSDLException
wsdlUrl - The URL for a WSDL from which to load the service's model.service - The QName of the service to model within the WSDL.WSDLException - If the WSDL cannot be retrieved or parsed.
public abstract Model loadModel(Element model)
throws SerializationException
model - The root element of the serialized model.SerializationException - If the model cannot be deserialized from the element.
public abstract Element storeModel(Model model,
Document document)
throws SerializationException
model - The model to serialize.document - The document from which DOM elements will be created.SerializationException - If the model cannot be serialized.
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||