org.freehep.wbxml
Class AttributesImpl
java.lang.Object
org.freehep.wbxml.AttributesImpl
- All Implemented Interfaces:
- Attributes, MutableAttributes
public class AttributesImpl
- extends Object
- implements MutableAttributes
- Version:
- $Id$
- Author:
- Mark Donszelmann
Fields inherited from interface org.freehep.wbxml.Attributes |
BOOLEAN, BOOLEAN_ARRAY, BYTE, BYTE_ARRAY, CHAR, CHAR_ARRAY, COLOR, DOUBLE, DOUBLE_ARRAY, FLOAT, FLOAT_ARRAY, INT, INT_ARRAY, LONG, LONG_ARRAY, OBJECT, SHORT, SHORT_ARRAY, STRING, STRING_ARRAY, UNDEFINED |
Method Summary |
void |
clear()
|
boolean[] |
getBooleanArray(int tag)
|
boolean |
getBooleanValue(int tag)
|
boolean |
getBooleanValue(int tag,
boolean def)
|
byte[] |
getByteArray(int tag)
|
byte |
getByteValue(int tag)
|
byte |
getByteValue(int tag,
byte def)
|
char[] |
getCharArray(int tag)
|
char |
getCharValue(int tag)
|
char |
getCharValue(int tag,
char def)
|
double[] |
getDoubleArray(int tag)
|
double |
getDoubleValue(int tag)
|
double |
getDoubleValue(int tag,
double def)
|
float[] |
getFloatArray(int tag)
|
float |
getFloatValue(int tag)
|
float |
getFloatValue(int tag,
float def)
|
int[] |
getIntArray(int tag)
|
int |
getIntValue(int tag)
|
int |
getIntValue(int tag,
int def)
|
long[] |
getLongArray(int tag)
|
long |
getLongValue(int tag)
|
long |
getLongValue(int tag,
long def)
|
short[] |
getShortArray(int tag)
|
short |
getShortValue(int tag)
|
short |
getShortValue(int tag,
short def)
|
String[] |
getStringArray(int tag)
|
String |
getStringValue(int tag)
|
String |
getStringValue(int tag,
String def)
|
int[] |
getTags()
Return the list of defined attributes |
int |
getType(int tag)
Return the type for a particular attribute tag, or UNDEFINED if
the tag does not exist. |
void |
set(int tag,
boolean value)
|
void |
set(int tag,
boolean[] array)
|
void |
set(int tag,
byte value)
|
void |
set(int tag,
byte[] array)
|
void |
set(int tag,
char value)
|
void |
set(int tag,
char[] array)
|
void |
set(int tag,
double value)
|
void |
set(int tag,
double[] array)
|
void |
set(int tag,
float value)
|
void |
set(int tag,
float[] array)
|
void |
set(int tag,
int value)
|
void |
set(int tag,
int[] array)
|
void |
set(int tag,
List value)
|
void |
set(int tag,
long value)
|
void |
set(int tag,
long[] array)
|
void |
set(int tag,
short value)
|
void |
set(int tag,
short[] array)
|
void |
set(int tag,
String value)
|
void |
set(int tag,
String[] array)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttributesImpl
public AttributesImpl()
AttributesImpl
public AttributesImpl(Attributes atts)
clear
public void clear()
- Specified by:
clear
in interface MutableAttributes
set
public void set(int tag,
boolean value)
- Specified by:
set
in interface MutableAttributes
set
public void set(int tag,
boolean[] array)
- Specified by:
set
in interface MutableAttributes
set
public void set(int tag,
byte value)
- Specified by:
set
in interface MutableAttributes
set
public void set(int tag,
byte[] array)
- Specified by:
set
in interface MutableAttributes
set
public void set(int tag,
char value)
- Specified by:
set
in interface MutableAttributes
set
public void set(int tag,
char[] array)
- Specified by:
set
in interface MutableAttributes
set
public void set(int tag,
double value)
- Specified by:
set
in interface MutableAttributes
set
public void set(int tag,
double[] array)
- Specified by:
set
in interface MutableAttributes
set
public void set(int tag,
float value)
- Specified by:
set
in interface MutableAttributes
set
public void set(int tag,
float[] array)
- Specified by:
set
in interface MutableAttributes
set
public void set(int tag,
int value)
- Specified by:
set
in interface MutableAttributes
set
public void set(int tag,
int[] array)
- Specified by:
set
in interface MutableAttributes
set
public void set(int tag,
long value)
- Specified by:
set
in interface MutableAttributes
set
public void set(int tag,
long[] array)
- Specified by:
set
in interface MutableAttributes
set
public void set(int tag,
short value)
- Specified by:
set
in interface MutableAttributes
set
public void set(int tag,
short[] array)
- Specified by:
set
in interface MutableAttributes
set
public void set(int tag,
String value)
- Specified by:
set
in interface MutableAttributes
set
public void set(int tag,
String[] array)
- Specified by:
set
in interface MutableAttributes
set
public void set(int tag,
List value)
- Specified by:
set
in interface MutableAttributes
getType
public int getType(int tag)
- Description copied from interface:
Attributes
- Return the type for a particular attribute tag, or UNDEFINED if
the tag does not exist.
- Specified by:
getType
in interface Attributes
- Returns:
getTags
public int[] getTags()
- Description copied from interface:
Attributes
- Return the list of defined attributes
- Specified by:
getTags
in interface Attributes
- Returns:
getBooleanValue
public boolean getBooleanValue(int tag,
boolean def)
- Specified by:
getBooleanValue
in interface Attributes
getBooleanValue
public boolean getBooleanValue(int tag)
- Specified by:
getBooleanValue
in interface Attributes
getBooleanArray
public boolean[] getBooleanArray(int tag)
- Specified by:
getBooleanArray
in interface Attributes
getByteValue
public byte getByteValue(int tag,
byte def)
- Specified by:
getByteValue
in interface Attributes
getByteValue
public byte getByteValue(int tag)
- Specified by:
getByteValue
in interface Attributes
getByteArray
public byte[] getByteArray(int tag)
- Specified by:
getByteArray
in interface Attributes
getCharValue
public char getCharValue(int tag,
char def)
- Specified by:
getCharValue
in interface Attributes
getCharValue
public char getCharValue(int tag)
- Specified by:
getCharValue
in interface Attributes
getCharArray
public char[] getCharArray(int tag)
- Specified by:
getCharArray
in interface Attributes
getDoubleValue
public double getDoubleValue(int tag,
double def)
- Specified by:
getDoubleValue
in interface Attributes
getDoubleValue
public double getDoubleValue(int tag)
- Specified by:
getDoubleValue
in interface Attributes
getDoubleArray
public double[] getDoubleArray(int tag)
- Specified by:
getDoubleArray
in interface Attributes
getFloatValue
public float getFloatValue(int tag,
float def)
- Specified by:
getFloatValue
in interface Attributes
getFloatValue
public float getFloatValue(int tag)
- Specified by:
getFloatValue
in interface Attributes
getFloatArray
public float[] getFloatArray(int tag)
- Specified by:
getFloatArray
in interface Attributes
getIntValue
public int getIntValue(int tag,
int def)
- Specified by:
getIntValue
in interface Attributes
getIntValue
public int getIntValue(int tag)
- Specified by:
getIntValue
in interface Attributes
getIntArray
public int[] getIntArray(int tag)
- Specified by:
getIntArray
in interface Attributes
getLongValue
public long getLongValue(int tag,
long def)
- Specified by:
getLongValue
in interface Attributes
getLongValue
public long getLongValue(int tag)
- Specified by:
getLongValue
in interface Attributes
getLongArray
public long[] getLongArray(int tag)
- Specified by:
getLongArray
in interface Attributes
getShortValue
public short getShortValue(int tag,
short def)
- Specified by:
getShortValue
in interface Attributes
getShortValue
public short getShortValue(int tag)
- Specified by:
getShortValue
in interface Attributes
getShortArray
public short[] getShortArray(int tag)
- Specified by:
getShortArray
in interface Attributes
getStringValue
public String getStringValue(int tag,
String def)
- Specified by:
getStringValue
in interface Attributes
getStringValue
public String getStringValue(int tag)
- Specified by:
getStringValue
in interface Attributes
getStringArray
public String[] getStringArray(int tag)
- Specified by:
getStringArray
in interface Attributes
Copyright © 2000-2007 FreeHEP. All Rights Reserved.