FreeHEP API
Version current

hep.graphics.heprep.corba
Class HepRepAttValueAdapter

java.lang.Object
  extended byhep.graphics.heprep.corba.HepRepAttValueAdapter
All Implemented Interfaces:
HepRepAttValue, HepRepConstants

public class HepRepAttValueAdapter
extends Object
implements HepRepAttValue

Version:
$Id: HepRepAttValueAdapter.java,v 1.17 2005/02/17 15:20:09 duns Exp $
Author:
Mark Donszelmann
Source Code:
HepRepAttValueAdapter.java

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
HepRepAttValueAdapter(HepRepAttValue hepRepAttValue)
           
 
Method Summary
 HepRepAttValue copy()
          Returns a deep copy of this attvalue.
 boolean equals(Object o)
           
 String getAsString()
          Returns value as string.
 boolean getBoolean()
          Returns value as boolean.
 Color getColor()
          Returns value as Color.
 double getDouble()
          Returns value as double.
 int getInteger()
          Returns value as int.
 long getLong()
          Returns value as long.
 String getLowerCaseName()
          Returns lowercased name of the attvalue.
 String getLowerCaseString()
          Returns value as lowercase string.
 String getName()
          Returns name of the attvalue.
 String getString()
          Returns value as string.
 int getType()
          Returns type of the attvalue, defined in HepRepConstants with names TYPE_xxx.
 String getTypeName()
          Returns the Java-like name for the type of this attvalue.
 int hashCode()
           
 int showLabel()
          Returns the flag bits for showing this attvalue as a label, defined in HepRepConstants with names SHOW_xxx.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

cvsId

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

HepRepAttValueAdapter

public HepRepAttValueAdapter(HepRepAttValue hepRepAttValue)
Method Detail

copy

public HepRepAttValue copy()
                    throws CloneNotSupportedException
Description copied from interface: HepRepAttValue
Returns a deep copy of this attvalue.

Specified by:
copy in interface HepRepAttValue
Returns:
copy of this attvalue.
Throws:
CloneNotSupportedException - if copying is not possible.

getName

public String getName()
Description copied from interface: HepRepAttValue
Returns name of the attvalue.

Specified by:
getName in interface HepRepAttValue
Returns:
Capitalized Name.

getLowerCaseName

public String getLowerCaseName()
Description copied from interface: HepRepAttValue
Returns lowercased name of the attvalue.

Specified by:
getLowerCaseName in interface HepRepAttValue
Returns:
Lowercased Name.

getType

public int getType()
Description copied from interface: HepRepAttValue
Returns type of the attvalue, defined in HepRepConstants with names TYPE_xxx.

Specified by:
getType in interface HepRepAttValue
Returns:
type.

getTypeName

public String getTypeName()
Description copied from interface: HepRepAttValue
Returns the Java-like name for the type of this attvalue.

Specified by:
getTypeName in interface HepRepAttValue
Returns:
type name.

showLabel

public int showLabel()
Description copied from interface: HepRepAttValue
Returns the flag bits for showing this attvalue as a label, defined in HepRepConstants with names SHOW_xxx.

Specified by:
showLabel in interface HepRepAttValue
Returns:
flag bits if should be shown as label.

getString

public String getString()
                 throws HepRepTypeException
Description copied from interface: HepRepAttValue
Returns value as string.

Specified by:
getString in interface HepRepAttValue
Returns:
value as string (if type is string).
Throws:
HepRepTypeException - if type is not string.

getLowerCaseString

public String getLowerCaseString()
                          throws HepRepTypeException
Description copied from interface: HepRepAttValue
Returns value as lowercase string.

Specified by:
getLowerCaseString in interface HepRepAttValue
Returns:
value as string (if type is string).
Throws:
HepRepTypeException - if type is not string.

getColor

public Color getColor()
               throws HepRepTypeException
Description copied from interface: HepRepAttValue
Returns value as Color.

Specified by:
getColor in interface HepRepAttValue
Returns:
value as Color.
Throws:
HepRepTypeException - if type is not Color.

getLong

public long getLong()
             throws HepRepTypeException
Description copied from interface: HepRepAttValue
Returns value as long.

Specified by:
getLong in interface HepRepAttValue
Returns:
value as long.
Throws:
HepRepTypeException - if type is not long.

getInteger

public int getInteger()
               throws HepRepTypeException
Description copied from interface: HepRepAttValue
Returns value as int.

Specified by:
getInteger in interface HepRepAttValue
Returns:
value as integer.
Throws:
HepRepTypeException - if type is not int.

getDouble

public double getDouble()
                 throws HepRepTypeException
Description copied from interface: HepRepAttValue
Returns value as double.

Specified by:
getDouble in interface HepRepAttValue
Returns:
value as double.
Throws:
HepRepTypeException - if type is not double.

getBoolean

public boolean getBoolean()
                   throws HepRepTypeException
Description copied from interface: HepRepAttValue
Returns value as boolean.

Specified by:
getBoolean in interface HepRepAttValue
Returns:
value as boolean.
Throws:
HepRepTypeException - if type is not boolean.

getAsString

public String getAsString()
Description copied from interface: HepRepAttValue
Returns value as string.

Specified by:
getAsString in interface HepRepAttValue
Returns:
value (of any type) in string format.

toString

public String toString()

equals

public boolean equals(Object o)

hashCode

public int hashCode()

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.