FreeHEP API
Version v1.2.2

hep.graphics.heprep.corbavalue
Class HepRepDefinitionAdapter

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

public abstract class HepRepDefinitionAdapter
extends HepRepAttributeAdapter
implements HepRepDefinition

Version:
$Id: HepRepDefinitionAdapter.java,v 1.9 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
HepRepDefinitionAdapter(HepRepDefinition hepRepDefinition)
           
 
Method Summary
 void addAttDef(HepRepAttDef attDef)
          Adds an attdef.
 void addAttDef(String name, String desc, String type, String extra)
          Adds an attdef.
 boolean equals(Object o)
           
 HepRepAttDef getAttDefFromNode(String lowerCaseName)
          Returns a named attribute definition defined on this node.
 Set getAttDefsFromNode()
          Returns a collection of all attribute definitions defined on this node.
 int hashCode()
           
 
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, toString, wait, wait, wait
 
Methods inherited from interface hep.graphics.heprep.HepRepDefinition
getAttDef
 
Methods inherited from interface hep.graphics.heprep.HepRepAttribute
addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, getAttValue, getAttValueFromNode, getAttValuesFromNode, removeAttValue
 

Field Detail

cvsId

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

HepRepDefinitionAdapter

public HepRepDefinitionAdapter(HepRepDefinition hepRepDefinition)
Method Detail

getAttDefsFromNode

public Set getAttDefsFromNode()
Description copied from interface: HepRepDefinition
Returns a collection of all attribute definitions defined on this node.

Specified by:
getAttDefsFromNode in interface HepRepDefinition
Returns:
collection of attributes definitions.

getAttDefFromNode

public HepRepAttDef getAttDefFromNode(String lowerCaseName)
Description copied from interface: HepRepDefinition
Returns a named attribute definition defined on this node.

Specified by:
getAttDefFromNode in interface HepRepDefinition
Parameters:
lowerCaseName - name of the attribute in lower case.
Returns:
attribute definition.

addAttDef

public void addAttDef(HepRepAttDef attDef)
Description copied from interface: HepRepDefinition
Adds an attdef.

Specified by:
addAttDef in interface HepRepDefinition
Parameters:
attDef - to be added.

addAttDef

public void addAttDef(String name,
                      String desc,
                      String type,
                      String extra)
Description copied from interface: HepRepDefinition
Adds an attdef.

Specified by:
addAttDef in interface HepRepDefinition
Parameters:
name - name of the definition.
desc - description of the definition.
type - category of the definition.
extra - extra info of the definition.

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class HepRepAttributeAdapter

FreeHEP API
Version v1.2.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.