com.adobe.icomm.assetplacement.model
Class PackageElement

java.lang.Object
  extended by com.adobe.icomm.assetplacement.model.PackageElement
Direct Known Subclasses:
Attachment, Controller, Resource

public class PackageElement
extends Object

Represents the common functionality of the elements in a package definition.


Method Summary
 String getAttribute(String attrName)
          Gets some attribute of the element by name.
 byte[] getMetaData()
          Gets the element's metadata.
 void remove()
          Removes the element from the PackageElement definition.
 void setAttribute(String attrName, String value)
          Sets some attribute of the element by name.
 void setMetaData(byte[] inlineData)
          Sets metadata.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAttribute

public String getAttribute(String attrName)
Gets some attribute of the element by name.

Parameters:
attrName - The name of the attribute to query
Returns:
The value of the attribute

setAttribute

public void setAttribute(String attrName,
                         String value)
Sets some attribute of the element by name.

Parameters:
attrName - The name of the attribute to set
value - The value to set the attribute to.

remove

public void remove()
Removes the element from the PackageElement definition.


setMetaData

public void setMetaData(byte[] inlineData)
Sets metadata. Stubbed API for now, not sure what final metadata format will be, thus this method could change.

Parameters:
inlineData - an array of bytes representing the metadata

getMetaData

public byte[] getMetaData()
Gets the element's metadata. Stubbed API for now, not sure what final metadata format will be, thus this method could change.

Returns:
array of bytes representing the metadata


[an error occurred while processing this directive] [an error occurred while processing this directive]