From b1188f3353600f3a0e50900fae229ad074a447c9 Mon Sep 17 00:00:00 2001 From: Richard Millet Date: Thu, 9 Apr 2009 02:46:20 +0000 Subject: [PATCH] Adding constants for schema element strings to avoid hardcoded values. --- .../services/CollectionObjectJAXBSchema.java | 21 +++++++++++++++++++ .../CollectionObjectListItemJAXBSchema.java | 7 +++++++ 2 files changed, 28 insertions(+) create mode 100644 HelloWorld/HelloWorldJaxb/src/main/java/org/collectionspace/hello/services/CollectionObjectJAXBSchema.java create mode 100644 HelloWorld/HelloWorldJaxb/src/main/java/org/collectionspace/hello/services/CollectionObjectListItemJAXBSchema.java diff --git a/HelloWorld/HelloWorldJaxb/src/main/java/org/collectionspace/hello/services/CollectionObjectJAXBSchema.java b/HelloWorld/HelloWorldJaxb/src/main/java/org/collectionspace/hello/services/CollectionObjectJAXBSchema.java new file mode 100644 index 000000000..8484bdb15 --- /dev/null +++ b/HelloWorld/HelloWorldJaxb/src/main/java/org/collectionspace/hello/services/CollectionObjectJAXBSchema.java @@ -0,0 +1,21 @@ +/** + * + */ +package org.collectionspace.hello.services; + +/** + * @author remillet + * + */ +public interface CollectionObjectJAXBSchema { + final static String OBJECT_NUMBER = "objectNumber"; + final static String OTHER_NUMBER = "otherNumber"; + final static String BRIEF_DESCRIPTION = "briefDescription"; + final static String COMMENTS = "comments"; + final static String DIST_FEATURES = "distFeatures"; + final static String OBJECT_NAME = "objectName"; + final static String RESPONSIBLE_DEPT = "responsibleDept"; + final static String TITLE = "title"; +} + + diff --git a/HelloWorld/HelloWorldJaxb/src/main/java/org/collectionspace/hello/services/CollectionObjectListItemJAXBSchema.java b/HelloWorld/HelloWorldJaxb/src/main/java/org/collectionspace/hello/services/CollectionObjectListItemJAXBSchema.java new file mode 100644 index 000000000..c3aa8a577 --- /dev/null +++ b/HelloWorld/HelloWorldJaxb/src/main/java/org/collectionspace/hello/services/CollectionObjectListItemJAXBSchema.java @@ -0,0 +1,7 @@ +package org.collectionspace.hello.services; + +public interface CollectionObjectListItemJAXBSchema { + final static String OBJECT_NUMBER = "objectNumber"; + final static String CSID = "csid"; + final static String URI = "url"; +} -- 2.47.3