|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Grounding
A grounding object containing all SAWSDL annotations of a single WSDL document. Each model annotation is represented by a single ModelRef object which can not be shared with other groundings. The Grounding API offers a set of factory methods for creating the various types of semantic model references.
| Method Summary | |
|---|---|
void |
addGroundingChangeListener(GroundingChangeEventListener listener)
Registers a grounding change listener to be notified when new model references and schema mappings are created or removed from this grounding object. |
AttributeModelRef |
createAttributeModelRef(QName attribute,
org.wsmo.common.IRI target)
Creates and includes in this grounding object a single model reference from an XML Schema attribute to a concept in a semantic model. |
ComplexTypeModelRef |
createComplexTypeModelRef(QName type,
org.wsmo.common.IRI target)
Creates and includes in this grounding object a single model reference from an XML Schema complexType to a concept in a semantic model. |
ElementModelRef |
createElementModelRef(QName element,
org.wsmo.common.IRI target)
Creates and includes in this grounding object a single model reference from an XML Schema element to a concept in a semantic model. |
FaultModelRef |
createFaultModelRef(QName fault,
org.wsmo.common.IRI target)
Creates and includes in this grounding object a single model reference from a WSDL operation fault to a concept in a semantic model. |
InterfaceCategory |
createInterfaceCategory(QName iface,
org.wsmo.common.IRI target)
Creates and includes in this grounding object a single model reference from a WSDL interface to a concept in a semantic model. |
LiftingSchemaMapping |
createLiftingSchemaMapping(QName source,
URI schemaRef)
Creates and includes in this grounding object a mapping to a transformation schema responsible for the lifting of the source entity to the corresponding semantic model entity. |
LoweringSchemaMapping |
createLoweringSchemaMapping(QName source,
URI schemaRef)
Creates and includes in this grounding object a mapping to a transformation schema responsible for the lowering to the source entity from the corresponding semantic model entity. |
OperationModelRef |
createOperationModelRef(QName operation,
org.wsmo.common.IRI target)
Creates and includes in this grounding object a single model reference from a WSDL operation to a concept in a semantic model. |
SimpleTypeModelRef |
createSimpleTypeModelRef(QName type,
org.wsmo.common.IRI target)
Creates and includes in this grounding object a single model reference from an XML Schema simpleType to a concept in a semantic model. |
List<ModelRef> |
listDeclaredModelRefs()
Lists all (regardless of specific type) model references in this grounding object. |
List<ModelRef> |
listDeclaredModelRefs(QName source)
Lists all model references for the specified WSDL or XML Schema entity in this grounding object. |
List<SchemaMapping> |
listDeclaredSchemaMappings()
Lists all lifting and lowering schema mappings of this grounding object. |
List<SchemaMapping> |
listDeclaredSchemaMappings(QName source)
Lists all lifting and lowering schema mappings for the source entity belonging to this grounding object. |
List<ModelRef> |
listModelRefs()
Lists all (regardless of specific type) model references in this grounding object, including the propagated ones. |
List<ModelRef> |
listModelRefs(QName source)
Lists all model references for the specified WSDL or XML Schema entity in this grounding object, including the propagated ones. |
List<SchemaMapping> |
listSchemaMappings()
Lists all lifting and lowering schema mappings of this grounding object, including the propagated ones. |
List<SchemaMapping> |
listSchemaMappings(QName source)
Lists all lifting and lowering schema mappings for the source entity belonging to this grounding object, including the propagated ones. |
void |
removeGroundingChangeListener(GroundingChangeEventListener listener)
Unregisters a grounding change listener. |
void |
removeModelRef(ModelRef reference)
Removes a single model reference from this grounding object. |
void |
removeSchemaMapping(SchemaMapping mapping)
Removes a single lifting or lowering schema mapping from this grounding object. |
| Method Detail |
|---|
AttributeModelRef createAttributeModelRef(QName attribute,
org.wsmo.common.IRI target)
throws org.wsmo.common.exception.InvalidModelException
attribute - the name of the attribute to be annotatedtarget - the semantic model id reference
org.wsmo.common.exception.InvalidModelException - if the supplied attribute name is not defined in the
current WSDL document
ComplexTypeModelRef createComplexTypeModelRef(QName type,
org.wsmo.common.IRI target)
throws org.wsmo.common.exception.InvalidModelException
type - the name of the complexType to be annotatedtarget - the semantic model id reference
org.wsmo.common.exception.InvalidModelException - if the supplied complexType name is not defined in the
current WSDL document
SimpleTypeModelRef createSimpleTypeModelRef(QName type,
org.wsmo.common.IRI target)
throws org.wsmo.common.exception.InvalidModelException
type - the name of the simpleType to be annotatedtarget - the semantic model id reference
org.wsmo.common.exception.InvalidModelException - if the supplied simpleType name is not defined in the
current WSDL document
ElementModelRef createElementModelRef(QName element,
org.wsmo.common.IRI target)
throws org.wsmo.common.exception.InvalidModelException
element - the name of the element to be annotatedtarget - the semantic model id reference
org.wsmo.common.exception.InvalidModelException - if the supplied element name is not defined in the
current WSDL document
InterfaceCategory createInterfaceCategory(QName iface,
org.wsmo.common.IRI target)
throws org.wsmo.common.exception.InvalidModelException
iface - the name of the interface to be annotatedtarget - the semantic model id reference
org.wsmo.common.exception.InvalidModelException - if the supplied interface name is not defined in the
current WSDL document
OperationModelRef createOperationModelRef(QName operation,
org.wsmo.common.IRI target)
throws org.wsmo.common.exception.InvalidModelException
operation - the name of the operation to be annotatedtarget - the semantic model id reference
org.wsmo.common.exception.InvalidModelException - if the supplied operation name is not defined in the
current WSDL document
FaultModelRef createFaultModelRef(QName fault,
org.wsmo.common.IRI target)
throws org.wsmo.common.exception.InvalidModelException
fault - the name of the operation fault to be annotatedtarget - the semantic model id reference
org.wsmo.common.exception.InvalidModelException - if the supplied operation fault name is not defined in the
current WSDL document
void removeModelRef(ModelRef reference)
throws org.wsmo.common.exception.InvalidModelException
reference - the model reference to be removed
org.wsmo.common.exception.InvalidModelException - if the supplied reference does not belong to this grounding
objectList<ModelRef> listDeclaredModelRefs()
List<ModelRef> listDeclaredModelRefs(QName source)
throws org.wsmo.common.exception.InvalidModelException
source - the name of the WSDL or XML Schema entity
org.wsmo.common.exception.InvalidModelException - if the supplied entity name is not defined in the
current WSDL document
List<ModelRef> listModelRefs()
throws org.wsmo.common.exception.InvalidModelException
org.wsmo.common.exception.InvalidModelException - if the model is somehow inconsistent
List<ModelRef> listModelRefs(QName source)
throws org.wsmo.common.exception.InvalidModelException
source - the name of the WSDL or XML Schema entity
org.wsmo.common.exception.InvalidModelException - if the supplied entity name is not defined in the
current WSDL document
LiftingSchemaMapping createLiftingSchemaMapping(QName source,
URI schemaRef)
throws org.wsmo.common.exception.InvalidModelException
source - the name of the XML Schema entityschemaRef - the identifier of the lifting schema
org.wsmo.common.exception.InvalidModelException - if the supplied entity name is not defined in the
current WSDL document
LoweringSchemaMapping createLoweringSchemaMapping(QName source,
URI schemaRef)
throws org.wsmo.common.exception.InvalidModelException
source - the name of the XML Schema entityschemaRef - the identifier of the lowering schema
org.wsmo.common.exception.InvalidModelException - if the supplied entity name is not defined in the
current WSDL document
void removeSchemaMapping(SchemaMapping mapping)
throws org.wsmo.common.exception.InvalidModelException
mapping - the mapping object to be removed
org.wsmo.common.exception.InvalidModelException - if the mapping object does not belong to this grounding
objectList<SchemaMapping> listDeclaredSchemaMappings()
List<SchemaMapping> listDeclaredSchemaMappings(QName source)
throws org.wsmo.common.exception.InvalidModelException
org.wsmo.common.exception.InvalidModelException
List<SchemaMapping> listSchemaMappings()
throws org.wsmo.common.exception.InvalidModelException
org.wsmo.common.exception.InvalidModelException - if the model is somehow inconsistent
List<SchemaMapping> listSchemaMappings(QName source)
throws org.wsmo.common.exception.InvalidModelException
org.wsmo.common.exception.InvalidModelExceptionvoid addGroundingChangeListener(GroundingChangeEventListener listener)
listener - void removeGroundingChangeListener(GroundingChangeEventListener listener)
listener -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||