hep.graphics.heprep.ref
Class DefaultHepRepTypeTree
java.lang.Object
|
+--hep.graphics.heprep.ref.DefaultHepRepTreeID
|
+--hep.graphics.heprep.ref.DefaultHepRepTypeTree
- All Implemented Interfaces:
- HepRepTreeID, HepRepTypeTree, Serializable
- public class DefaultHepRepTypeTree
- extends DefaultHepRepTreeID
- implements HepRepTypeTree, Serializable
- Version:
- $Id: DefaultHepRepTypeTree.java,v 1.14 2003/12/04 23:25:48 duns Exp $
- Author:
- M.Donszelmann
- See Also:
- Serialized Form
cvsId
public static final String cvsId
- See Also:
- Constant Field Values
DefaultHepRepTypeTree
public DefaultHepRepTypeTree(HepRepTreeID typeTree)
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.
getType
public HepRepType getType(String fullName)
- Description copied from interface:
HepRepTypeTree
- Returns type
- Specified by:
getType
in interface HepRepTypeTree
equals
public boolean equals(Object o)
- Overrides:
equals
in class DefaultHepRepTreeID
hashCode
public int hashCode()
- Overrides:
hashCode
in class DefaultHepRepTreeID
toString
public String toString()
- Overrides:
toString
in class DefaultHepRepTreeID
- Returns:
- a string representation of this HepRepTypeTree
display
public void display(String indent)
Copyright © 2000-2003 FreeHEP, All Rights Reserved.