FreeHEP API
Version v1.2

hep.graphics.heprep
Interface HepRepDefinition

All Superinterfaces:
HepRepAttribute, HepRepConstants
All Known Subinterfaces:
HepRepType
All Known Implementing Classes:
CORBAHepRepDefinition, DefaultHepRepDefinition, DefaultHepRepType, HepRepDefinitionAdapter, HepRepTypeAdapter, HepRepTypeAdapter, StreamerHepRepDefinition, StreamerHepRepType

public interface HepRepDefinition
extends HepRepAttribute

HepRepDefinition interface.

Author:
Mark Donszelmann

Field Summary
 
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
 
Method Summary
 void addAttDef(HepRepAttDef attDef)
          Adds an attdef.
 void addAttDef(String name, String desc, String category, String extra)
          Adds an attdef.
 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.
 Collection getAttDefsFromNode()
          Returns a collection of all attribute definitions defined on this node.
 
Methods inherited from interface hep.graphics.heprep.HepRepAttribute
addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, getAttValue, getAttValueFromNode, getAttValuesFromNode, removeAttValue
 

Method Detail

addAttDef

public void addAttDef(String name,
                      String desc,
                      String category,
                      String extra)
               throws IOException
Adds an attdef.

Parameters:
name - name of the definition.
desc - description of the definition.
category - category of the definition.
extra - extra info of the definition.
Throws:
IOException - only if this definition is written immediately to a stream.

addAttDef

public void addAttDef(HepRepAttDef attDef)
               throws IOException
Adds an attdef.

Parameters:
attDef - to be added.
Throws:
IOException - only if this definition is written immediately to a stream.

getAttDef

public HepRepAttDef getAttDef(String name)
Return a named attribute definition searched on this node and any parent nodes.

Parameters:
name - of attribute definition.
Returns:
attribute definition.

getAttDefsFromNode

public Collection getAttDefsFromNode()
Returns a collection of all attribute definitions defined on this node.

Returns:
collection of attributes definitions.

getAttDefFromNode

public HepRepAttDef getAttDefFromNode(String lowerCaseName)
Returns a named attribute definition defined on this node.

Parameters:
lowerCaseName - name of the attribute in lower case.
Returns:
attribute definition.

FreeHEP API
Version v1.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.