DEPRECATED

# com.bea.p13n.content
Content Interface

public interface Content
extends `com.bea.p13n.property.ConfigurableEntity`, `Serializable`

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```

- Containment: By Value
- Multiplicity: 1:1
- PRIMARY KEY FIELD
- The unique id of the Content.

Attribute: `mimeType```

- Containment: By Value
- Multiplicity: 1:1
- The MIME type of the Content.

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-*'".

Related Topics

``ContentManager``
``ExpressionHelper``
``Document``

All Known Implementing Classes
  `com.bea.p13n.content.adapter.NodeDocument`

All Superinterfaces
  `com.bea.p13n.property.ConfigurableEntity`, `Serializable`

All Known Subinterfaces
  `com.bea.p13n.content.document.Document`

## Field Summary

Fields from interface com.bea.p13n.property`.`com.bea.p13n.property.ConfigurableEntity``
``RESERVED_PROPERTY_SET``

## Method Summary

`public `ContentValue`` | `getContentByValue`() Get all of Content's attributes.
`public `String`` | `getIdentifier`() Get the unique identifier of this piece of Content.
`public `String`` | `getMimeType`() Get the value of mimeType
`public void` | `setContentByValue`(`ContentValue` value) Set all of Content's attributes to the passed in value.
`public void` | `setMimeType`(`String` mimeType) Set the value of mimeType

Methods from interface `com.bea.p13n.property.`com.bea.p13n.property.ConfigurableEntity``
``getJndiName`, `getPkString`, `getProperty`, `getPropertyAsString`, `getPropertyNoDefault`, `getUniqueId`, `removeProperty`, `setProperty``

## Method Detail

### getContentByValue() Method

DEPRECATED No longer needed - use Content object instead.

    public ContentValue getContentByValue()
         throws RemoteException

Get all of Content's attributes.

#### Returns

ContentValue the Content value object.

#### Exceptions

``RemoteException``
  thrown on a communication error.

### getIdentifier() Method

    public String getIdentifier()
         throws RemoteException

Get the unique identifier of this piece of Content.

#### Exceptions

``RemoteException``
  thrown on a communication error.

### getMimeType() Method

    public String getMimeType()
         throws RemoteException

Get the value of mimeType

#### Returns

mimeType.

#### Exceptions

``RemoteException``
  thrown on a communication error.

### setContentByValue(ContentValue) Method

DEPRECATED Not implemented.

    public void setContentByValue(ContentValue value)
         throws RemoteException

Set all of Content's attributes to the passed in value.

Note: Primary key attributes are not set.

#### Parameters

value
  the Content value object

#### Exceptions

``RemoteException``
  thrown on a communication error.

### setMimeType(String) Method

    public void setMimeType(String mimeType)
         throws RemoteException

Set the value of mimeType

#### Parameters

mimeType
  mimeType to be added

#### Exceptions

``RemoteException``
  thrown on a communication error.