Debian Codegraph @

net/sf/saxon/value/ExternalObject.java

raw symbols SCIP
1 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2 // Copyright (c) 2018 Saxonica Limited.
3 // This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 // If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 // This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0.
6 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7
8 package net.sf.saxon.value;
9
10 import net.sf.saxon.ma.map.MapItem;
11 import net.sf.saxon.om.Item;
12 import net.sf.saxon.type.ItemType;
13 import net.sf.saxon.type.TypeHierarchy;
14
15 /**
16 * An item that wraps an external (Java or .NET) object
17 * @param <T> the static class of the wrapped object
18 */
19
20 public interface ExternalObject<T> extends Item<MapItem> {
21
22 /**
23 * Get the wrapped object
24 * @return the wrapped object. This will never be null.
25 */
26
27 T getObject();
28
29 /**
30 * Get the item type of the object
31 * @return the item type
32 */
33
34 ItemType getItemType(TypeHierarchy th);
35 }
36