1 /*
2 (C) Copyright IBM Corp. 2006, 2010
3
4 THIS FILE IS PROVIDED UNDER THE TERMS OF THE ECLIPSE PUBLIC LICENSE
5 ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE
6 CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT.
7
8 You can obtain a current copy of the Eclipse Public License from
9 http://www.opensource.org/licenses/eclipse-1.0.php
10
11 @author : Endre Bak, ebak@de.ibm.com
12 *
13 * Flag Date Prog Description
14 * -------------------------------------------------------------------------------
15 * 1565892 2006-10-06 ebak Make SBLIM client JSR48 compliant
16 * 1737123 2007-06-15 ebak Differences to JSR48 public review draft
17 * 2003590 2008-06-30 blaschke-oss Change licensing from CPL to EPL
18 * 2524131 2009-01-21 raman_arora Upgrade client to JDK 1.5 (Phase 1)
19 * 2935258 2010-01-22 blaschke-oss Sync up javax.cim.* javadoc with JSR48 1.0.0
20 */
21
22 package org.metricshub.wbem.javax.cim;
23
24 /*-
25 * ╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲
26 * WBEM Java Client
27 * ჻჻჻჻჻჻
28 * Copyright 2023 - 2025 MetricsHub
29 * ჻჻჻჻჻჻
30 * Licensed under the Apache License, Version 2.0 (the "License");
31 * you may not use this file except in compliance with the License.
32 * You may obtain a copy of the License at
33 *
34 * http://www.apache.org/licenses/LICENSE-2.0
35 *
36 * Unless required by applicable law or agreed to in writing, software
37 * distributed under the License is distributed on an "AS IS" BASIS,
38 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
39 * See the License for the specific language governing permissions and
40 * limitations under the License.
41 * ╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱
42 */
43
44 import java.io.Serializable;
45
46 //Sync'd against JSR48 1.0.0 javadoc (build 1.5.0_10) on Wed Jan 20 02:20:59 EST 2010
47 /**
48 * This class represents a CIM Scope as defined by the Distributed Management
49 * Task Force (<a href=http://www.dmtf.org>DMTF</a>) CIM Infrastructure
50 * Specification (<a
51 * href=http://www.dmtf.org/standards/published_documents/DSP0004V2.3_final.pdf
52 * >DSP004</a>). This class is used in a <code>CIMQualifierType</code> to define
53 * what elements the qualifier can be applied to.
54 */
55 public class CIMScope implements Serializable {
56 private static final long serialVersionUID = -4563643521754840535l;
57
58 /**
59 * Scope representing a qualifier that can be applied to any element.
60 */
61 public static final int ANY = 127;
62
63 /**
64 * Scope representing a qualifier that can be applied to an association.
65 */
66 public static final int ASSOCIATION = 2;
67
68 /**
69 * Scope representing a qualifier that can be applied to a CIM class.
70 */
71 public static final int CLASS = 1;
72
73 /**
74 * Scope representing a qualifier that can be applied to an indication.
75 */
76 public static final int INDICATION = 4;
77
78 /**
79 * Scope representing a qualifier that can be applied to a method.
80 */
81 public static final int METHOD = 32;
82
83 /**
84 * Scope representing a qualifier that can be applied to a parameter.
85 */
86 public static final int PARAMETER = 64;
87
88 /**
89 * Scope representing a qualifier that can be applied to a property.
90 */
91 public static final int PROPERTY = 8;
92
93 /**
94 * Scope representing a qualifier that can be applied to a reference.
95 */
96 public static final int REFERENCE = 16;
97
98 private static final int[] SCOPES = { ANY, ASSOCIATION, CLASS, INDICATION, METHOD, PARAMETER, PROPERTY, REFERENCE };
99
100 /**
101 * Returns the complete set of possible scopes.
102 *
103 * @return An <code>int</code> array of all scopes.
104 */
105 public static int[] getScopes() {
106 return SCOPES;
107 }
108 }