|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.stardust.engine.core.runtime.beans.DocumentTypeUtils
public final class DocumentTypeUtils
| Method Summary | |
|---|---|
static List<Data> |
getDataUsingDocumentType(DeployedModel model,
DocumentType documentType)
Retrieves Document and DocumentList data from the given model which uses the type definition defined by the given DocumentType. |
static List<DocumentType> |
getDeclaredDocumentTypes(Model model)
Creates DocumentType objects based on the Document and DocumentList data having a TypeDeclaration assigned in the given model. |
static List<DocumentType> |
getDeclaredDocumentTypes(Model model,
Map<Integer,Model> referenceModels)
Creates DocumentType objects based on the Document and DocumentList data having a TypeDeclaration assigned in the given model. |
static DocumentType |
getDocumentType(String typeDeclarationId,
Model model)
|
static DocumentType |
getDocumentTypeFromData(Model model,
Data data)
Retrieves the DocumentType used in the specified data. |
static Set<DocumentType> |
getDocumentTypesFromData(Model model,
List<Data> dataList)
Retrieves the DocumentTypes used in the specified data. |
static String |
getMetaDataTypeDeclarationId(Data data)
|
static List<Data> |
getReferencedDocumentData(DeployedModel model)
Retrieves data which are of type Document or DocumentList and having a Reference to an external TypeDefinition or data which is externally defined itself. |
static String |
getUnversionedInfoPath(String documentTypeId)
This folder hosts version unspecific settings for all Document Types of a particular Document Type ID |
static String |
getVersionedInfoPath(String documentTypeId,
String schemaLocation)
This folder hosts version specific settings for a particular Document Type with the specified Document Type Schema Location |
static String |
getXsdDocumentName()
The document name all xsd schemas are stored and retrieved with. |
static String |
getXsdDocumentPath(String schemaLocation)
|
static String |
getXsdFolderPath(String schemaLocation)
|
static DocumentType |
inferDocumentType(org.eclipse.stardust.engine.api.model.IData data)
For internal use only. |
static DocumentType |
inferDocumentTypeAndStoreDocument(org.eclipse.stardust.engine.api.model.IData data,
Document document,
DocumentManagementService dms)
For internal use only. |
static boolean |
isDmsDocumentData(String dataTypeId)
|
static boolean |
isValidForDeployment(DocumentInfo documentInfo)
for internal use Checks if the xsd referenced by DocumentType.getSchemaLocation exists in the repository. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean isValidForDeployment(DocumentInfo documentInfo)
documentInfo -
true for valid document typespublic static DocumentType inferDocumentType(org.eclipse.stardust.engine.api.model.IData data)
data -
public static DocumentType inferDocumentTypeAndStoreDocument(org.eclipse.stardust.engine.api.model.IData data,
Document document,
DocumentManagementService dms)
data - document - dms -
org.eclipse.stardust.common.error.InvalidValueException - if a incompatible document type is set on the document.
public static DocumentType getDocumentType(String typeDeclarationId,
Model model)
public static boolean isDmsDocumentData(String dataTypeId)
public static String getMetaDataTypeDeclarationId(Data data)
public static List<DocumentType> getDeclaredDocumentTypes(Model model)
model - The model to search for declared DocumenTypes.
getDeclaredDocumentTypes(Model, Map)
public static List<DocumentType> getDeclaredDocumentTypes(Model model,
Map<Integer,Model> referenceModels)
model - The model to search for declared DocumenTypes.referenceModels - A map of models by modelOID. It should contain all models which could be referenced by the specified model.
public static List<Data> getReferencedDocumentData(DeployedModel model)
model - The model to search for data referencing DocumentTypes.
public static List<Data> getDataUsingDocumentType(DeployedModel model,
DocumentType documentType)
model - The model containing the data and type definitions.documentType - The documentType to retrieve matching data for. If documentType is null
data not having a documentType assigned are returned.
public static Set<DocumentType> getDocumentTypesFromData(Model model,
List<Data> dataList)
model - dataList -
DocumentType's of the data's
public static DocumentType getDocumentTypeFromData(Model model,
Data data)
model - data -
DocumentType of the datapublic static String getUnversionedInfoPath(String documentTypeId)
documentTypeId -
public static String getVersionedInfoPath(String documentTypeId,
String schemaLocation)
documentTypeId - schemaLocation -
public static String getXsdDocumentName()
public static String getXsdDocumentPath(String schemaLocation)
schemaLocation -
public static String getXsdFolderPath(String schemaLocation)
schemaLocation -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||