Interface GenericArtifact
- All Superinterfaces:
GovernanceArtifact
- All Known Subinterfaces:
DetachedGenericArtifact
- All Known Implementing Classes:
DetachedGenericArtifactImpl,GenericArtifactImpl
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]Method to obtain the content of this artifact.Returns the media type of the artifact.voidsetContent(byte[] content) Method to set the content of this artifact.Methods 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, getPath, getPropertyKeys, getQName, invokeAction, invokeAction, isLCItemChecked, isRegistryAwareArtifact, isVoted, isVoted, listTags, removeAssociation, removeAssociation, removeAttribute, removeTag, removeTags, setAttribute, setAttributes, setId, setQName, uncheckLCItem, uniqueTo, unvote, unvote, vote, vote
-
Method Details
-
getMediaType
String getMediaType()Returns the media type of the artifact.- Specified by:
getMediaTypein interfaceGovernanceArtifact- Returns:
- the media type of the artifact
-
getContent
byte[] getContent()Method to obtain the content of this artifact.- Returns:
- the content.
-
setContent
void setContent(byte[] content) Method to set the content of this artifact.- Parameters:
content- the element.
-