public final class PersonalAttributeString extends Object
PersonalAttribute
objects to their String representations and vice versa.
The PersonalAttribute format is as follows:
name:required:[v,a,l,u,e,s]|[v=a,l=u,e=s]:status;
Modifier and Type | Field and Description |
---|---|
static String |
HTTP_PREFIX |
Modifier and Type | Method and Description |
---|---|
static PersonalAttribute |
fromString(String attributeString)
Converts a string representation of the Personal Attribute into an instance of the
PersonalAttribute . |
static PersonalAttributeList |
fromStringList(String attrList)
Creates a Personal Attribute List from a String representing an Attribute List.
|
static String |
toString(PersonalAttribute personalAttribute)
Prints the PersonalAttribute in the following format.
|
static String |
toStringList(PersonalAttributeList personalAttributeList)
Creates a string in the following format.
|
public static final String HTTP_PREFIX
@Nonnull public static PersonalAttribute fromString(@Nonnull String attributeString)
PersonalAttribute
.attributeString
- the string representation of the Personal AttributePersonalAttribute
.@Nonnull public static PersonalAttributeList fromStringList(@Nonnull String attrList)
attrList
- String representing the attribute list.IllegalArgumentException
- if the string representation using tuples is invalid@Nonnull public static String toString(@Nonnull PersonalAttribute personalAttribute)
personalAttribute
- the personalAttribute@Nonnull public static String toStringList(@Nonnull PersonalAttributeList personalAttributeList)
attrName:attrType:[attrValue1,attrValue2=attrComplexValue]:attrStatus;
personalAttributeList
- list of personal attributesCopyright © 2020. All Rights Reserved.