FreeHEP API
Version v1.2.2

hep.graphics.heprep.ref
Class DefaultHepRepDefinition

java.lang.Object
  |
  +--hep.graphics.heprep.ref.DefaultHepRepAttribute
        |
        +--hep.graphics.heprep.ref.DefaultHepRepDefinition
All Implemented Interfaces:
HepRepAttribute, HepRepConstants, HepRepDefinition, Serializable
Direct Known Subclasses:
DefaultHepRepType

public abstract class DefaultHepRepDefinition
extends DefaultHepRepAttribute
implements HepRepDefinition, Serializable

Version:
$Id: DefaultHepRepDefinition.java,v 1.10 2003/12/04 23:25:48 duns Exp $
Author:
M.Donszelmann
See Also:
Serialized Form

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
DefaultHepRepDefinition()
           
 
Method Summary
 void addAttDef(HepRepAttDef hepRepAttDef)
          Adds an attdef.
 void addAttDef(String name, String desc, String category, String extra)
          Adds an attdef.
 boolean equals(Object o)
           
abstract  HepRepAttDef getAttDef(String name)
          Return a named attribute definition searched on this node and any parent nodes.
 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.ref.DefaultHepRepAttribute
addAttColor, addAttColor, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, getAttValue, 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.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

DefaultHepRepDefinition

public DefaultHepRepDefinition()
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.

addAttDef

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

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

addAttDef

public void addAttDef(String name,
                      String desc,
                      String category,
                      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.
category - category of the definition.
extra - extra info of the definition.

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.

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class DefaultHepRepAttribute

getAttDef

public abstract 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.

FreeHEP API
Version v1.2.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.