org.jempbox.xmp
Class ResourceRef

java.lang.Object
  extended byorg.jempbox.xmp.ResourceRef
All Implemented Interfaces:
Elementable

public class ResourceRef
extends Object
implements Elementable

This class represents a multiple part reference to a resource.

Version:
$Revision: 1.1 $
Author:
Ben Litchfield (ben@benlitchfield.com)

Field Summary
protected  Element parent
          The DOM representation of this object.
 
Constructor Summary
ResourceRef(Element parentElement)
          Create a resource reference based on a existing parent property set.
 
Method Summary
 String getDocumentID()
          Get the referenced resource's document id.
 Element getElement()
          Get the underlying XML element.
 String getInstanceID()
          Get the referenced resource's id.
 String getManager()
          Get name of the asset management system that manages this resource.
 String getManagerTo()
          URI identifying the managed resource.
 String getManagerUI()
          URI to info about the managed resource.
 String getManagerVariant()
          Get name of the variant of asset management system that manages this resource.
 String getRenditionClass()
          Get the rendition class.
 String getRenditionParams()
          Get the extra rendition params.
 String getVersionID()
          Get the referenced resource's document version id.
 void setDocumentID(String id)
          Set the referenced resource's document id.
 void setInstanceID(String id)
          Set the referenced resource's id.
 void setMangager(String manager)
          Set the name of the system that manages this resource.
 void setMangagerTo(String managerTo)
          Set the URI to the managed resource.
 void setMangagerUI(String managerUI)
          Set the URI to the info about the managed resource.
 void setMangagerVariant(String managerVariant)
          Set the name of the variant of the system that manages this resource.
 void setRenditionClass(String renditionClass)
          Set the rendition class.
 void setRenditionParams(String params)
          Set addition rendition params.
 void setVersionID(String id)
          Set the referenced resource's version id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

protected Element parent
The DOM representation of this object.

Constructor Detail

ResourceRef

public ResourceRef(Element parentElement)
Create a resource reference based on a existing parent property set.

Parameters:
parentElement - The parent element that will store the resource properties.
Method Detail

getElement

public Element getElement()
Get the underlying XML element.

Specified by:
getElement in interface Elementable
Returns:
The XML element that this object represents.

getInstanceID

public String getInstanceID()
Get the referenced resource's id.

Returns:
The id of the reference.

setInstanceID

public void setInstanceID(String id)
Set the referenced resource's id.

Parameters:
id - The id of the reference.

getDocumentID

public String getDocumentID()
Get the referenced resource's document id.

Returns:
The id of the reference document.

setDocumentID

public void setDocumentID(String id)
Set the referenced resource's document id.

Parameters:
id - The id of the reference document.

getVersionID

public String getVersionID()
Get the referenced resource's document version id.

Returns:
The id of the reference document version.

setVersionID

public void setVersionID(String id)
Set the referenced resource's version id.

Parameters:
id - The id of the reference document version.

getRenditionClass

public String getRenditionClass()
Get the rendition class.

Returns:
The value of the rendition class property.
See Also:
setRenditionClass( String )

setRenditionClass

public void setRenditionClass(String renditionClass)
Set the rendition class. The rendition class is derived from a defined set of names. The value is series of colon separated tokens and parameters.
Defined values are:
Token NameDescription
defaultSpecifies master document, no additional tokens allowed
thumbnailA simplied preview. Recommended order is: thumbnailformat:size:colorspace
screenScreen resolution
proofA review proof
draftA review rendition
low-resA low resolution, full size stand-in

Parameters:
renditionClass - The rendition class.

getRenditionParams

public String getRenditionParams()
Get the extra rendition params.

Returns:
Additional rendition parameters.

setRenditionParams

public void setRenditionParams(String params)
Set addition rendition params.

Parameters:
params - Additional rendition parameters that are too complex for the rendition class.

getManager

public String getManager()
Get name of the asset management system that manages this resource.

Returns:
The name of a asset management system.

setMangager

public void setMangager(String manager)
Set the name of the system that manages this resource.

Parameters:
manager - The name of the management system.

getManagerVariant

public String getManagerVariant()
Get name of the variant of asset management system that manages this resource.

Returns:
The name of a asset management system.

setMangagerVariant

public void setMangagerVariant(String managerVariant)
Set the name of the variant of the system that manages this resource.

Parameters:
managerVariant - The name of the management system.

getManagerTo

public String getManagerTo()
URI identifying the managed resource.

Returns:
The URI to resource.

setMangagerTo

public void setMangagerTo(String managerTo)
Set the URI to the managed resource.

Parameters:
managerTo - The URI to the managed resource.

getManagerUI

public String getManagerUI()
URI to info about the managed resource.

Returns:
The URI to the resource info.

setMangagerUI

public void setMangagerUI(String managerUI)
Set the URI to the info about the managed resource.

Parameters:
managerUI - The URI to the managed resource information.