public class Binary extends BaseResource implements IResource
RES_ID, SP_RES_ID, SP_RES_LANGUAGE| Constructor and Description |
|---|
Binary()
Constructor
|
Binary(String theContentType,
byte[] theContent)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
<T extends IElement> |
getAllPopulatedChildElementsOfType(Class<T> theType)
Returns a list containing all child elements matching a given type
|
byte[] |
getContent() |
String |
getContentAsBase64() |
String |
getContentType() |
String |
getResourceName()
Returns a String representing the name of this Resource.
|
boolean |
isEmpty() |
void |
setContent(byte[] theContent) |
void |
setContentAsBase64(String theContent) |
void |
setContentType(String theContentType) |
getContained, getId, getLanguage, getResourceMetadata, getText, isBaseEmpty, setContained, setId, setId, setLanguage, setResourceMetadata, setText, toStringaddUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetContained, getId, getLanguage, getResourceMetadata, getText, setId, setLanguage, setResourceMetadatapublic Binary()
public Binary(String theContentType, byte[] theContent)
theContentType - The content typetheContent - The binary contentspublic <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
ICompositeElementgetAllPopulatedChildElementsOfType in interface ICompositeElementtheType - The type to match. If set to null, all child elements will be returnedpublic byte[] getContent()
public String getContentAsBase64()
public String getContentType()
public void setContent(byte[] theContent)
public void setContentAsBase64(String theContent)
public void setContentType(String theContentType)
public String getResourceName()
IResourcegetResourceName in interface IResourceCopyright © 2014 University Health Network. All rights reserved.