public class SchemaImpl extends GovernanceArtifactImpl implements Schema
attributes, properties
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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 |
setQName(QName qName)
Method to set the qualified name of this service artifact.
|
void |
setSchemaElement(org.apache.axiom.om.OMElement schemaElement)
Method to set the schema element of this schema artifact.
|
addAssociation, addAssociation, addAttribute, addBidirectionalAssociation, addTag, addTags, associateRegistry, attach, attach, attachLifecycle, checkLCItem, checkRegistryResourceAssociation, compareTo, create, create, create, create, createVersion, detach, detachLifecycle, equals, getAllCheckListItemNames, getAllLifecycleActions, getAllVotingItems, getArtifactPath, getAssociatedArtifactIds, getAssociatedRegistry, getAssociations, getAttribute, getAttributeKeys, getAttributes, getDependencies, getDependents, getId, getLcName, getLcState, getLifecycleName, getLifecycleNames, getLifecycleState, getLifecycleState, getMediaType, getPath, getPropertyKeys, getUniqueAttributes, invokeAction, invokeAction, isLCItemChecked, isRegistryAwareArtifact, isVoted, listTags, removeAssociation, removeAssociation, removeAttribute, removeTag, removeTags, setArtifactPath, setAttribute, setAttributes, setId, setLcName, setLcState, setUniqueAttributes, toString, uncheckLCItem, uniqueTo, unvote, updatePath, updatePath, vote
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addAssociation, addAssociation, addAttribute, addBidirectionalAssociation, addTag, addTags, attach, attach, attachLifecycle, checkLCItem, compareTo, detach, getAllCheckListItemNames, getAllLifecycleActions, getAllVotingItems, getAssociatedArtifactIds, getAssociations, getAttribute, getAttributeKeys, getAttributes, getDependencies, getDependents, getId, getLifecycleName, getLifecycleNames, getLifecycleState, getLifecycleState, getMediaType, getPath, getPropertyKeys, invokeAction, invokeAction, isLCItemChecked, isRegistryAwareArtifact, isVoted, listTags, removeAssociation, removeAssociation, removeAttribute, removeTag, removeTags, setAttribute, setAttributes, setId, uncheckLCItem, uniqueTo, unvote, vote
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 QName getQName()
GovernanceArtifact
getQName
in interface GovernanceArtifact
public void setQName(QName qName) throws GovernanceException
setQName
in interface GovernanceArtifact
qName
- the qualified name.GovernanceException
- if the operation failed.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.Copyright © 2016 WSO2. All Rights Reserved.