|
||||||||||
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.schema.dataobjects.SchemaImpl
public class SchemaImpl
This represents a schema artifact stored on the Registry. Schema artifacts are created as a result of importing or uploading a schema or 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 |
---|
artifactPath, attributes, lcName, lcState |
Constructor Summary | |
---|---|
SchemaImpl(String id,
org.wso2.carbon.registry.core.Registry registry)
Constructor accepting resource path, identifier and a registry instance. |
|
SchemaImpl(String id,
String url)
Constructor accepting resource identifier and the schema URL. |
Method Summary | |
---|---|
QName |
getQName()
Returns the QName of the artifact. |
org.apache.axiom.om.OMElement |
getSchemaElement()
Method to obtain the schema element of this schema artifact. |
String |
getUrl()
Method to obtain the schema URL. |
void |
loadSchemaDetails()
Method to load the schema details into this artifact. |
void |
setSchemaElement(org.apache.axiom.om.OMElement schemaElement)
Method to set the schema element of this schema artifact. |
Methods inherited from class org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifactImpl |
---|
addAttribute, associateRegistry, attach, attachLifecycle, checkRegistryResourceAssociation, create, create, createVersion, detach, getArtifactPath, getAssociatedRegistry, getAttribute, getAttributeKeys, getAttributes, getDependencies, getDependents, getId, getLcName, getLcState, getLifecycleName, getLifecycleState, getPath, removeAttribute, setArtifactPath, setAttribute, setAttributes, setId, setLcName, setLcState, updatePath, updatePath |
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, getAttribute, getAttributeKeys, getAttributes, getDependencies, getDependents, getId, getLifecycleName, getLifecycleState, getPath, removeAttribute, setAttribute, setAttributes, setId |
Constructor Detail |
---|
public SchemaImpl(String id, org.wso2.carbon.registry.core.Registry registry) throws GovernanceException
path
- the resource path.id
- the resource identifier.registry
- the registry instance.
GovernanceException
- if the construction fails.public SchemaImpl(String id, String url)
id
- the resource identifier.url
- the schema URL.Method Detail |
---|
public QName getQName()
GovernanceArtifact
getQName
in interface GovernanceArtifact
public org.apache.axiom.om.OMElement getSchemaElement()
getSchemaElement
in interface Schema
public void setSchemaElement(org.apache.axiom.om.OMElement schemaElement)
setSchemaElement
in interface Schema
schemaElement
- the schema element.public String getUrl()
public void loadSchemaDetails() throws GovernanceException
GovernanceException
- if the operation failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |