|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl
org.wso2.carbon.governance.api.wsdls.dataobjects.WsdlImpl
public class WsdlImpl
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 |
Constructor Summary | |
---|---|
WsdlImpl(String id,
org.wso2.carbon.registry.core.Registry registry)
Constructor accepting resource path, identifier and a registry instance. |
|
WsdlImpl(String id,
String url)
Constructor accepting resource identifier and the WSDL URL. |
Method Summary | |
---|---|
void |
attachEndpoint(Endpoint endpoint)
Attach an endpoint artifact to a WSDL artifact. |
void |
attachSchema(Schema schema)
Attach a schema artifact to a WSDL artifact. |
void |
detachEndpoint(String endpointId)
Detach an endpoint artifact from a WSDL artifact. |
void |
detachSchema(String schemaId)
Detach a schema artifact from a WSDL artifact. |
Endpoint[] |
getAttachedEndpoints()
Method to retrieve all endpoints attached to this WSDL artifact. |
Schema[] |
getAttachedSchemas()
Method to retrieve all schemas attached to this WSDL artifact. |
QName |
getQName()
Returns the QName of the artifact. |
String |
getUrl()
Method to obtain the WSDL URL. |
org.apache.axiom.om.OMElement |
getWsdlElement()
Method to obtain the WSDL element of this WSDL artifact. |
void |
loadWsdlDetails()
Method to load the WSDL details into this artifact. |
void |
setWsdlElement(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 |
---|
addAttribute, associateRegistry, attach, attachLifecycle, checkLCItem, checkRegistryResourceAssociation, create, create, createVersion, detach, detachLifecycle, getAllCheckListItemNames, getAllLifecycleActions, getAllVotingItems, getArtifactPath, getAssociatedRegistry, getAttribute, getAttributeKeys, getAttributes, getDependencies, getDependents, getId, getLcName, getLcState, getLifecycleName, getLifecycleState, getPath, invokeAction, invokeAction, isLCItemChecked, isVoted, removeAttribute, setArtifactPath, setAttribute, setAttributes, setId, setLcName, setLcState, uncheckLCItem, unvote, updatePath, updatePath, vote |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact |
---|
addAttribute, attachLifecycle, checkLCItem, getAllCheckListItemNames, getAllLifecycleActions, getAllVotingItems, getAttribute, getAttributeKeys, getAttributes, getDependencies, getDependents, getId, getLifecycleName, getLifecycleState, getPath, invokeAction, invokeAction, isLCItemChecked, isVoted, removeAttribute, setAttribute, setAttributes, setId, uncheckLCItem, unvote, vote |
Constructor Detail |
---|
public WsdlImpl(String id, org.wso2.carbon.registry.core.Registry registry) throws GovernanceException
id
- the resource identifier.registry
- the registry instance.
GovernanceException
- if the construction fails.public WsdlImpl(String id, String url)
id
- the resource identifier.url
- the WSDL URL.Method Detail |
---|
public QName getQName()
GovernanceArtifact
getQName
in interface GovernanceArtifact
public org.apache.axiom.om.OMElement getWsdlElement()
getWsdlElement
in interface Wsdl
public void setWsdlElement(org.apache.axiom.om.OMElement wsdlElement)
setWsdlElement
in interface Wsdl
wsdlElement
- the WSDL element.public String getUrl()
public void attachSchema(Schema schema) throws GovernanceException
attachSchema
in interface Wsdl
schema
- the schema to attach.
GovernanceException
- if the operation failed.public void detachSchema(String schemaId) throws GovernanceException
detachSchema
in interface Wsdl
schemaId
- the identifier of the schema to detach.
GovernanceException
- if the operation failed.public Schema[] getAttachedSchemas() throws GovernanceException
getAttachedSchemas
in interface Wsdl
GovernanceException
- if the operation failed.public void attachEndpoint(Endpoint endpoint) throws GovernanceException
attachEndpoint
in interface Wsdl
endpoint
- the endpoint to attach.
GovernanceException
- if the operation failed.public void detachEndpoint(String endpointId) throws GovernanceException
detachEndpoint
in interface Wsdl
endpointId
- the identifier of the endpoint to detach.
GovernanceException
- if the operation failed.public Endpoint[] getAttachedEndpoints() throws GovernanceException
getAttachedEndpoints
in interface Wsdl
GovernanceException
- if the operation failed.public void loadWsdlDetails() throws GovernanceException
GovernanceException
- if the operation failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |