FreeHEP API
Version current

hep.graphics.heprep.ref
Class DefaultHepRepTypeTree

java.lang.Object
  extended byhep.graphics.heprep.ref.DefaultHepRepTreeID
      extended byhep.graphics.heprep.ref.DefaultHepRepTypeTree
All Implemented Interfaces:
HepRepTreeID, HepRepTypeTree, Serializable

public class DefaultHepRepTypeTree
extends DefaultHepRepTreeID
implements HepRepTypeTree, Serializable

Version:
$Id: DefaultHepRepTypeTree.java,v 1.18 2004/09/03 18:18:39 duns Exp $
Author:
M.Donszelmann
See Also:
Serialized Form
Source Code:
DefaultHepRepTypeTree.java

Field Summary
static String cvsId
           
 
Constructor Summary
protected DefaultHepRepTypeTree(HepRepTreeID typeTree)
           
 
Method Summary
 void addType(HepRepType type)
          Adds a type to this typetree.
 HepRepTypeTree copy()
          Returns a deep copy of this typetree.
 void display(String indent)
           
 HepRepType getType(String fullName)
          Returns type
 List getTypeList()
          Returns a collection of all types in this tree.
 Set getTypes()
          Returns a collection of all types in this tree.
 String toString()
           
 
Methods inherited from class hep.graphics.heprep.ref.DefaultHepRepTreeID
equals, getName, getQualifier, getVersion, hashCode, setQualifier
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface hep.graphics.heprep.HepRepTreeID
getName, getQualifier, getVersion, setQualifier
 

Field Detail

cvsId

public static final String cvsId
See Also:
Constant Field Values
Constructor Detail

DefaultHepRepTypeTree

protected DefaultHepRepTypeTree(HepRepTreeID typeTree)
Method Detail

copy

public HepRepTypeTree copy()
                    throws CloneNotSupportedException
Description copied from interface: HepRepTypeTree
Returns a deep copy of this typetree.

Specified by:
copy in interface HepRepTypeTree
Returns:
copy of this typetree.
Throws:
CloneNotSupportedException - if copying is not possible.

addType

public void addType(HepRepType type)
Description copied from interface: HepRepTypeTree
Adds a type to this typetree.

Specified by:
addType in interface HepRepTypeTree
Parameters:
type - to be added.

getTypes

public Set getTypes()
Description copied from interface: HepRepTypeTree
Returns a collection of all types in this tree.

Specified by:
getTypes in interface HepRepTypeTree
Returns:
collection of HepRepTypes.

getTypeList

public List getTypeList()
Description copied from interface: HepRepTypeTree
Returns a collection of all types in this tree.

Specified by:
getTypeList in interface HepRepTypeTree
Returns:
collection of HepRepTypes.

getType

public HepRepType getType(String fullName)
Description copied from interface: HepRepTypeTree
Returns type

Specified by:
getType in interface HepRepTypeTree

toString

public String toString()
Overrides:
toString in class DefaultHepRepTreeID
Returns:
a string representation of this HepRepTypeTree

display

public void display(String indent)

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.