public static final class ProfileDataCollection.AttributeValue extends Object implements Serializable
Constructor and Description |
---|
ProfileDataCollection.AttributeValue(ProfileDataCollection.AttributeValue[] values)
Create a new attribute value encapsulating an array of attribute value elements.
|
ProfileDataCollection.AttributeValue(String value)
Create a new attribute value encapsulating an exported value.
|
Modifier and Type | Method and Description |
---|---|
String |
getValue()
Get the simple string value encapsulated by this object.
|
ProfileDataCollection.AttributeValue[] |
getValues()
Get the array encapsulated by this object.
|
boolean |
isArray()
Determine if this object encapsulates an array of elements.
|
String |
toString()
Convert the attribute value (and any nested array values) into a human-readable form.
|
public ProfileDataCollection.AttributeValue(String value)
value
- the exported value.NullPointerException
- if value
is null.public ProfileDataCollection.AttributeValue(ProfileDataCollection.AttributeValue[] values)
values
- the exported array elements.NullPointerException
- if values
is null.public boolean isArray()
true
if this object encapulates an array of elements,
false
if a simple string value is encapsulated.public String getValue()
isArray()
must return false
in order to be able to use this method.IllegalArgumentException
- if a string value is not encapsulated by
this object.public ProfileDataCollection.AttributeValue[] getValues()
isArray()
must return
true
in order to be able to use this method.IllegalArgumentException
- if an attribute value array is not encapsulated
by this object.