FreeHEP API
Version v1.1

hep.graphics.heprep.streamer
Class StreamerHepRepDefinition

java.lang.Object
  |
  +--hep.graphics.heprep.streamer.StreamerHepRepAttribute
        |
        +--hep.graphics.heprep.streamer.StreamerHepRepDefinition
All Implemented Interfaces:
HepRepAttribute, HepRepConstants, HepRepDefinition
Direct Known Subclasses:
StreamerHepRepType

public abstract class StreamerHepRepDefinition
extends StreamerHepRepAttribute
implements HepRepDefinition

Version:
$Id: StreamerHepRepDefinition.java,v 1.1 2002/09/18 23:59:58 duns Exp $
Author:
M.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
StreamerHepRepDefinition(HepRepWriter streamer)
           
 
Method Summary
 void addAttDef(HepRepAttDef hepRepAttDef)
          Adds an attdef.
 void addAttDef(String name, String desc, String type, String extra)
          Adds an attdef.
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.
 Collection getAttDefsFromNode()
          Returns a collection of all attribute definitions defined on this node.
 
Methods inherited from class hep.graphics.heprep.streamer.StreamerHepRepAttribute
addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, addAttValue, getAttValue, getAttValueFromNode, getAttValuesFromNode, removeAttValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, 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

StreamerHepRepDefinition

public StreamerHepRepDefinition(HepRepWriter streamer)
Method Detail

getAttDefsFromNode

public Collection 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)
               throws IOException
Description copied from interface: HepRepDefinition
Adds an attdef.

Specified by:
addAttDef in interface HepRepDefinition
Parameters:
hepRepAttDef - to be added.
Throws:
IOException - only if this definition is written immediately to a stream.

addAttDef

public void addAttDef(String name,
                      String desc,
                      String type,
                      String extra)
               throws IOException
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.
Throws:
IOException - only if this definition is written immediately to a stream.

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.

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.1

Copyright © 2000-2002 FreeHEP, All Rights Reserved.