public class MetadataServices
extends java.lang.Object
MetadataServices
class defines various static
methods relating to metadata manipulation.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SPLIT_STRING
The composite attribute value splitting string.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
append(java.lang.Object attValue,
java.lang.Object appendValue)
Appends a new value to the end of an attribute.
|
static java.lang.String |
append(java.lang.String attValue,
java.lang.String appendValue)
Appends a new value to the end of an attribute.
|
static java.lang.Object |
collapse(java.lang.Object attValue)
Creates a collapsed version of an attribute value.
|
static java.lang.String |
collapse(java.lang.String attValue)
Creates a collapsed version of an attribute value.
|
static java.lang.String |
format(java.lang.String attValue,
java.lang.String split)
Creates a formatted version of an attribute value.
|
static java.lang.String |
getCommandLine(java.lang.String prog,
java.lang.String[] argv)
Creates a command line string from program name and arguments.
|
static java.lang.Object |
toArray(java.lang.Object value)
Converts a wrapped Java primitive to a primitive array.
|
static java.lang.String |
toString(java.lang.Object attValue)
Converts an attribute value to a string.
|
public static final java.lang.String SPLIT_STRING
public static java.lang.String collapse(java.lang.String attValue)
attValue
- the attribute value to collapse.public static java.lang.Object collapse(java.lang.Object attValue)
attValue
- the attribute value to collapse.collapse(String)
public static java.lang.String format(java.lang.String attValue, java.lang.String split)
attValue
- the attribute value to format.split
- the string to use for splitting composite values.public static java.lang.String append(java.lang.String attValue, java.lang.String appendValue)
attValue
- the existing attribute value, may be null.appendValue
- the attribute value to append.public static java.lang.Object toArray(java.lang.Object value) throws java.lang.ClassNotFoundException
value
- the object value to convert.java.lang.ClassNotFoundException
- if the value class is unknown.public static java.lang.Object append(java.lang.Object attValue, java.lang.Object appendValue)
attValue
- the existing attribute value, may be null.appendValue
- the attribute value to append.public static java.lang.String getCommandLine(java.lang.String prog, java.lang.String[] argv)
prog
- the program name.argv
- the array of arguments.public static java.lang.String toString(java.lang.Object attValue)