1 /*
2 (C) Copyright IBM Corp. 2006, 2013
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-12-04 ebak Make SBLIM client JSR48 compliant
16 * 1720707 2007-05-17 ebak Conventional Node factory for CIM-XML SAX parser
17 * 1735614 2007-06-12 ebak Wrong ARRAYSIZE attribute handling in SAX/PULL
18 * 1820763 2007-10-29 ebak Supporting the EmbeddedInstance qualifier
19 * 2003590 2008-06-30 blaschke-oss Change licensing from CPL to EPL
20 * 2433593 2008-12-18 rgummada isArray returns true for method parameters of type reference
21 * 2524131 2009-01-21 raman_arora Upgrade client to JDK 1.5 (Phase 1)
22 * 2605 2013-03-20 buccella SAX parser throws wrong exception
23 * 2636 2013-05-08 blaschke-oss Nested embedded instances cause CIMXMLParseException
24 */
25
26 package org.metricshub.wbem.sblim.cimclient.internal.cimxml.sax.node;
27
28 /*-
29 * ╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲
30 * WBEM Java Client
31 * ჻჻჻჻჻჻
32 * Copyright 2023 - 2025 MetricsHub
33 * ჻჻჻჻჻჻
34 * Licensed under the Apache License, Version 2.0 (the "License");
35 * you may not use this file except in compliance with the License.
36 * You may obtain a copy of the License at
37 *
38 * http://www.apache.org/licenses/LICENSE-2.0
39 *
40 * Unless required by applicable law or agreed to in writing, software
41 * distributed under the License is distributed on an "AS IS" BASIS,
42 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
43 * See the License for the specific language governing permissions and
44 * limitations under the License.
45 * ╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱
46 */
47
48 import org.metricshub.wbem.javax.cim.CIMDataType;
49 import org.xml.sax.Attributes;
50 import org.xml.sax.SAXException;
51
52 /**
53 * <pre>
54 * ELEMENT PARAMETER.REFARRAY (QUALIFIER*)
55 * ATTLIST PARAMETER.REFARRAY
56 * %CIMName;
57 * %ReferenceClass;
58 * %ArraySize;
59 * </pre>
60 */
61 public class ParameterRefArrayNode extends AbstractParameterNode {
62 private CIMDataType iType;
63
64 /**
65 * Ctor.
66 */
67 public ParameterRefArrayNode() {
68 super(PARAMETER_REFARRAY);
69 }
70
71 @Override
72 protected void specificInit(Attributes pAttribs) throws SAXException {
73 String refClass = getReferenceClass(pAttribs);
74 this.iType = new CIMDataType(refClass != null ? refClass : "", getArraySize(pAttribs));
75 }
76
77 @Override
78 public void testCompletness() {
79 /* */
80 }
81
82 public CIMDataType getType() {
83 return this.iType;
84 }
85 }