FreeHEP API
Version v1.2.2

hep.graphics.heprep.corbavalue
Class HepRepTypeAdapter

java.lang.Object
  |
  +--hep.graphics.heprep.corbavalue.HepRepAttributeAdapter
        |
        +--hep.graphics.heprep.corbavalue.HepRepDefinitionAdapter
              |
              +--hep.graphics.heprep.corbavalue.HepRepTypeAdapter
All Implemented Interfaces:
HepRepAttribute, HepRepConstants, HepRepDefinition, HepRepType

public class HepRepTypeAdapter
extends HepRepDefinitionAdapter
implements HepRepType

Version:
$Id: HepRepTypeAdapter.java,v 1.18 2003/12/04 23:25:42 duns Exp $
Author:
Mark Donszelmann

Field Summary
static String cvsId
           
 
Fields inherited from interface hep.graphics.heprep.HepRepConstants
SHOW_DESC, SHOW_EXTRA, SHOW_NAME, SHOW_NONE, SHOW_VALUE, TYPE_BOOLEAN, TYPE_COLOR, TYPE_DOUBLE, TYPE_INT, TYPE_LONG, TYPE_STRING, TYPE_UNKNOWN
 
Constructor Summary
HepRepTypeAdapter(HepRepType hepRepType)
           
 
Method Summary
 void addType(HepRepType type)
          Adds a sub-type to this type.
 HepRepType copy(HepRepType parent)
          Returns a deep copy of this type.
 boolean equals(Object o)
           
 HepRepAttDef getAttDef(String name)
          Return a named attribute definition searched on this node and any parent nodes.
 HepRepAttValue getAttValue(String name)
          Returns the attValue specified by name.
 String getDescription()
          Returns the description of this type.
 String getFullName()
          Returns the full name of this type.
 String getInfoURL()
          Returns the information URL of this type.
 String getName()
          Returns the name of this type.
 HepRepType getSuperType()
          Returns the parent of this type.
 Set getTypes()
          Returns a collection of all the sub-types of this type.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class hep.graphics.heprep.corbavalue.HepRepDefinitionAdapter
addAttDef, addAttDef, getAttDefFromNode, getAttDefsFromNode
 
Methods inherited from class hep.graphics.heprep.corbavalue.HepRepAttributeAdapter
addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, getAttValueFromNode, getAttValuesFromNode, removeAttValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface hep.graphics.heprep.HepRepDefinition
addAttDef, addAttDef, getAttDefFromNode, getAttDefsFromNode
 
Methods inherited from interface hep.graphics.heprep.HepRepAttribute
addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, getAttValueFromNode, getAttValuesFromNode, removeAttValue
 

Field Detail

cvsId

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

HepRepTypeAdapter

public HepRepTypeAdapter(HepRepType hepRepType)
Method Detail

copy

public HepRepType copy(HepRepType parent)
                throws CloneNotSupportedException
Description copied from interface: HepRepType
Returns a deep copy of this type.

Specified by:
copy in interface HepRepType
Parameters:
parent - to which this copy is added.
Returns:
copy of this type.
Throws:
CloneNotSupportedException - if copying is not possible.

getSuperType

public HepRepType getSuperType()
Description copied from interface: HepRepType
Returns the parent of this type.

Specified by:
getSuperType in interface HepRepType
Returns:
parent of type, or null if top-level.

getName

public String getName()
Description copied from interface: HepRepType
Returns the name of this type. This is the full name if one uses flat-types, and the node name if one uses hierarchical typenames. It is the name supplied at construction of the type.

Specified by:
getName in interface HepRepType
Returns:
name of type.
See Also:
HepRepType.getFullName()

getFullName

public String getFullName()
Description copied from interface: HepRepType
Returns the full name of this type. The full name is constructed from the root of the typeTree (without the typeTreeName) by concatenating all the node names separated by slashes "/". For example: Geometry/InnerDetector/Sector24/Wire20

Specified by:
getFullName in interface HepRepType
Returns:
full name of type.
See Also:
HepRepType.getName()

getDescription

public String getDescription()
Description copied from interface: HepRepType
Returns the description of this type.

Specified by:
getDescription in interface HepRepType
Returns:
description of type.

getInfoURL

public String getInfoURL()
Description copied from interface: HepRepType
Returns the information URL of this type.

Specified by:
getInfoURL in interface HepRepType
Returns:
info URL of type.

getTypes

public Set getTypes()
Description copied from interface: HepRepType
Returns a collection of all the sub-types of this type.

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

equals

public boolean equals(Object o)
Overrides:
equals in class HepRepDefinitionAdapter

hashCode

public int hashCode()
Overrides:
hashCode in class HepRepDefinitionAdapter

addType

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

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

getAttDef

public HepRepAttDef getAttDef(String name)
Description copied from interface: HepRepDefinition
Return a named attribute definition searched on this node and any parent nodes.

Specified by:
getAttDef in interface HepRepDefinition
Parameters:
name - of attribute definition.
Returns:
attribute definition.

getAttValue

public HepRepAttValue getAttValue(String name)
Description copied from interface: HepRepAttribute
Returns the attValue specified by name. This attValue is normally searched on the node itself and then on its type, moving up the typetree.

Specified by:
getAttValue in interface HepRepAttribute
Parameters:
name - of attribute value.
Returns:
attribute value.

toString

public String toString()
Overrides:
toString in class Object

FreeHEP API
Version v1.2.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.