© 2002 BEA Systems, Inc.


com.bea.p13n.content
Interface Content

All Known Subinterfaces:
Document

public interface Content
extends java.io.Serializable, ConfigurableEntity

The content object is used to provide access to any type of content.

This is the base interface for all Content objects.

It has a unique identifier and a mimeType. The mimeType is used to describe to the user which application to use to interpret the specific content.

Attribute: identifier

Attribute: mimeType

When constructing queries for Contents, the above property/attribute names will compare against the explicit attributes on the Content interface. For example, to find content whose mime type matches "application/x-*", you could use a query string like "mimeType like 'application/x-*'".

See Also:
ContentManager, ExpressionHelper, Document

Fields inherited from class com.bea.p13n.property.ConfigurableEntity
RESERVED_PROPERTY_SET
 
Method Summary
 ContentValue getContentByValue()
          Deprecated. No longer needed - use Content object instead.
 java.lang.String getIdentifier()
          Get the unique identifier of this piece of Content.
 java.lang.String getMimeType()
          Get the value of mimeType
 void setContentByValue(ContentValue value)
          Deprecated. Not implemented.
 void setMimeType(java.lang.String mimeType)
          Set the value of mimeType
 
Methods inherited from interface com.bea.p13n.property.ConfigurableEntity
getJndiName, getPkString, getProperty, getPropertyAsString, getPropertyNoDefault, getUniqueId, removeProperty, setProperty
 

Method Detail

getContentByValue

public ContentValue getContentByValue()
                               throws java.rmi.RemoteException
Deprecated. No longer needed - use Content object instead.
Get all of Content's attributes.

Returns:
ContentValue the Content value object.
Throws:
java.rmi.RemoteException - thrown on a communication error.

setContentByValue

public void setContentByValue(ContentValue value)
                       throws java.rmi.RemoteException
Deprecated. Not implemented.
Set all of Content's attributes to the passed in value.

Note: Primary key attributes are not set.

Parameters:
ContentValue - the Content value object
Throws:
java.rmi.RemoteException - thrown on a communication error.

getIdentifier

public java.lang.String getIdentifier()
                               throws java.rmi.RemoteException
Get the unique identifier of this piece of Content.

Throws:
java.rmi.RemoteException - thrown on a communication error.

getMimeType

public java.lang.String getMimeType()
                             throws java.rmi.RemoteException
Get the value of mimeType

Returns:
mimeType.
Throws:
java.rmi.RemoteException - thrown on a communication error.

setMimeType

public void setMimeType(java.lang.String mimeType)
                 throws java.rmi.RemoteException
Set the value of mimeType

Parameters:
mimeType - mimeType to be added
Throws:
java.rmi.RemoteException - thrown on a communication error.

© 2002 BEA Systems, Inc.

Copyright © 2002 BEA Systems, Inc. All Rights Reserved