FileNet Content Services
Java Connector v3.0

com.filenet.wcm.api
Class MimeTypes

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.Vector
              extended bycom.filenet.wcm.api.MimeTypes
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable

public final class MimeTypes
extends java.util.Vector

Not Applicable in CS Java Connector v3.0.

The MimeTypes class is a vector of MIME type elements, and is used in calls to the Document interface's getPublications, getPublicationsXML, getPublishTemplates, and getPublishTemplatesXML methods to filter the returned collections. The elements passed into the MimeTypes vector must always be String objects, otherwise an IllegalArgumentException is thrown. This class also includes constants for FileNet-specific MIME types (such as FILENET_PUBLISHTEMPLATE).

See Also:
Serialized Form

Field Summary
static java.lang.String FILENET_APPLICATION_EXTERNAL
          

Not Applicable in CS Java Connector v3.0.

static java.lang.String FILENET_APPLICATION_SCENARIODEFINITION
          

Not Applicable in CS Java Connector v3.0.

static java.lang.String FILENET_DECLARE_RECORDTEMPLATE
          

Not Applicable in CS Java Connector v3.0.

static java.lang.String FILENET_DOCUMENTASSEMBLY
          

Not Applicable in CS Java Connector v3.0.

static java.lang.String FILENET_MULTIPART_EXTERNAL
          

Not Applicable in CS Java Connector v3.0.

static java.lang.String FILENET_PUBLISHTEMPLATE
          

Not Applicable in CS Java Connector v3.0.

static java.lang.String FILENET_SEARCH
          

Not Applicable in CS Java Connector v3.0.

static java.lang.String FILENET_SEARCHTEMPLATE
          

Not Applicable in CS Java Connector v3.0.

static java.lang.String FILENET_WORKFLOWDEFINITION
          

Not Applicable in CS Java Connector v3.0.

 
Constructor Summary
MimeTypes()
          

Not Applicable in CS Java Connector v3.0.

MimeTypes(MimeTypes copy)
          

Not Applicable in CS Java Connector v3.0.

MimeTypes(java.lang.String mimeType)
          

Not Applicable in CS Java Connector v3.0.

 
Method Summary
 void add(int index, java.lang.Object element)
          

Not Applicable in CS Java Connector v3.0.

 boolean add(java.lang.Object o)
          

Not Applicable in CS Java Connector v3.0.

 boolean addAll(java.util.Collection c)
          

Not Applicable in CS Java Connector v3.0.

 boolean addAll(int index, java.util.Collection c)
          

Not Applicable in CS Java Connector v3.0.

 void addElement(java.lang.Object obj)
          

Not Applicable in CS Java Connector v3.0.

 void insertElementAt(java.lang.Object obj, int index)
          

Not Applicable in CS Java Connector v3.0.

 java.lang.Object set(int index, java.lang.Object element)
          

Not Applicable in CS Java Connector v3.0.

 void setElementAt(java.lang.Object obj, int index)
          

Not Applicable in CS Java Connector v3.0.

 
Methods inherited from class java.util.Vector
capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, retainAll, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Field Detail

FILENET_WORKFLOWDEFINITION

public static final java.lang.String FILENET_WORKFLOWDEFINITION

Not Applicable in CS Java Connector v3.0.

Value of "application/x-filenet-workflowdefinition", MIME type for a workflow definition document.

See Also:
Constant Field Values

FILENET_DOCUMENTASSEMBLY

public static final java.lang.String FILENET_DOCUMENTASSEMBLY

Not Applicable in CS Java Connector v3.0.

Value of "application/x-filenet-documentassembly", MIME type for a document assembly.

See Also:
Constant Field Values

FILENET_PUBLISHTEMPLATE

public static final java.lang.String FILENET_PUBLISHTEMPLATE

Not Applicable in CS Java Connector v3.0.

Value of "application/x-filenet-publishtemplate", MIME type for a publish template.

See Also:
Constant Field Values

FILENET_SEARCHTEMPLATE

public static final java.lang.String FILENET_SEARCHTEMPLATE

Not Applicable in CS Java Connector v3.0.

Value of "application/x-filenet-searchtemplate", MIME type for a search template.

See Also:
Constant Field Values

FILENET_SEARCH

public static final java.lang.String FILENET_SEARCH

Not Applicable in CS Java Connector v3.0.

Value of "application/x-filenet-search", MIME type for a stored search.

See Also:
Constant Field Values

FILENET_APPLICATION_EXTERNAL

public static final java.lang.String FILENET_APPLICATION_EXTERNAL

Not Applicable in CS Java Connector v3.0.

Value of "application/x-filenet-external", MIME type for a document that contains a single ContentReference object (which represents external content).

See Also:
Constant Field Values

FILENET_APPLICATION_SCENARIODEFINITION

public static final java.lang.String FILENET_APPLICATION_SCENARIODEFINITION

Not Applicable in CS Java Connector v3.0.

Value of "application/x-filenet-scenariodefinition", MIME type for a scenario definition document.

See Also:
Constant Field Values

FILENET_MULTIPART_EXTERNAL

public static final java.lang.String FILENET_MULTIPART_EXTERNAL

Not Applicable in CS Java Connector v3.0.

Value of "multipart/x-filenet-external", MIME type for a document that contains multiple ContentReference objects (which represent external content) but does not contain any ContentTransfer objects (which represent content stored in the document space).

See Also:
Constant Field Values

FILENET_DECLARE_RECORDTEMPLATE

public static final java.lang.String FILENET_DECLARE_RECORDTEMPLATE

Not Applicable in CS Java Connector v3.0.

Value of "application/x-filenet-declarerecordentrytemplate", MIME type for a declare record template.

See Also:
Constant Field Values
Constructor Detail

MimeTypes

public MimeTypes()

Not Applicable in CS Java Connector v3.0.

Creates an empty MimeTypes collection.


MimeTypes

public MimeTypes(MimeTypes copy)

Not Applicable in CS Java Connector v3.0.

Creates a MimeTypes collection containing the elements of the specified MimeTypes collection.


MimeTypes

public MimeTypes(java.lang.String mimeType)

Not Applicable in CS Java Connector v3.0.

Creates a MimeTypes collection containing the specified MIME type element.

Method Detail

add

public void add(int index,
                java.lang.Object element)
         throws java.lang.IllegalArgumentException

Not Applicable in CS Java Connector v3.0.

Inserts the specified element at the specified position in this MimeTypes collection. This method shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).

The index must be a value greater than or equal to 0 and less than or equal to the current size of this MimeTypes collection. (If the index is equal to the current size of the collection, the new element is appended to the collection.)

This method is identical in functionality to the insertElementAt(obj, index) method. Also, this method is identical in functionality to the Vector.add(index, element) method, except this method checks that this instance of the passed-in object is of type String and throws an IllegalArgumentException if it isn't.

Parameters:
index - The index at which the specified element is to be inserted.

element - An Object of type String that specifies the MIME type element to be inserted.

Throws:
java.lang.IllegalArgumentException - Thrown when the specified element is not a String.

java.lang.ArrayIndexOutOfBoundsException - Thrown when the index is out of range (index < 0 || index > size()).

add

public boolean add(java.lang.Object o)
            throws java.lang.IllegalArgumentException

Not Applicable in CS Java Connector v3.0.

Appends the specified element to the end of this MimeTypes collection, increasing its size by one. The capacity of this MimeTypes collection is increased if its size becomes greater than its capacity.

This method is identical in functionality to the addElement(obj) method. This method is also identical in functionality to the Vector.add(o) method, except this method checks that this instance of the passed-in object is of type String and throws an IllegalArgumentException if it isn't.

Parameters:
o - An Object of type String that specifies the MIME type element to append to this MimeTypes collection.

Returns:
True if an element was added.

Throws:
java.lang.IllegalArgumentException - Thrown when the specified element is not a String.

addAll

public boolean addAll(java.util.Collection c)
               throws java.lang.IllegalArgumentException

Not Applicable in CS Java Connector v3.0.

Appends all of the elements in the specified Collection to the end of this MimeTypes collection, in the order that they are returned by the specified Collection's Iterator. The behavior of this operation is undefined if the specified Collection is modified while the operation is in progress. (This implies that the behavior of this call is undefined if the specified Collection is this MimeTypes collection, and this MimeTypes collection is nonempty.)

This method is identical in functionality to the Vector.addAll(c) method, except this method checks that each object instance in the passed-in collection is of type String and throws an IllegalArgumentException if one isn't.

Parameters:
c - A Collection of Strings that specifies the MIME type elements to be inserted into this MimeTypes collection.

Returns:
True if any elements were added.

Throws:
java.lang.IllegalArgumentException - Thrown when one or more elements in the passed-in Collection are not of type String.

java.lang.ArrayIndexOutOfBoundsException - Thrown when the index is out of range (index < 0 || index > size()).

addAll

public boolean addAll(int index,
                      java.util.Collection c)
               throws java.lang.IllegalArgumentException

Not Applicable in CS Java Connector v3.0.

Inserts all of the elements in the specified Collection into this MimeTypes collection at the specified position. This method shifts the element currently at that position (if any) and any subsequent elements to the right (increases their indices). The new elements will appear in the MimeTypes collection in the order that they are returned by the specified Collection's iterator.

This method is identical in functionality to the Vector.addAll(index, c) method, except this method checks that each object instance in the passed-in collection is of type String and throws an IllegalArgumentException if one isn't.

Parameters:
index - The index at which to insert the first element from the specified collection.

c - A Collection of Strings that specifies the MIME type elements to be inserted into this MimeTypes collection.

Returns:
True if any elements were added.

Throws:
java.lang.IllegalArgumentException - Thrown when one or more elements in the passed-in Collection are not of type String.

java.lang.ArrayIndexOutOfBoundsException - Thrown when the index is out of range (index < 0 || index > size()).

addElement

public void addElement(java.lang.Object obj)
                throws java.lang.IllegalArgumentException

Not Applicable in CS Java Connector v3.0.

Adds the specified element to the end of this MimeTypes collection, increasing its size by one. The capacity of this MimeTypes collection is increased if its size becomes greater than its capacity.

This method is identical in functionality to the add(o) method. Also, this method is identical in functionality to the Vector.addElement(obj) method, except this method checks that this instance of the passed-in object is of type String and throws an IllegalArgumentException if it isn't.

Parameters:
obj - An Object of type String that specifies the MIME type element to append to this MimeTypes collection.

Throws:
java.lang.IllegalArgumentException - Thrown when the specified element is not a String.

insertElementAt

public void insertElementAt(java.lang.Object obj,
                            int index)
                     throws java.lang.IllegalArgumentException

Not Applicable in CS Java Connector v3.0.

Inserts the specified element at the specified position in this MimeTypes collection. This method shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).

The index must be a value greater than or equal to 0 and less than or equal to the current size of this MimeTypes collection. (If the index is equal to the current size of the collection, the new element is appended to the collection.)

This method is identical in functionality to the add(index, element) method. Note that the add method reverses the order of the parameters to more closely match array usage. Also, this method is identical in functionality to the Vector.add(index, element) method, except this method checks that this instance of the passed-in object is of type String and throws an IllegalArgumentException if it isn't.

Parameters:
obj - An Object of type String that specifies the MIME type element to be inserted.

index - The index at which the specified element is to be inserted.

Throws:
java.lang.IllegalArgumentException - Thrown when the specified element is not a String.

java.lang.ArrayIndexOutOfBoundsException - Thrown when the index is out of range (index < 0 || index > size()).

set

public java.lang.Object set(int index,
                            java.lang.Object element)
                     throws java.lang.IllegalArgumentException

Not Applicable in CS Java Connector v3.0.

Replaces the element at the specified position in this MimeTypes collection with the specified element, and returns the previous element at that position.

The index must be a value greater than or equal to 0 and less than the current size of this MimeTypes collection.

This method is identical in functionality to the setElementAt(obj, index) method. Also, this method is identical in functionality to the Vector.set(index, element) method, except this method checks that this instance of the passed-in object is of type String and throws an IllegalArgumentException if it isn't.

Parameters:
index - The index of the element to replace.

element - An Object of type String that specifies the MIME type element to be stored at the specified position.

Returns:
An Object that specifies the element previously at the specified position.

Throws:
java.lang.IllegalArgumentException - Thrown when the specified element is not a String or when fromIndex > toIndex.

java.lang.ArrayIndexOutOfBoundsException - Thrown when the index is out of range (index < 0 || index > size()).

setElementAt

public void setElementAt(java.lang.Object obj,
                         int index)
                  throws java.lang.IllegalArgumentException

Not Applicable in CS Java Connector v3.0.

Replaces the element at the specified position in this MimeTypes collection with the specified element. The previous element at that position is discarded.

The index must be a value greater than or equal to 0 and less than the current size of this MimeTypes collection.

This method is identical in functionality to the set(index, element) method. Note that the set method reverses the order of the parameters to more closely match array usage. Note also that the set method returns the old value that was stored at the specified position.

Also, this method is identical in functionality to the Vector.set(index, element) method, except this method checks that this instance of the passed-in object is of type String and throws an IllegalArgumentException if it isn't.

Parameters:
obj - An Object of type String that specifies the MIME type element to be stored at the specified position.

index - The index of the element to replace.

Throws:
java.lang.IllegalArgumentException - Thrown when the specified element is not a String.

java.lang.ArrayIndexOutOfBoundsException - Thrown when the index is out of range (index < 0 || index > size()).

FileNet Content Services
Java Connector v3.0