Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.hp.hpl.jena.enhanced
Class Implementation

    java.lang.Object
      com.hp.hpl.jena.enhanced.Implementation

    public abstract class Implementation

extends java.lang.Object

Interface defining a generic factory interface for generating enhanced nodes from normal graph nodes. Implementation classes should have a public final member variable called factory of this type.

Author:
  Jeremy Carroll (original code)
  Chris Dollin (original code)
  Ian Dickinson (refactoring and commentage)

Constructor Summary
`Implementation()`

Method Summary
`abstract boolean` | `canWrap(Node node, EnhGraph eg)` true iff wrapping (node, eg) would succeed.
`abstract EnhNode` | `wrap(Node node, EnhGraph eg)` Create a new EnhNode wrapping a Node in the context of an EnhGraph

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Implementation

    public Implementation()

Method Detail

### wrap

    public abstract EnhNode wrap(Node node,
                                 EnhGraph eg)

  Create a new EnhNode wrapping a Node in the context of an EnhGraph

  Parameters:
    `node` - The node to be wrapped
    `eg` - The graph containing the node
  Returns:
    A new enhanced node which wraps node but presents the interface(s) that this factory encapsulates.

### canWrap

    public abstract boolean canWrap(Node node,
                                    EnhGraph eg)

  true iff wrapping (node, eg) would succeed.

  Parameters:
    `node` - the node to test for suitability
    `eg` - the enhanced graph the node appears in
  Returns:
    true iff the node can represent our type in that graph

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP