This is a simple DAMetaData implementation backed by type-specific maps of attributes to values.
More...
This is a simple DAMetaData implementation backed by type-specific maps of attributes to values.
byte [] com.good.daf.basic.BasicMetaData.getData |
( |
DAAttrib |
which, |
|
|
long |
index |
|
) |
| |
Return the byte string value for the given attribute.
- Parameters
-
which | names the attribute whose value is requested |
index | to extract additional values; for multi-valued attributes (like DA_CERTIFICATE, where a full chain of certificates might be available). typically zero. |
- Returns
- the value, or null if there is no such attribute with a byte string value, or no value at that index.
Implements com.good.daf.DAMetaData.
Boolean com.good.daf.basic.BasicMetaData.getFlag |
( |
DAAttrib |
which | ) |
|
Return the boolean value for the given attribute.
- Parameters
-
which | names the attribute whose value is requested |
- Returns
- the value, or null if there is no such attribute with a boolean value.
Implements com.good.daf.DAMetaData.
Long com.good.daf.basic.BasicMetaData.getSize |
( |
DAAttrib |
which | ) |
|
Return the size value for the given attribute.
- Parameters
-
which | names the attribute whose value is requested |
- Returns
- the value, or null if there is no such attribute with a size value.
Implements com.good.daf.DAMetaData.
String com.good.daf.basic.BasicMetaData.getString |
( |
DAAttrib |
which | ) |
|
Return the string value for the given attribute.
- Parameters
-
which | names the attribute whose value is requested |
- Returns
- the value, or null if there is no such attribute with a string value.
Implements com.good.daf.DAMetaData.
void com.good.daf.basic.BasicMetaData.setData |
( |
DAAttrib |
attr, |
|
|
byte[] |
value |
|
) |
| |
Sets an attribute byte string value.
- Parameters
-
attr | attribute to set |
value | value |
void com.good.daf.basic.BasicMetaData.setFlag |
( |
DAAttrib |
attr, |
|
|
boolean |
value |
|
) |
| |
Sets an attribute boolean value.
- Parameters
-
attr | attribute to set |
value | value |
void com.good.daf.basic.BasicMetaData.setSize |
( |
DAAttrib |
attr, |
|
|
long |
size |
|
) |
| |
Sets an attribute size value.
- Parameters
-
attr | attribute to set |
value | value. this must be non-negative |
void com.good.daf.basic.BasicMetaData.setString |
( |
DAAttrib |
attr, |
|
|
String |
value |
|
) |
| |
Sets an attribute string value.
- Parameters
-
attr | attribute to set |
value | value |
The documentation for this class was generated from the following file: