View Javadoc
1   /*
2     (C) Copyright IBM Corp. 2006, 2009
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   * 1660756    2007-02-22  ebak         Embedded object support
16   * 1848607    2007-12-11  ebak         Strict EmbeddedObject types
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   */
20  
21  package org.metricshub.wbem.sblim.cimclient.internal.cimxml.sax;
22  
23  /*-
24   * ╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲
25   * WBEM Java Client
26   * ჻჻჻჻჻჻
27   * Copyright 2023 - 2025 MetricsHub
28   * ჻჻჻჻჻჻
29   * Licensed under the Apache License, Version 2.0 (the "License");
30   * you may not use this file except in compliance with the License.
31   * You may obtain a copy of the License at
32   *
33   *      http://www.apache.org/licenses/LICENSE-2.0
34   *
35   * Unless required by applicable law or agreed to in writing, software
36   * distributed under the License is distributed on an "AS IS" BASIS,
37   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
38   * See the License for the specific language governing permissions and
39   * limitations under the License.
40   * ╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱╲╱
41   */
42  
43  import org.metricshub.wbem.javax.cim.CIMObjectPath;
44  import org.metricshub.wbem.sblim.cimclient.internal.util.WBEMConfiguration;
45  
46  /**
47   * This class is intended to store variables which are common for a whole
48   * CIM-XML SAX parsing session.
49   */
50  public class SAXSession {
51  	private CIMObjectPath iDefLocalPath;
52  
53  	private boolean iStrictEmbObjParsing = WBEMConfiguration.getGlobalConfiguration().strictEmbObjTypes();
54  
55  	/**
56  	 * Ctor.
57  	 *
58  	 * @param pDefLocalPath
59  	 */
60  	public SAXSession(CIMObjectPath pDefLocalPath) {
61  		this.iDefLocalPath = pDefLocalPath;
62  	}
63  
64  	/**
65  	 * getDefLocalPath
66  	 *
67  	 * @return CIMObjectPath
68  	 */
69  	public CIMObjectPath getDefLocalPath() {
70  		return this.iDefLocalPath;
71  	}
72  
73  	/**
74  	 * strictEmbObjParsing
75  	 *
76  	 * @return boolean
77  	 */
78  	public boolean strictEmbObjParsing() {
79  		return this.iStrictEmbObjParsing;
80  	}
81  }