org.jlab.groot.base
Class Attributes
- java.lang.Object
-
- org.jlab.groot.base.Attributes
-
public class Attributes extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description Attributes()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidadd(AttributeType type, int value)voidaddString(AttributeType type, java.lang.String value)static voidchooseByString(javax.swing.JComboBox comboBox, java.lang.String value)voidcopy(Attributes attr)makes a copy of an attributes.voidcopyValues(Attributes attr)from given attributes copies values of entries that exist in this classintget(AttributeType type)java.util.Map<AttributeType,java.lang.Integer>getMap()java.lang.StringgetString(AttributeType type)booleanhasAttribute(AttributeType type)java.lang.StringtoString()
-
-
-
Method Detail
-
add
public void add(AttributeType type, int value)
-
hasAttribute
public boolean hasAttribute(AttributeType type)
-
get
public int get(AttributeType type)
-
getString
public java.lang.String getString(AttributeType type)
-
addString
public void addString(AttributeType type, java.lang.String value)
-
getMap
public java.util.Map<AttributeType,java.lang.Integer> getMap()
-
copy
public void copy(Attributes attr)
makes a copy of an attributes.- Parameters:
attr-
-
copyValues
public void copyValues(Attributes attr)
from given attributes copies values of entries that exist in this class- Parameters:
attr-
-
chooseByString
public static void chooseByString(javax.swing.JComboBox comboBox, java.lang.String value)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG