public interface RvdiCreator
RvdiCreator rvdiTool = VdiTool.newRvdiCreator(); rvdiTool.addResource("http://www.ict-convergence.eu/myResource.jpg", "image/jpg"); rvdiTool.setExpiryDate(new Date()); rvdiTool.addKeyword("myTag"); rvdiTool.generateRVDI(); if (rvdiTool.store("myRVDI filePath")) { rvdiTool.advertise(filePath); } String vdiID = rvdiTool.getIdentifier();
Modifier and Type | Method and Description |
---|---|
void |
addAsset(org.iso.mpeg.mxm.tEngine.digitalitemTE.schemahandler.didl.Resource resource,
java.util.List<org.iso.mpeg.mxm.tEngine.relTE.schemahandler.relr.License> licenses,
java.util.List<org.iso.mpeg.mxm.tEngine.eventreportTE.schemahandler.er.ERR> err) |
void |
addFieldValue(java.lang.String field,
java.lang.Object value)
Adds a field/value pair description to the VDI, e.g. genre, comedy.
|
void |
addKeyword(java.lang.String keyword)
Adds a keyword description to the VDI, e.g. comedy
|
void |
addRelationship(java.lang.String relationshipType,
java.lang.String vdiId)
Adds a relationship descriptor stating a semantic relationship between another VDI and the VDI to be created.
|
void |
addSignature(org.iso.mpeg.mxm.tEngine.securityTE.schemahandler.dsig.Signature signature)
Adds a signature to the VDI.
|
void |
addStructuredData(org.iso.mpeg.mxm.tEngine.digitalitemTE.schemahandler.didl_msx.StructuredData structuredData)
The method adds structured metadata descriptions to the VDI.
|
void |
addTag(java.lang.String tag)
This method adds a tag description to the VDI.
|
boolean |
advertise(java.lang.String filePath)
Advertises the R-VDI in CoNet that is located in filePath.
|
org.iso.mpeg.mxm.tEngine.digitalitemTE.schemahandler.didl.Resource |
createResource(java.lang.String resourceURL,
java.lang.String mimeType,
java.lang.String content)
This method adds a resource reference descriptor to the R-VDI.
|
org.iso.mpeg.mxm.tEngine.digitalitemTE.schemahandler.didl.DIDL |
generateRVDI()
This method allows the creation of the R-VDI, provided that metadata, licenses, etc. have been inserted.
|
java.lang.String |
getIdentifier()
Returns the identifier of the VDI
|
void |
setExpiryDate(java.util.Date expiryDate)
Sets the expiration date of the VDI.
|
void |
setStartDate(java.util.Date startDate)
Sets the start date of validity of the VDI.
|
boolean |
store(java.lang.String filePath)
Stores the VDI to the specified filePath location.
|
java.lang.String getIdentifier()
void addKeyword(java.lang.String keyword)
keyword
- A keyword.void addTag(java.lang.String tag)
tag
- A tag.void addFieldValue(java.lang.String field, java.lang.Object value)
field
- A field.value
- A value.void addStructuredData(org.iso.mpeg.mxm.tEngine.digitalitemTE.schemahandler.didl_msx.StructuredData structuredData)
structuredData
- A structuredData object.org.iso.mpeg.mxm.tEngine.digitalitemTE.schemahandler.didl.Resource createResource(java.lang.String resourceURL, java.lang.String mimeType, java.lang.String content)
resourceURL
- The resource URL.mimeType
- The mimeType of the resource.void addAsset(org.iso.mpeg.mxm.tEngine.digitalitemTE.schemahandler.didl.Resource resource, java.util.List<org.iso.mpeg.mxm.tEngine.relTE.schemahandler.relr.License> licenses, java.util.List<org.iso.mpeg.mxm.tEngine.eventreportTE.schemahandler.er.ERR> err)
void addRelationship(java.lang.String relationshipType, java.lang.String vdiId)
relationshipType
- The relationship type.vdiId
- The identifier of the digital item having the relationship with.org.iso.mpeg.mxm.tEngine.digitalitemTE.schemahandler.didl.DIDL generateRVDI()
boolean store(java.lang.String filePath)
boolean advertise(java.lang.String filePath)
void setStartDate(java.util.Date startDate)
startDate
- A date.void setExpiryDate(java.util.Date expiryDate)
expiryDate
- A date.void addSignature(org.iso.mpeg.mxm.tEngine.securityTE.schemahandler.dsig.Signature signature)
signature
- A XML Signature.