|
FileNet Content Services Java Connector v3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
java.util.Vector
com.filenet.wcm.api.MimeTypes
Not Applicable in CS Java Connector v3.0.
TheMimeTypes
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
).
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 |
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.
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.
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.
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.
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.
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).
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.
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).
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.
Constructor Detail |
public MimeTypes()
Not Applicable in CS Java Connector v3.0.
Creates an emptyMimeTypes
collection.
public MimeTypes(MimeTypes copy)
Not Applicable in CS Java Connector v3.0.
Creates aMimeTypes
collection containing the elements of the specified
MimeTypes
collection.
public MimeTypes(java.lang.String mimeType)
Not Applicable in CS Java Connector v3.0.
Creates aMimeTypes
collection containing the specified MIME type
element.
Method Detail |
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 thisMimeTypes
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.
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.
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()).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 thisMimeTypes
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.
o
- An Object of type String that specifies the MIME type element
to append to this MimeTypes
collection.
java.lang.IllegalArgumentException
- Thrown when the specified
element is not a String.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 thisMimeTypes
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.
c
- A Collection of Strings that specifies the MIME type elements
to be inserted into this MimeTypes
collection.
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()).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 thisMimeTypes
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.
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.
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()).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 thisMimeTypes
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.
obj
- An Object of type String that specifies the MIME type element
to append to this MimeTypes
collection.
java.lang.IllegalArgumentException
- Thrown when the specified
element is not a String.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 thisMimeTypes
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.
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.
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()).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 thisMimeTypes
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.
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.
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()).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 thisMimeTypes
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.
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.
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 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |