|
Ontimize Document Management 0.032EN | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Document
| Field Summary | |
|---|---|
static java.lang.String |
BASE
|
static char |
BLANK
|
static java.lang.String |
CHILDREN
|
static char |
COMMA
|
static java.lang.String |
CONTENT
|
static java.lang.String |
DATE_INSERT
|
static java.lang.String |
DATE_UPDATE
|
static java.lang.String |
DEEP
|
static java.lang.String |
DESCRIPTION
|
static java.lang.String |
DOCUMENT
|
static java.lang.String |
FIELDS
|
static java.lang.String |
FILE
|
static java.lang.String |
LENGTH
|
static java.lang.String |
LINK
|
static java.lang.String |
LINK_TARGET
|
static int |
MAX_LENGTH
|
static int |
MAX_NUMBER
|
static java.lang.String |
NAME
|
static java.lang.String |
NODE_STATUS
|
static java.lang.String |
NODE_STATUS_DATE
|
static java.lang.String |
NODE_STATUS_USER
|
static java.lang.String |
PATH
|
static char |
POINT
|
static java.lang.String |
SEPARATOR_ASTERISK
|
static java.lang.String |
SEPARATOR_BLANK
|
static java.lang.String |
SEPARATOR_FILE
|
static java.lang.String |
SEPARATOR_PATH
|
static java.lang.String |
SEPARATOR_VERSION
|
static java.lang.String |
STREAM
|
static java.lang.String |
STREAM_VERSION
|
static java.lang.String |
THUMBNAIL
|
static java.lang.String |
TITLE
|
static java.lang.String |
TYPE
|
static java.lang.String |
TYPE_BASE
|
static java.lang.String |
TYPE_DIR
|
static java.lang.String |
TYPE_FILE
|
static java.lang.String |
TYPE_KEYS
|
static java.lang.String |
TYPE_LINK
|
static java.lang.String |
USER_INSERT
|
static java.lang.String |
USER_UPDATE
|
| Method Summary | |
|---|---|
DocumentList |
create(java.io.File[] files)
Creates a Document list from the given files. |
Document |
deepClone()
Creates a internal clone |
int |
depth()
|
Document |
flatten()
Create a Document with path, name and filename. |
java.io.File |
getAttachedFile()
Returns the attached file to this document. |
java.util.Map |
getAttachedInfo()
|
Document |
getAttachedLink()
|
java.lang.String |
getBase()
Document base string. |
java.io.File |
getCanonicalFile(java.io.File source)
Returns the file from the given source. |
java.io.File |
getCanonicalFile(java.lang.String source)
Returns the file from the given source. |
java.lang.String |
getCanonicalPath()
|
java.lang.String |
getCanonicalPath(java.lang.Number version)
Returns the complete internal path document |
java.lang.String |
getCanonicalPath(java.lang.String keys)
|
java.lang.String |
getExtension()
|
java.lang.String |
getFile()
|
java.lang.String |
getInternalPath()
|
java.util.Map |
getMap()
|
java.lang.String |
getName()
|
Document |
getParent()
|
java.lang.String |
getPath()
|
java.lang.String |
getPath(java.lang.String keys)
|
java.lang.String |
getRelativePath()
Returns the internal path without the base. |
boolean |
hasFile()
|
boolean |
isEmpty()
Check if any field is empty. |
boolean |
isLeaf()
Returns true if this document is a ending node. |
boolean |
isLink()
|
boolean |
isNull()
If the current document path is null. |
int |
length()
Returns the base + path + name length. |
Document |
plain()
|
void |
setAttachedInfo(java.util.Map info)
|
void |
setAttachmentFile(java.io.File attachment)
|
void |
setBase(java.lang.String base)
|
void |
setFile(java.lang.String file)
|
void |
setKeys(java.lang.String keys)
|
void |
setLink(Document link)
|
void |
setName(java.lang.String name)
|
boolean |
startsWith(Document d)
|
boolean |
startsWith(Document d,
int level)
|
boolean |
startsWith(java.lang.String string)
|
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
static final java.lang.String DOCUMENT
static final java.lang.String FIELDS
static final java.lang.String CHILDREN
static final java.lang.String DEEP
static final java.lang.String BASE
static final java.lang.String PATH
static final java.lang.String NAME
static final java.lang.String FILE
static final java.lang.String LINK
static final java.lang.String LINK_TARGET
static final java.lang.String TITLE
static final java.lang.String DESCRIPTION
static final java.lang.String THUMBNAIL
static final java.lang.String CONTENT
static final java.lang.String TYPE
static final java.lang.String LENGTH
static final java.lang.String USER_INSERT
static final java.lang.String DATE_INSERT
static final java.lang.String USER_UPDATE
static final java.lang.String DATE_UPDATE
static final java.lang.String NODE_STATUS
static final java.lang.String NODE_STATUS_USER
static final java.lang.String NODE_STATUS_DATE
static final java.lang.String STREAM
static final java.lang.String STREAM_VERSION
static final java.lang.String TYPE_BASE
static final java.lang.String TYPE_KEYS
static final java.lang.String TYPE_FILE
static final java.lang.String TYPE_LINK
static final java.lang.String TYPE_DIR
static final java.lang.String SEPARATOR_BLANK
static final java.lang.String SEPARATOR_PATH
static final java.lang.String SEPARATOR_FILE
static final java.lang.String SEPARATOR_VERSION
static final java.lang.String SEPARATOR_ASTERISK
static final char COMMA
static final char BLANK
static final char POINT
static final int MAX_LENGTH
static final int MAX_NUMBER
| Method Detail |
|---|
java.lang.String getBase()
Document base string. Can't be null.
java.lang.String getPath()
java.lang.String getPath(java.lang.String keys)
java.lang.String getInternalPath()
java.lang.String getName()
java.lang.String getFile()
java.lang.String getExtension()
Document getParent()
java.lang.String getRelativePath()
Returns the internal path without the base.
java.lang.String getCanonicalPath()
java.lang.String getCanonicalPath(java.lang.String keys)
java.lang.String getCanonicalPath(java.lang.Number version)
Returns the complete internal path document
version - Version number.
java.io.File getCanonicalFile(java.lang.String source)
Returns the file from the given source.
source - Source path.
java.io.File getCanonicalFile(java.io.File source)
Returns the file from the given source.
source - File directory
java.io.File getAttachedFile()
Returns the attached file to this document.
Additional Document information. Not required.
Document getAttachedLink()
java.util.Map getAttachedInfo()
java.util.Map getMap()
Document flatten()
Create a Document with path, name and filename.
Document plain()
DocumentList create(java.io.File[] files)
Creates a Document list from the given files.
Recursive.
Current document is the base path.
files - File array to create a Document list.
Null if the directory listing is not valid.
void setBase(java.lang.String base)
void setKeys(java.lang.String keys)
void setName(java.lang.String name)
void setFile(java.lang.String file)
void setLink(Document link)
void setAttachmentFile(java.io.File attachment)
void setAttachedInfo(java.util.Map info)
boolean isNull()
If the current document path is null.
boolean isEmpty()
Check if any field is empty.
boolean isLeaf()
Returns true if this document is a ending node.
boolean isLink()
boolean hasFile()
boolean startsWith(java.lang.String string)
boolean startsWith(Document d)
boolean startsWith(Document d,
int level)
int length()
Returns the base + path + name length.
int depth()
Document deepClone()
Creates a internal clone
|
Ontimize Document Management | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||