1 6 7 package com.hp.hpl.jena.enhanced; 8 9 13 14 public class GraphPersonality extends Personality { 15 16 private Personality nodePersonality; 17 18 public GraphPersonality() 19 { this( new NodePersonality() ); } 20 21 public GraphPersonality( Personality p ) 22 { this.nodePersonality = p; } 23 24 public GraphPersonality( GraphPersonality base, Personality forNodes ) 25 { this( forNodes ); add( base ); } 26 27 public Personality nodePersonality() 28 { return nodePersonality; } 29 30 public Personality add( Class interf, Implementation t ) { 31 nodePersonality.add( interf, t ); 32 return this; 33 } 34 35 public Personality copy() 36 { return new GraphPersonality( this, nodePersonality.copy() ); } 37 38 } 39 40 69 | Popular Tags |