Class WsdlImpl
java.lang.Object
org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl
org.wso2.carbon.governance.api.wsdls.dataobjects.WsdlImpl
- All Implemented Interfaces:
GovernanceArtifact,Wsdl
This represents a WSDL artifact stored on the Registry. WSDL artifacts are created as a result of
importing or uploading a WSDL, or when a service which has an attached WSDL is created.
-
Field Summary
Fields inherited from class org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl
attributes, properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidattachEndpoint(Endpoint endpoint) Attach an endpoint artifact to a WSDL artifact.voidattachSchema(Schema schema) Attach a schema artifact to a WSDL artifact.voiddetachEndpoint(String endpointId) Detach an endpoint artifact from a WSDL artifact.voiddetachSchema(String schemaId) Detach a schema artifact from a WSDL artifact.Endpoint[]Method to retrieve all endpoints attached to this WSDL artifact.Schema[]Method to retrieve all schemas attached to this WSDL artifact.getQName()Returns the QName of the artifact.getUrl()Method to obtain the WSDL URL.org.apache.axiom.om.OMElementMethod to obtain the WSDL element of this WSDL artifact.voidMethod to load the WSDL details into this artifact.voidMethod to set the qualified name of this service artifact.voidsetWsdlElement(org.apache.axiom.om.OMElement wsdlElement) Method to set the WSDL element of this WSDL artifact.Methods inherited from class org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl
addAssociation, addAssociation, addAttribute, addBidirectionalAssociation, addTag, addTags, associateRegistry, attach, attach, attachLifecycle, checkLCItem, checkRegistryResourceAssociation, compareTo, create, create, create, create, createVersion, detach, detachLifecycle, equals, getAllCheckListItemNames, getAllLifecycleActions, getAllVotingItems, getAllVotingItems, getArtifactPath, getAssociatedArtifactIds, getAssociatedRegistry, getAssociations, getAttribute, getAttributeKeys, getAttributes, getCurrentStateDuration, getDependencies, getDependents, getId, getLcName, getLcState, getLifecycleName, getLifecycleNames, getLifecycleState, getLifecycleState, getMediaType, getPath, getPropertyKeys, getUniqueAttributes, invokeAction, invokeAction, isLCItemChecked, isRegistryAwareArtifact, isVoted, isVoted, listTags, removeAssociation, removeAssociation, removeAttribute, removeTag, removeTags, setArtifactPath, setAttribute, setAttributes, setId, setLcName, setLcState, setUniqueAttributes, toString, uncheckLCItem, uniqueTo, unvote, unvote, updatePath, updatePath, vote, voteMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact
addAssociation, addAssociation, addAttribute, addBidirectionalAssociation, addTag, addTags, attach, attach, attachLifecycle, checkLCItem, compareTo, detach, getAllCheckListItemNames, getAllLifecycleActions, getAllVotingItems, getAllVotingItems, getAssociatedArtifactIds, getAssociations, getAttribute, getAttributeKeys, getAttributes, getCurrentStateDuration, getDependencies, getDependents, getId, getLifecycleName, getLifecycleNames, getLifecycleState, getLifecycleState, getMediaType, getPath, getPropertyKeys, invokeAction, invokeAction, isLCItemChecked, isRegistryAwareArtifact, isVoted, isVoted, listTags, removeAssociation, removeAssociation, removeAttribute, removeTag, removeTags, setAttribute, setAttributes, setId, uncheckLCItem, uniqueTo, unvote, unvote, vote, vote
-
Constructor Details
-
WsdlImpl
public WsdlImpl(String id, org.wso2.carbon.registry.core.Registry registry) throws GovernanceException Constructor accepting resource path, identifier and a registry instance. This constructor should be used only when the wsdl already saved in the registry.- Parameters:
id- the resource identifier.registry- the registry instance.- Throws:
GovernanceException- if the construction fails.
-
WsdlImpl
Constructor accepting resource identifier and the WSDL URL. Can be used to create and save new wsdl instances.- Parameters:
id- the resource identifier.url- the WSDL URL.
-
-
Method Details
-
getQName
Description copied from interface:GovernanceArtifactReturns the QName of the artifact.- Specified by:
getQNamein interfaceGovernanceArtifact- Returns:
- the QName of the artifact
-
getWsdlElement
public org.apache.axiom.om.OMElement getWsdlElement()Method to obtain the WSDL element of this WSDL artifact.- Specified by:
getWsdlElementin interfaceWsdl- Returns:
- the WSDL element.
-
setWsdlElement
public void setWsdlElement(org.apache.axiom.om.OMElement wsdlElement) Method to set the WSDL element of this WSDL artifact.- Specified by:
setWsdlElementin interfaceWsdl- Parameters:
wsdlElement- the WSDL element.
-
getUrl
Method to obtain the WSDL URL.- Returns:
- the WSDL URL.
-
attachSchema
Attach a schema artifact to a WSDL artifact. Both the artifacts should be saved, before calling this method.- Specified by:
attachSchemain interfaceWsdl- Parameters:
schema- the schema to attach.- Throws:
GovernanceException- if the operation failed.
-
detachSchema
Detach a schema artifact from a WSDL artifact. Both the artifacts should be saved, before calling this method.- Specified by:
detachSchemain interfaceWsdl- Parameters:
schemaId- the identifier of the schema to detach.- Throws:
GovernanceException- if the operation failed.
-
getAttachedSchemas
Method to retrieve all schemas attached to this WSDL artifact.- Specified by:
getAttachedSchemasin interfaceWsdl- Returns:
- all schemas attached to this WSDL artifact.
- Throws:
GovernanceException- if the operation failed.
-
attachEndpoint
Attach an endpoint artifact to a WSDL artifact. Both the artifacts should be saved, before calling this method.- Specified by:
attachEndpointin interfaceWsdl- Parameters:
endpoint- the endpoint to attach.- Throws:
GovernanceException- if the operation failed.
-
detachEndpoint
Detach an endpoint artifact from a WSDL artifact. Both the artifacts should be saved, before calling this method.- Specified by:
detachEndpointin interfaceWsdl- Parameters:
endpointId- the identifier of the endpoint to detach.- Throws:
GovernanceException- if the operation failed.
-
getAttachedEndpoints
Method to retrieve all endpoints attached to this WSDL artifact.- Specified by:
getAttachedEndpointsin interfaceWsdl- Returns:
- all endpoints attached to this WSDL artifact.
- Throws:
GovernanceException- if the operation failed.
-
loadWsdlDetails
Method to load the WSDL details into this artifact.- Throws:
GovernanceException- if the operation failed.
-
setQName
Method to set the qualified name of this service artifact.- Specified by:
setQNamein interfaceGovernanceArtifact- Parameters:
qName- the qualified name.- Throws:
GovernanceException- if the operation failed.
-