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 * 2763216 2009-04-14 blaschke-oss Code cleanup: visible spelling/grammar errors
20 * 2935258 2010-01-22 blaschke-oss Sync up javax.cim.* javadoc with JSR48 1.0.0
21 */
22
23 package org.metricshub.wbem.javax.cim;
24
25 /*-
26 * ╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲
27 * WBEM Java Client
28 * ჻჻჻჻჻჻
29 * Copyright 2023 - 2025 MetricsHub
30 * ჻჻჻჻჻჻
31 * Licensed under the Apache License, Version 2.0 (the "License");
32 * you may not use this file except in compliance with the License.
33 * You may obtain a copy of the License at
34 *
35 * http://www.apache.org/licenses/LICENSE-2.0
36 *
37 * Unless required by applicable law or agreed to in writing, software
38 * distributed under the License is distributed on an "AS IS" BASIS,
39 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
40 * See the License for the specific language governing permissions and
41 * limitations under the License.
42 * ╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱
43 */
44
45 import java.io.Serializable;
46
47 //Sync'd against JSR48 1.0.0 javadoc (build 1.5.0_10) on Wed Jan 20 02:20:58 EST 2010
48 /**
49 * This class represents a CIM Flavor as defined by the Distributed Management
50 * Task Force (<a href=http://www.dmtf.org>DMTF</a>) CIM Infrastructure
51 * Specification (<a
52 * href=http://www.dmtf.org/standards/published_documents/DSP0004V2.3_final.pdf
53 * >DSP004</a>). CIM flavors specify overriding and inheritance rules. These
54 * rules specify how qualifiers are transmitted from classes to derived classes.
55 */
56 public class CIMFlavor implements Serializable {
57 private static final long serialVersionUID = -4177389103635687939l;
58
59 /**
60 * The qualifier cannot be overridden.
61 */
62 public static final int DISABLEOVERRIDE = 1;
63
64 /**
65 * The qualifier applies only to the class in which it is declared.
66 */
67 public static final int RESTRICTED = 2;
68
69 /**
70 * The qualifier can be specified in multiple locales (language and country
71 * combination).
72 */
73 public static final int TRANSLATE = 4;
74
75 private static final int[] flavors = { DISABLEOVERRIDE, RESTRICTED, TRANSLATE };
76
77 /**
78 * Returns an array of possible flavors.
79 *
80 * @return All possible flavors.
81 */
82 public static int[] getFlavors() {
83 return flavors;
84 }
85 }