java.lang.Object
org.apache.jena.enhanced.Implementation
org.apache.jena.ontapi.common.BaseEnhNodeFactoryImpl
- All Implemented Interfaces:
EnhNodeFactory
- Direct Known Subclasses:
CommonEnhNodeFactoryImpl
,CompositeEnhNodeFactoryImpl
,WrappedEnhNodeFactory
public abstract class BaseEnhNodeFactoryImpl
extends org.apache.jena.enhanced.Implementation
implements EnhNodeFactory
An extended
Implementation
factory,
the base class for any factories
to produce
Ontology Object
s.
Used to bind implementation (node) and interface.
Also, in addition to the standard jena methods,
this implementation includes nodes' search and graph transformation functionality.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.enhanced.EnhNode
wrap
(org.apache.jena.graph.Node node, org.apache.jena.enhanced.EnhGraph eg) Creates a newEnhNode
wrapping the givenNode
node in the context of the graphEnhGraph
.Methods inherited from class org.apache.jena.enhanced.Implementation
canWrap
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.jena.ontapi.common.EnhNodeFactory
canCreateInGraph, canWrap, createInGraph, createInstance, find, iterator
-
Constructor Details
-
BaseEnhNodeFactoryImpl
public BaseEnhNodeFactoryImpl()
-
-
Method Details
-
wrap
public org.apache.jena.enhanced.EnhNode wrap(org.apache.jena.graph.Node node, org.apache.jena.enhanced.EnhGraph eg) Creates a newEnhNode
wrapping the givenNode
node in the context of the graphEnhGraph
.- Specified by:
wrap
in interfaceEnhNodeFactory
- Specified by:
wrap
in classorg.apache.jena.enhanced.Implementation
- Parameters:
node
- the node to be wrappedeg
- the graph containing the node- Returns:
- A new enhanced node which wraps node but presents the interface(s) that this factory encapsulates.
- Throws:
OntJenaException.Conversion
- in case wrapping is impossible
-