From: Richard Millet Date: Thu, 30 Jul 2009 06:56:51 +0000 (+0000) Subject: CSPACE-269: Adding XML Schema constants for relation entity. Note: might belong... X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=667ebe4535a8532226d88326920e8817f3d7d172;p=tmp%2Fjakarta-migration.git CSPACE-269: Adding XML Schema constants for relation entity. Note: might belong in 'common' --- diff --git a/services/common/src/main/java/org/collectionspace/services/RelationJAXBSchema.java b/services/common/src/main/java/org/collectionspace/services/RelationJAXBSchema.java new file mode 100644 index 000000000..215aa46c2 --- /dev/null +++ b/services/common/src/main/java/org/collectionspace/services/RelationJAXBSchema.java @@ -0,0 +1,26 @@ +/** + * + */ +package org.collectionspace.services; + +/** + * @author remillet + * + */ +public interface RelationJAXBSchema { + + // The Nuxeo root element name for the relation entity. + final static String REL_ROOT_ELEM_NAME = "relationtype"; + // Need to fix conflict between the Nuxeo XSD and the JAX-B XSD for the "relation" entity + + final static String DOCUMENT_ID_1 = "documentId1"; + final static String DOCUMENT_TYPE_1 = "documentType1"; + final static String DOCUMENT_ID_2 = "documentId2"; + final static String DOCUMENT_TYPE_2 = "documentType2"; + final static String RELATIONSHIP_TYPE = "relationshipType"; + + final static String ENUM_RELATIONSHIP_TYPE_ASSOC = "association"; + final static String ENUM_RELATIONSHIP_TYPE_CONTAINS = "contains"; +} + +