|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.fc.WTObject
wt.enterprise.RevisionControlled
wt.doc.WTDocument
public class WTDocument
The reference implementation of a DocumentVersion. It can be checked in and out, revised and holds content (one or more files). A document is visually recognized by an icon that represents the type of file content it contains. Each particular iteration and version of a document may have a different title, description and department. In order to provide for possible table partitioning of WTDocument data based on the type of document, the type field from WTDocumentMaster is duplicated in the WTDocument. Programmatic controls don't allow changing the document type once the document has been saved in the database. The type is constant for all versions. If WTDocument is extended to provide explicit java classes for new kinds of documents, then corresponding entries should be added DocumentTypeRB and the constructor methods implemented so that the java class carefully controls the docType property of the object .
Use the newWTDocument static factory method(s), not the
WTDocument constructor, to construct instances of this class.
Instances must be constructed using the static factory(s), in order
to ensure proper initialization of the instance.
Supported API: true
Extendable: true
WTDocumentMaster,
DocumentType,
Serialized Form| Field Summary | |
|---|---|
static String |
DEPARTMENT
Label for the attribute. |
static String |
DESCRIPTION
Label for the attribute; Some text describing the document or noting important information that should be kept about a document. |
static String |
DOC_TYPE
Label for the attribute. |
static String |
NAME
Label for the attribute. |
static String |
NUMBER
Label for the attribute. |
static String |
TITLE
Label for the attribute; The official title of a document. |
| Fields inherited from class wt.enterprise.RevisionControlled |
|---|
MASTER |
| Fields inherited from interface wt.org.OrganizationOwnedVersion |
|---|
MASTER, MASTER_REFERENCE |
| Fields inherited from interface wt.org.OrganizationOwned |
|---|
ORGANIZATION, ORGANIZATION_CODING_SYSTEM, ORGANIZATION_NAME, ORGANIZATION_UNIQUE_IDENTIFIER |
| Method Summary | |
|---|---|
DepartmentList |
getDepartment()
Gets the object for the association that plays role: DEPARTMENT. |
String |
getDescription()
Gets the value of the attribute: DESCRIPTION. |
DocumentType |
getDocType()
Gets the object for the association that plays role: DOC_TYPE. |
String |
getName()
Gets the value of the attribute: NAME. |
String |
getNumber()
Gets the value of the attribute: NUMBER. |
WTOrganization |
getOrganization()
Gets the value of the attribute: ORGANIZATION. |
String |
getOrganizationCodingSystem()
Gets the value of the attribute: ORGANIZATION_CODING_SYSTEM. |
String |
getOrganizationName()
Gets the value of the attribute: ORGANIZATION_NAME. |
String |
getOrganizationUniqueIdentifier()
Gets the value of the attribute: ORGANIZATION_UNIQUE_IDENTIFIER. |
String |
getTitle()
Gets the value of the attribute: TITLE. |
protected void |
initialize(String number,
String name,
DocumentType type)
Supports initialization, following construction of an instance. |
protected void |
initialize(WTDocumentMaster master)
Supports initialization, following construction of an instance. |
static WTDocument |
newWTDocument()
For internal use. |
static WTDocument |
newWTDocument(String number,
String name,
DocumentType type)
Constructs a General Document with the given name and number. |
static WTDocument |
newWTDocument(WTDocumentMaster master)
Create a new Specification Document. |
void |
setDepartment(DepartmentList a_Department)
Sets the object for the association that plays role: DEPARTMENT. |
void |
setDescription(String a_Description)
Sets the value of the attribute: DESCRIPTION. |
void |
setDocType(DocumentType a_DocType)
Sets the object for the association that plays role: DOC_TYPE. |
void |
setName(String a_Name)
Sets the value of the attribute: NAME. |
void |
setNumber(String a_Number)
Sets the value of the attribute: NUMBER. |
void |
setOrganization(WTOrganization a_Organization)
Sets the value of the attribute: ORGANIZATION. |
void |
setTitle(String a_Title)
Sets the value of the attribute: TITLE. |
| Methods inherited from class wt.enterprise.RevisionControlled |
|---|
getControlBranch, getCreatorEMail, getCreatorFullName, getCreatorName, getIterationIdentifier, getIterationNote, getMaster, getMasterReference, getModifier, getModifierEMail, getModifierFullName, getModifierName, isLatestIteration, setControlBranch, setMaster, setMasterReference |
| Methods inherited from class wt.fc.WTObject |
|---|
getDisplayIdentifier, getDisplayIdentity, getDisplayType |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface wt.org.OrganizationOwnedVersion |
|---|
getMaster, getMasterReference |
| Field Detail |
|---|
public static final String TITLE
public static final String DESCRIPTION
public static final String NAME
public static final String NUMBER
public static final String DEPARTMENT
public static final String DOC_TYPE
| Method Detail |
|---|
public String getTitle()
public void setTitle(String a_Title)
throws WTPropertyVetoException
a_Title -
WTPropertyVetoExceptionpublic String getDescription()
public void setDescription(String a_Description)
throws WTPropertyVetoException
a_Description -
WTPropertyVetoExceptionpublic String getName()
public void setName(String a_Name)
throws WTPropertyVetoException
a_Name -
WTPropertyVetoExceptionpublic String getNumber()
public void setNumber(String a_Number)
throws WTPropertyVetoException
a_Number -
WTPropertyVetoExceptionpublic DepartmentList getDepartment()
public void setDepartment(DepartmentList a_Department)
throws WTPropertyVetoException
a_Department -
WTPropertyVetoExceptionpublic DocumentType getDocType()
public void setDocType(DocumentType a_DocType)
throws WTPropertyVetoException
a_DocType -
WTPropertyVetoException
public static WTDocument newWTDocument()
throws WTException
WTException
public static WTDocument newWTDocument(WTDocumentMaster master)
throws WTException
master -
WTException
protected void initialize(WTDocumentMaster master)
throws WTException
master -
WTException
public static WTDocument newWTDocument(String number,
String name,
DocumentType type)
throws WTException
number - name - type -
WTException
protected void initialize(String number,
String name,
DocumentType type)
throws WTException
number - name - type -
WTExceptionpublic String getOrganizationUniqueIdentifier()
getOrganizationUniqueIdentifier in interface OrganizationOwnedpublic String getOrganizationCodingSystem()
getOrganizationCodingSystem in interface OrganizationOwnedpublic String getOrganizationName()
getOrganizationName in interface OrganizationOwnedpublic WTOrganization getOrganization()
getOrganization in interface OrganizationOwned
public void setOrganization(WTOrganization a_Organization)
throws WTPropertyVetoException
a_Organization -
WTPropertyVetoException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||