|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<DirectDocumentType>
org.nhindirect.xd.common.type.DirectDocumentType
public enum DirectDocumentType
Enumeration of document types. Order of enumerations is important, and should go from most specific to least specific.
| Enum Constant Summary | |
|---|---|
CCD
|
|
HTML
|
|
PDF
|
|
TEXT
|
|
UNKNOWN
|
|
XDM
|
|
XML
|
|
| Method Summary | |
|---|---|
FormatCodeEnum |
getFormatCode()
Return the value of formatCode. |
MimeType |
getMimeType()
Return the value of mimeType. |
static DirectDocumentType |
lookup(javax.mail.BodyPart bodyPart)
Lookup and return the DirectDocumentType which most closely matches the provided BodyPart. |
static DirectDocumentType |
lookup(javax.mail.internet.MimeMessage mimeMessage)
Lookup and return the DirectDocumentType which most closely matches the provided MimeMessage. |
boolean |
matches(javax.mail.BodyPart bodyPart)
Check to see if the BodyPart matches the current DirectDocumentType. |
boolean |
matches(javax.mail.internet.MimeMessage mimeMessage)
Check to see if the MimeMessage matches the current DirectDocumentType. |
boolean |
matches(String data,
String contentType,
String fileName)
Check to see if the BodyPart matches the provided params. |
void |
parse(String data,
DirectDocument2.Metadata metadata)
Parse the document for additional metadata values. |
void |
parse(String data,
DirectDocuments.SubmissionSet submissionSet)
Parse the document for additional submissionSet values. |
static DirectDocumentType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static DirectDocumentType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final DirectDocumentType CCD
public static final DirectDocumentType XDM
public static final DirectDocumentType PDF
public static final DirectDocumentType XML
public static final DirectDocumentType HTML
public static final DirectDocumentType TEXT
public static final DirectDocumentType UNKNOWN
| Method Detail |
|---|
public static DirectDocumentType[] values()
for (DirectDocumentType c : DirectDocumentType.values()) System.out.println(c);
public static DirectDocumentType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
public boolean matches(javax.mail.internet.MimeMessage mimeMessage)
throws javax.mail.MessagingException,
IOException
mimeMessage - The MimeMessage object to compare against the current
DirectDocumentType.
javax.mail.MessagingException
IOException
public boolean matches(javax.mail.BodyPart bodyPart)
throws javax.mail.MessagingException,
IOException
bodyPart - The BodyPart object to compare against the current
DirectDocumentType.
javax.mail.MessagingException
IOException
public boolean matches(String data,
String contentType,
String fileName)
data - The document contents.contentType - The document content type.fileName - The document file name.
public void parse(String data,
DirectDocuments.SubmissionSet submissionSet)
throws Exception
data - The document data.submissionSet - The submissionSet object to populate.
Exception
public void parse(String data,
DirectDocument2.Metadata metadata)
throws Exception
data - The document data.metadata - The metadata object to populate.
Exception
public static DirectDocumentType lookup(javax.mail.internet.MimeMessage mimeMessage)
throws javax.mail.MessagingException,
IOException
mimeMessage - The MimeMessage to match up with a DirectDocumentType.
javax.mail.MessagingException
IOException
public static DirectDocumentType lookup(javax.mail.BodyPart bodyPart)
throws javax.mail.MessagingException,
IOException
bodyPart - The BodyPart to match up with a directDocumentType.
javax.mail.MessagingException
IOExceptionpublic FormatCodeEnum getFormatCode()
public MimeType getMimeType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||