public class TagList extends Structure
Structure.InvalidFieldException
NativeObject.Initializer
defaultInit, LIFECYCLE, ownsHandle
Constructor and Description |
---|
TagList()
Constructs a new empty tag list.
|
TagList(NativeObject.Initializer init)
Creates a new instance of TagList
|
Modifier and Type | Method and Description |
---|---|
protected void |
disposeNativeHandle(com.sun.jna.Pointer ptr) |
java.lang.Number |
getNumber(java.lang.String tag,
int index)
Gets a numeric tag from this list.
|
java.lang.Number |
getNumber(Tag tag,
int index)
Gets a numeric tag from this list.
|
java.lang.String |
getString(java.lang.String tag,
int index)
Gets a string tag from this list.
|
java.lang.String |
getString(Tag tag,
int index)
Gets a string tag from this list.
|
java.util.List<java.lang.String> |
getTagNames()
Gets a list of all the tags contained in this list.
|
java.lang.Object |
getValue(java.lang.String tag,
int index)
Gets data for a tag from this list.
|
java.lang.Object |
getValue(Tag tag,
int index)
Gets data for a tag from this list.
|
int |
getValueCount(java.lang.String tag)
Gets the number of values of type
tag stored in the list. |
java.util.List<java.lang.Object> |
getValues(java.lang.String tag)
Gets all data values for a tag contained in this list.
|
java.util.List<java.lang.Object> |
getValues(Tag tag)
Gets all data values for a tag contained in this list.
|
TagList |
merge(TagList list2,
TagMergeMode mode)
Merges this tag list and
list2 into a new list. |
copy, fixateNearestInteger, fromString, getBoolean, getBoolean, getDouble, getDouble, getFields, getFourcc, getFourccString, getFraction, getInteger, getInteger, getName, getName, getRange, getString, getValue, getValueList, hasDoubleField, hasField, hasField, hasField, hasIntField, hasName, objectFor, removeField, removeFields, setDouble, setDoubleRange, setInteger, setIntegerRange, setName, setPointer, setValue, toString
classFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, initializer, instanceFor, invalidate, isDisposed, nativeValue, objectFor, objectFor, objectFor, objectFor
public TagList(NativeObject.Initializer init)
init
- internal initialization data.public TagList()
public int getValueCount(java.lang.String tag)
tag
stored in the list.tag
- the name of the tag to get the size of.tag
in this list.public java.util.List<java.lang.Object> getValues(java.lang.String tag)
tag
- the name of the tag to retrieve.tag
.public java.util.List<java.lang.Object> getValues(Tag tag)
tag
- the name of the tag to retrieve.tag
.public java.lang.Object getValue(java.lang.String tag, int index)
tag
- the tag to retrieve.index
- which element of the array of data for this tag to retrieve.public java.lang.Object getValue(Tag tag, int index)
tag
- the tag to retrieve.index
- which element of the array of data for this tag to retrieve.public java.lang.String getString(java.lang.String tag, int index)
public java.lang.String getString(Tag tag, int index)
tag
- the tag to retrieve.index
- which element of the array of data for this tag to retrieve.public java.lang.Number getNumber(java.lang.String tag, int index)
tag
- the tag to retrieve.index
- which element of the array of data for this tag to retrieve.public java.lang.Number getNumber(Tag tag, int index)
tag
- the tag to retrieve.index
- which element of the array of data for this tag to retrieve.public java.util.List<java.lang.String> getTagNames()
public TagList merge(TagList list2, TagMergeMode mode)
list2
into a new list.
If list2
is null, a copy of this list is returned.list2
- the other tag list to merge with this one.mode
- the TagMergeMode
.protected void disposeNativeHandle(com.sun.jna.Pointer ptr)
disposeNativeHandle
in class Structure