public enum DirectDocumentType extends Enum<DirectDocumentType>
| Enum Constant and Description |
|---|
CCD |
HTML |
PDF |
TEXT |
UNKNOWN |
XDM |
XML |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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
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 nameNullPointerException - if the argument is nullpublic boolean matches(javax.mail.internet.MimeMessage mimeMessage)
throws javax.mail.MessagingException,
IOException
mimeMessage - The MimeMessage object to compare against the current
DirectDocumentType.javax.mail.MessagingExceptionIOExceptionpublic boolean matches(javax.mail.BodyPart bodyPart)
throws javax.mail.MessagingException,
IOException
bodyPart - The BodyPart object to compare against the current
DirectDocumentType.javax.mail.MessagingExceptionIOExceptionpublic 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.Exceptionpublic void parse(String data, DirectDocument2.Metadata metadata) throws Exception
data - The document data.metadata - The metadata object to populate.Exceptionpublic static DirectDocumentType lookup(javax.mail.internet.MimeMessage mimeMessage) throws javax.mail.MessagingException, IOException
mimeMessage - The MimeMessage to match up with a DirectDocumentType.javax.mail.MessagingExceptionIOExceptionpublic static DirectDocumentType lookup(javax.mail.BodyPart bodyPart) throws javax.mail.MessagingException, IOException
bodyPart - The BodyPart to match up with a directDocumentType.javax.mail.MessagingExceptionIOExceptionpublic FormatCodeEnum getFormatCode()
public MimeType getMimeType()
Copyright © 2010–2025. All rights reserved.