oracle.syndication.ice.payload
Class Ice_item_content

java.lang.Object
  |
  +--oracle.xml.classgen.CGNode
        |
        +--oracle.syndication.ice.payload.Ice_item_content
Direct Known Subclasses:
Ice_item_group, Ice_item_ref

public class Ice_item_content
extends oracle.xml.classgen.CGNode
implements ContentItem, Printable

The Node Class representing the ice-item (not ref) element within an ice-item-group element in an ICE payload

Since:
9.0.0.0.0 Beta

Method Summary
TypeMethod
 java.lang.String decrypt()
          Decrypts and returns the content
 void enableShowCredit()
           
 void encrypt()
          Performs the encryption.
 ISODatetime getActivationDate()
           
 int getContent_transfer_encoding()
          Returns the transfer encoding of the content
 java.lang.String getContent_transfer_encryption()
          Gets the transfer encryption of the content
 java.lang.String getContent_type()
          Returns the content type of the item
 java.lang.String getContentFilename()
           
 Ice_payload getDocument()
          Get the owning document Class Ice_payload
 oracle.xml.parser.v2.DTD getDTDNode()
          Returns the Ice_payload DTD
 ISODatetime getExpirationDate()
           
 Item getGroupItem()
          Returns the group item if we are a group item
 java.lang.String getIntellectualStatus()
           
 java.lang.String getItemContent()
          Returns the actual String representation of the item content
 java.lang.String getItemId()
          Returns the Item Identifier of the ice-item
 java.lang.String getItemLanguage()
           
 java.lang.String getLicense()
           
 java.lang.String getName()
          Returns the text name associated with the item content
 RefItem getRefItem()
          The ref item if this is a item-ref
 java.lang.String getRightsHolder()
           
 ContentItem getSingleItem()
          Gets the single item interface (content is inline)
 java.lang.String getSubscriptionElement()
           
 boolean isGroupItem()
          Are we a group item?
 boolean isRefItem()
          Is this a ref item?
 boolean isSingleItem()
          Is this a single item where the content is inline?
 void print(java.lang.String szSpace, java.io.Writer wrt)
          Prints the ice-item node with a specific prefix into the specified writer.
 void setActivationDate(ISODatetime theData)
          Sets the value of attribute activation
 void setContent_transfer_encoding(int iContent_transfer_encoding)
          Refer to the content transfer encoding of the data contained in the current item.
 void setContent_transfer_encryption(java.lang.String szEncryptionType)
          Sets the transfer encryption of the content
 void setContent_type(java.lang.String theData)
          Mediatype of the content.
 void setContentFilename(java.lang.String theData)
          Sets the value of attribute content-filename
 void setEncryptor(java.lang.Object encryptor)
          Using the content encryptor instance to do the encryption work
 void setExpirationDate(ISODatetime theData)
          Sets the value of attribute expiration
 void setIntellectualStatus(java.lang.String theData)
          Sets the value of attribute ip-status
 void setItemId(java.lang.String theData)
          Sets the value of attribute item-id
 void setItemLanguage(java.lang.String theData)
          Sets the value of attribute xml:lang
 void setLicense(java.lang.String theData)
          Sets the value of attribute license
 void setName(java.lang.String theData)
          Sets the value of attribute name
 void setRightsHolder(java.lang.String theData)
          Sets the value of attribute rights-holder
 void setSubscriptionElement(java.lang.String theData)
          Sets the value of attribute subscription-element
 boolean showCredit()
           
 
Methods inherited from class oracle.xml.classgen.CGNode
setDocument
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setContent_transfer_encoding

public void setContent_transfer_encoding(int iContent_transfer_encoding)
                                  throws java.lang.IllegalArgumentException
Refer to the content transfer encoding of the data contained in the current item. The only valid options are : x-native-xml or base64. Sets the value of attribute content-transfer-encoding
Parameters:
varContent_transfer_encoding - value of the attribute
Throws:
java.lang.IllegalArgumentException - if the value is out of range

setContent_type

public void setContent_type(java.lang.String theData)
Mediatype of the content. This attribute, by default, should be set to be "application/octet-stream" to indicate the opaque feature of the content to be distributed. Refet to IETF 2045/46 for more details Sets the value of attribute content-type
Parameters:
theData - value of the attribute

setName

public void setName(java.lang.String theData)
Sets the value of attribute name
Parameters:
theData - value of the attribute

setItemId

public void setItemId(java.lang.String theData)
Sets the value of attribute item-id
Parameters:
theData - value of the attribute

setActivationDate

public void setActivationDate(ISODatetime theData)
Sets the value of attribute activation
Parameters:
theData - value of the attribute

setExpirationDate

public void setExpirationDate(ISODatetime theData)
Sets the value of attribute expiration
Parameters:
theData - value of the attribute

setContentFilename

public void setContentFilename(java.lang.String theData)
Sets the value of attribute content-filename
Parameters:
theData - value of the attribute

setIntellectualStatus

public void setIntellectualStatus(java.lang.String theData)
Sets the value of attribute ip-status
Parameters:
theData - value of the attribute

setItemLanguage

public void setItemLanguage(java.lang.String theData)
Sets the value of attribute xml:lang
Parameters:
theData - value of the attribute

setLicense

public void setLicense(java.lang.String theData)
Sets the value of attribute license
Parameters:
theData - value of the attribute

setRightsHolder

public void setRightsHolder(java.lang.String theData)
Sets the value of attribute rights-holder
Parameters:
theData - value of the attribute

enableShowCredit

public void enableShowCredit()

setSubscriptionElement

public void setSubscriptionElement(java.lang.String theData)
Sets the value of attribute subscription-element
Parameters:
theData - value of the attribute

getName

public java.lang.String getName()
Returns the text name associated with the item content

getItemId

public java.lang.String getItemId()
Returns the Item Identifier of the ice-item

getContent_type

public java.lang.String getContent_type()
Returns the content type of the item

getContent_transfer_encoding

public int getContent_transfer_encoding()
Returns the transfer encoding of the content

getItemContent

public java.lang.String getItemContent()
Returns the actual String representation of the item content

getActivationDate

public ISODatetime getActivationDate()

getExpirationDate

public ISODatetime getExpirationDate()

getContentFilename

public java.lang.String getContentFilename()

getIntellectualStatus

public java.lang.String getIntellectualStatus()

getItemLanguage

public java.lang.String getItemLanguage()

getLicense

public java.lang.String getLicense()

getRightsHolder

public java.lang.String getRightsHolder()

showCredit

public boolean showCredit()

getSubscriptionElement

public java.lang.String getSubscriptionElement()

getDTDNode

public oracle.xml.parser.v2.DTD getDTDNode()
Returns the Ice_payload DTD
Returns:
The DTD of the Ice_payload that owns this node.
See Also:
DTD

getDocument

public Ice_payload getDocument()
Get the owning document Class Ice_payload
Returns:
The ice-payload document that owns this node.

isSingleItem

public boolean isSingleItem()
Is this a single item where the content is inline?
Returns:
true

getSingleItem

public ContentItem getSingleItem()
Gets the single item interface (content is inline)
Returns:
this

isRefItem

public boolean isRefItem()
Is this a ref item?
Returns:
false

getRefItem

public RefItem getRefItem()
The ref item if this is a item-ref
Returns:
null

setContent_transfer_encryption

public void setContent_transfer_encryption(java.lang.String szEncryptionType)
Sets the transfer encryption of the content
Specified by:
setContent_transfer_encryption in interface ContentItem

getContent_transfer_encryption

public java.lang.String getContent_transfer_encryption()
Gets the transfer encryption of the content
Specified by:
getContent_transfer_encryption in interface ContentItem

setEncryptor

public void setEncryptor(java.lang.Object encryptor)
Using the content encryptor instance to do the encryption work

encrypt

public void encrypt()
Performs the encryption. For now, we don't support encryption
Specified by:
encrypt in interface ContentItem

decrypt

public java.lang.String decrypt()
Decrypts and returns the content

isGroupItem

public boolean isGroupItem()
Are we a group item?
Returns:
false

getGroupItem

public Item getGroupItem()
Returns the group item if we are a group item
Returns:
null

print

public void print(java.lang.String szSpace,
                  java.io.Writer wrt)
           throws java.io.IOException
Prints the ice-item node with a specific prefix into the specified writer.
Specified by:
print in interface Printable