View Javadoc

1   package coras.interchange;
2   
3   import org.xml.sax.Attributes;
4   import org.xml.sax.helpers.AttributesImpl;
5   
6   public class Constants {
7   
8   	// common
9   	protected static final String UML_MODEL_TYPE = "UML Model"; // with lowercase 'm' in V1
10      protected static final String IMAGE_TYPE = "Image";
11      protected static final String TABLE_TYPE = "Table";
12      protected static final String BINARY_FORMAT = "Binary";
13      protected static final String XML_FORMAT = "XML";
14      protected static final String FORMAT_ATTR = "format";
15      protected static final String CONTENT_ELEM = "content";
16      protected static final String REPRESENTATION_ELEM = "representation";
17      protected static final String REPRESENTATIONS_ELEM = "representations";
18      protected static final String VIEWPOINT_ELEM = "viewpoint";
19      protected static final String VIEWPOINTS_ELEM = "viewpoints";
20      protected static final String CONCERN_ELEM = "concern";
21      protected static final String SUBTYPE_ATTR = "subtype";
22      protected static final String TYPE_ATTR = "type";
23  	protected static final String EXPERIENCE_PACKAGE_ELEM = "experience-package";
24      protected static final String RISK_ANALYSIS_PROJECT_ELEM = "risk-analysis-project";
25      protected static final String RISK_ANALYSIS_RESULT_ELEM = "risk-analysis-result";
26  	protected static final String RISK_ASSESSMENT_PACKAGE_ELEM = "risk-assessment-package";
27      protected static final String RISK_ASSESSMENT_RESULT_ELEM = "risk-assessment-result";
28      protected static final String DOMAIN_ELEM = "domain";
29      protected static final String METADATA_ELEM = "metadata";
30      protected static final String NAME_ATTR = "name";
31      protected static final String FINALISED_ATTR = "finalised";
32      protected static final String CATEGORY_ATTR = "category";
33      protected static final String BACKUPDATE_ATTR = "backupdate";
34  
35      // v1 specific
36      protected static final String REFERENCE_ATTR = "reference";
37      protected static final String DESCRIPTION_ELEM = "description";
38      protected static final String REUSABLE_ELEMENT_ELEM = "reusable-element";
39      protected static final String EXTERNAL_DOCUMENT_TYPE = "External document";
40      
41      // v2 specific
42      protected static final String ID_ATTR = "id";
43      protected static final String FULL_DESCRIPTION_ELEM = "full-description";
44      protected static final String SHORT_DESCRIPTION_ELEM = "short-description";
45      protected static final String EXPERIENCE_ELEM = "experience";
46      protected static final String DOCUMENT_TYPE = "Document";
47  
48      protected static final String CORAS_V1_NAMESPACE_URI = "http://www.ifi.uio.no/~ketils/coras";
49      protected static final String CORAS_V2_NAMESPACE_URI = "http://coras.sourceforge.net/schemas/coras-interchange-1_0.xsd";
50      protected static final String PREFIX = "ci";
51      protected static final String CDATA_TYPE = "CDATA";
52      protected static final Attributes EMPTY_ATTRIBUTES = new AttributesImpl();
53  
54  }