org.wso2.carbon.governance.api.generic.dataobjects
Interface GenericArtifact

All Superinterfaces:
GovernanceArtifact
All Known Implementing Classes:
GenericArtifactImpl

public interface GenericArtifact
extends GovernanceArtifact


Method Summary
 byte[] getContent()
          Method to obtain the content of this artifact.
 String getMediaType()
          Returns the media type of the artifact.
 void setContent(byte[] content)
          Method to set the content of this artifact.
 
Methods inherited from interface org.wso2.carbon.governance.api.common.dataobjects.GovernanceArtifact
addAttribute, attachLifecycle, getAttribute, getAttributeKeys, getAttributes, getDependencies, getDependents, getId, getLifecycleName, getLifecycleState, getPath, getQName, removeAttribute, setAttribute, setAttributes, setId
 

Method Detail

getMediaType

String getMediaType()
Returns the media type of the artifact.

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.


Copyright © 2013 WSO2 Inc. All Rights Reserved.