com.hp.hpl.jena.enhanced
Class Personality

java.lang.Object
  extended bycom.hp.hpl.jena.enhanced.Personality
Direct Known Subclasses:
GraphPersonality, NodePersonality

public class Personality
extends java.lang.Object

Defines a set of permitted mappings from Type identifiers to Implementation factories that can generate instances of the facet represented by the Type.

Author:
Jeremy Carroll (original code)
Chris Dollin (original code)

Constructor Summary
Personality(Personality other)
          initialise this personality with the bindings from _other_
 
Method Summary
 Personality add(java.lang.Class interf, Implementation impl)
          Add a new interface and its implementation to this Personality.
 Personality copy()
          create a new Personality copying this one; the _types_ state is copied, not shared.
 Polymorphic newInstance(java.lang.Class interf, Node n, Polymorphic that)
          make a new instance of a type _interf_ based on the node _n_ and the polymorphic _that_; use the implementation wrapper for _interf_ in _types_.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Personality

public Personality(Personality other)
initialise this personality with the bindings from _other_

Method Detail

add

public Personality add(java.lang.Class interf,
                       Implementation impl)
Add a new interface and its implementation to this Personality.

Parameters:
interf - The interface to add, expressed as a Type object.
impl - A way of implementing _interf_.

copy

public Personality copy()
create a new Personality copying this one; the _types_ state is copied, not shared.


newInstance

public Polymorphic newInstance(java.lang.Class interf,
                               Node n,
                               Polymorphic that)
make a new instance of a type _interf_ based on the node _n_ and the polymorphic _that_; use the implementation wrapper for _interf_ in _types_.



Copyright © 2001-2003 Hewlett-Packard. All Rights Reserved.