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 Objects.
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.EnhNodewrap(org.apache.jena.graph.Node node, org.apache.jena.enhanced.EnhGraph eg) Creates a newEnhNodewrapping the givenNodenode in the context of the graphEnhGraph.Methods inherited from class org.apache.jena.enhanced.Implementation
canWrapMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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 newEnhNodewrapping the givenNodenode in the context of the graphEnhGraph.- Specified by:
wrapin interfaceEnhNodeFactory- Specified by:
wrapin 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
-