public class XmpArrayBase<T> extends XmpValueBase implements IXmlValue
Represents base abstraction for XMP array.
T
: Type of array.
Constructor and Description |
---|
XmpArrayBase(int type,
T[] items)
Initializes a new instance of the
XmpArray class. |
Modifier and Type | Method and Description |
---|---|
void |
addItem(T item)
Adds new item to the array.
|
T[] |
getValues()
Gets array of values inside
XmpArray . |
String |
getXmlValue()
Converts XMP value to the xml representation.
|
String |
toString()
Returns a
System.String that represents this instance. |
toBool, toDateTime, toFloat, toGuid, toInt, toStringArray
public XmpArrayBase(int type, T[] items)
Initializes a new instance of the XmpArray
class.
type
- Array type.items
- Array items.public final T[] getValues()
Gets array of values inside XmpArray
.
public void addItem(T item)
Adds new item to the array.
item
- Adding item.public String getXmlValue()
Converts XMP value to the xml representation.
getXmlValue
in interface IXmlValue
string
representation of XMP value.public String toString()
Returns a System.String
that represents this instance.
toString
in class XmpValueBase
System.String
that represents this instance.Copyright © 2019. All rights reserved.