1 /*
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
3 * @LastModified: Oct 2017
4 */
5 /*
6 * Licensed to the Apache Software Foundation (ASF) under one or more
7 * contributor license agreements. See the NOTICE file distributed with
8 * this work for additional information regarding copyright ownership.
9 * The ASF licenses this file to You under the Apache License, Version 2.0
10 * (the "License"); you may not use this file except in compliance with
11 * the License. You may obtain a copy of the License at
12 *
13 * http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 */
21
22 package com.sun.org.apache.xpath.internal.objects;
23
28 import com.sun.org.apache.xml.internal.utils.XMLString;
29 import com.sun.org.apache.xpath.internal.Expression;
30 import com.sun.org.apache.xpath.internal.ExpressionOwner;
31 import com.sun.org.apache.xpath.internal.NodeSetDTM;
32 import com.sun.org.apache.xpath.internal.XPathContext;
33 import com.sun.org.apache.xpath.internal.XPathException;
34 import com.sun.org.apache.xpath.internal.XPathVisitor;
35 import com.sun.org.apache.xpath.internal.res.XPATHErrorResources;
36 import java.io.Serializable;
37 import java.util.List;
38 import org.w3c.dom.DocumentFragment;
39 import org.w3c.dom.NodeList;
40 import org.w3c.dom.traversal.NodeIterator;
41
42 /**
43 * This class represents an XPath object, and is capable of
44 * converting the object to various types, such as a string.
45 * This class acts as the base class to other XPath type objects,
46 * such as XString, and provides polymorphic casting capabilities.
47 * @xsl.usage general
48 */
49 public class XObject extends Expression implements Serializable, Cloneable
50 {
51 static final long serialVersionUID = -821887098985662951L;
52
53 /**
54 * The java object which this object wraps.
55 * @serial
56 */
57 protected Object m_obj; // This may be NULL!!!
58
59 /**
60 * Create an XObject.
61 */
62 public XObject(){}
63
64 /**
65 * Create an XObject.
66 *
67 * @param obj Can be any object, should be a specific type
|
1 /*
2 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
3 */
4 /*
5 * Licensed to the Apache Software Foundation (ASF) under one or more
6 * contributor license agreements. See the NOTICE file distributed with
7 * this work for additional information regarding copyright ownership.
8 * The ASF licenses this file to You under the Apache License, Version 2.0
9 * (the "License"); you may not use this file except in compliance with
10 * the License. You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 */
20
21 package com.sun.org.apache.xpath.internal.objects;
22
27 import com.sun.org.apache.xml.internal.utils.XMLString;
28 import com.sun.org.apache.xpath.internal.Expression;
29 import com.sun.org.apache.xpath.internal.ExpressionOwner;
30 import com.sun.org.apache.xpath.internal.NodeSetDTM;
31 import com.sun.org.apache.xpath.internal.XPathContext;
32 import com.sun.org.apache.xpath.internal.XPathException;
33 import com.sun.org.apache.xpath.internal.XPathVisitor;
34 import com.sun.org.apache.xpath.internal.res.XPATHErrorResources;
35 import java.io.Serializable;
36 import java.util.List;
37 import org.w3c.dom.DocumentFragment;
38 import org.w3c.dom.NodeList;
39 import org.w3c.dom.traversal.NodeIterator;
40
41 /**
42 * This class represents an XPath object, and is capable of
43 * converting the object to various types, such as a string.
44 * This class acts as the base class to other XPath type objects,
45 * such as XString, and provides polymorphic casting capabilities.
46 * @xsl.usage general
47 * @LastModified: Oct 2017
48 */
49 public class XObject extends Expression implements Serializable, Cloneable
50 {
51 static final long serialVersionUID = -821887098985662951L;
52
53 /**
54 * The java object which this object wraps.
55 * @serial
56 */
57 protected Object m_obj; // This may be NULL!!!
58
59 /**
60 * Create an XObject.
61 */
62 public XObject(){}
63
64 /**
65 * Create an XObject.
66 *
67 * @param obj Can be any object, should be a specific type
|