Clover Coverage Report
Coverage timestamp: Sun Mar 23 2008 08:24:39 GMT
0   135   1   0
0   76   -   1
1     1  
1    
 
 
  XMLTags       Line # 48 0 1 0% 0.0
 
No Tests
 
1    /*
2    * Copyright (c) 2000-2005, University of Salford
3    * All rights reserved.
4    *
5    * Redistribution and use in source and binary forms, with or without
6    * modification, are permitted provided that the following conditions are met:
7    *
8    * Redistributions of source code must retain the above copyright notice, this
9    * list of conditions and the following disclaimer.
10    *
11    * Redistributions in binary form must reproduce the above copyright notice,
12    * this list of conditions and the following disclaimer in the documentation
13    * and/or other materials provided with the distribution.
14    *
15    * Neither the name of the University of Salford nor the names of its
16    * contributors may be used to endorse or promote products derived from this
17    * software without specific prior written permission.
18    *
19    * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20    * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21    * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22    * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
23    * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24    * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25    * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26    * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27    * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28    * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29    * POSSIBILITY OF SUCH DAMAGE.
30    */
31   
32    package issrg.pba.rbac.xmlpolicy;
33   
34    /**
35    * This class contains the names of the XML tags the XMLParser looks for. The
36    * tag names are defined here as final static strings, so any reference to
37    * the name of a tag will always refer to the same string in any class.
38    *
39    * <p>The names of the constants seem to be self-explanatory. The constants
40    * with _NODE suffix mean XML node names, and the rest of the name explains
41    * what node it names. The constants with _ATTRIBUTE suffix mean XML attribute
42    * names, and the rest of the name explains what attribute it names.
43    *
44    * @author A Otenko
45    * @version 1.0
46    */
47   
 
48    public class XMLTags {
49    public static final String ABSOLUTE_NODE = new String("Absolute").intern();
50    public final static String ACTION_NODE = new String("Action").intern(); // the strings are .intern() for the purpose of quick comparison: do not have to call .equals() method, just use == operator
51    public static final String ACTION_POLICY_NODE = new String("ActionPolicy").intern();
52    public static final String AGE_NODE = new String("Age").intern();
53    public static final String DELEGATE_NODE = new String("Delegate").intern();
54    public static final String EXCLUDE_NODE = new String("Exclude").intern();
55    public static final String IF_NODE = new String("IF").intern();
56    public static final String INCLUDE_NODE = new String("Include").intern();
57    public static final String MAXIMUM_NODE = new String("Maximum").intern();
58    public static final String MINIMUM_NODE = new String("Minimum").intern();
59    public static final String OBJECT_CLASS_NODE = new String("ObjectClass").intern();
60    public static final String REPOSITORY_NODE = new String("Repository").intern();
61    public static final String REPOSITORY_POLICY_NODE = new String("RepositoryPolicy").intern();
62    public static final String ROLE_ASSIGNMENT_NODE = new String("RoleAssignment").intern();
63    public static final String ROLE_ASSIGNMENT_POLICY_NODE = new String("RoleAssignmentPolicy").intern();
64    public static final String ROLE_NODE = new String("Role").intern();
65    public static final String ROLE_HIERARCHY_POLICY_NODE = new String("RoleHierarchyPolicy").intern();
66    public static final String ROLE_LIST_NODE = new String("RoleList").intern();
67    public static final String ROLE_SPEC_NODE = new String("RoleSpec").intern();
68    public static final String SOA_NODE = new String("SOA").intern();
69    public static final String SOA_POLICY_NODE = new String("SOAPolicy").intern();
70    public static final String SOA_SPEC_NODE = new String("SOASpec").intern();
71    public static final String SUBJECT_DOMAIN_NODE = new String("SubjectDomain").intern();
72    public static final String SUBJECT_PREFIX = new String("Subject").intern();
73    public static final String SUB_ROLE_NODE = new String("SubRole").intern();
74    public static final String SUP_ROLE_NODE = new String("SupRole").intern();
75    public static final String SUBJECT_DOMAIN_SPEC_NODE = new String("SubjectDomainSpec").intern();
76    public static final String SUBJECT_POLICY_NODE = new String("SubjectPolicy").intern();
77    public static final String TARGET_NODE = new String("Target").intern();
78    public static final String TARGET_ACCESS_NODE = new String("TargetAccess").intern();
79    public static final String TARGET_ACCESS_POLICY_NODE = new String("TargetAccessPolicy").intern();
80    public static final String TARGET_DOMAIN_NODE = new String("TargetDomain").intern();
81    public static final String TARGET_LIST_NODE = new String("TargetList").intern();
82    public static final String TARGET_NAME_NODE = new String("TargetName").intern();
83    public static final String TARGET_POLICY_NODE = new String("TargetPolicy").intern();
84    public static final String TARGET_DOMAIN_SPEC_NODE = new String("TargetDomainSpec").intern();
85    public static final String TARGET_PREFIX = new String("Target").intern();
86    public static final String VALIDITY_NODE = new String("Validity").intern();
87    public static final String X_509_PMI_RBAC_POLICY_NODE = new String("X.509_PMI_RBAC_Policy").intern();
88    public static final String ROLE_MAPPING_POLICY_NODE = "RoleMappingPolicy".intern();
89    public static final String TARGET_ACCESS_MAPPING_POLICY_NODE = "TargetAccessMappingPolicy".intern();
90    public static final String MSoD_POLICY_SET_NODE = "MSoDPolicySet".intern(); //added by Wensheng
91    public static final String MSoD_POLICY_NODE = "MSoDPolicy".intern(); //added by Wensheng
92    public static final String MSoD_POLICY_FIRSTSTEP = "FirstStep".intern();
93    public static final String MSoD_POLICY_LASTSTEP = "LastStep".intern();
94   
95    //@Gansen 2006-7-5
96    //Node names for obligations and obligation.
97    public static final String OBLIGATIONS_NODE =new String("Obligations").intern();//@Gansen
98    public static final String OBLIGATION_NODE =new String("Obligation").intern();//@Gansen
99   
100    public static final String OBLIGATION_ID_ATTRIBUTE="ObligationID";
101    public static final String OBLIGATION_CHRONICLE_ATTRIBUTE="Chronicle";
102   
103    //@Gansen 2006-8-7
104    //Name for NULL SOA name.
105    public static final String UNIVERSAL_SOA_LDAPDN=new String("");
106   
107    //@
108   
109    public static final String CONTEXT_NAME = "ContextName".intern();
110   
111   
112    public final static String ACTIONS_ATTRIBUTE = "Actions";
113    public final static String ARGS_ATTRIBUTE = "Args";
114    public static final String DEPTH_ATTRIBUTE = "Depth";
115    public final static String END_ATTRIBUTE="End";
116    public static final String ID_ATTRIBUTE = "ID";
117    public static final String LDAPDN_ATTRIBUTE = "LDAPDN";
118    public static final String MAX_ATTRIBUTE = "Max";
119    public static final String MIN_ATTRIBUTE = "Min";
120    public final static String NAME_ATTRIBUTE = "Name";
121    public final static String OID_ATTRIBUTE="OID";
122    public final static String RETURN_TYPE_ATTRIBUTE = "ReturnType";
123    public final static String TARGET_ATTRIBUTE = "Target";
124    public final static String START_ATTRIBUTE="Start";
125    public final static String TIME_ATTRIBUTE="Time";
126    public final static String TYPE_ATTRIBUTE="Type";
127    public final static String URI_ATTRIBUTE="URI";
128    public final static String URL_ATTRIBUTE="URL";
129    public static final String VALUE_ATTRIBUTE = "Value";
130    public static final String MAPPING_SPEC = "MappingSpec";
131    public static final String HIGHER_ROLE = "HigherRole";
132    public static final String LOWER_ROLE = "LowerRole";
133   
 
134  0 toggle protected XMLTags(){}
135    }