public class UserDefined extends Object implements XMLConvertible
| Modifier and Type | Method and Description |
|---|---|
void |
appendXMLContent(XMLUtil util,
Appendable appendable)
Write the XML format for this object.
|
static UserDefined |
fromBoolean(String name,
boolean value) |
static UserDefined |
fromDate(String name,
Date value) |
static UserDefined |
fromFloat(String name,
Number value) |
static UserDefined |
fromString(String name,
String value) |
static UserDefined |
fromTime(String name,
Date value) |
public static UserDefined fromBoolean(String name, boolean value)
name - the name of the metadatavalue - the boolean valuepublic static UserDefined fromDate(String name, Date value)
name - the name of the metadatavalue - the date valuepublic static UserDefined fromFloat(String name, Number value)
name - the name of the metadatavalue - the numeric valuepublic static UserDefined fromTime(String name, Date value)
name - the name of the metadatavalue - the date valuepublic static UserDefined fromString(String name, String value)
name - the name of the metadatavalue - the string valuepublic void appendXMLContent(XMLUtil util, Appendable appendable) throws IOException
XMLConvertibleappendXMLContent in interface XMLConvertibleutil - a helper objectappendable - the appendable to append data toIOException - if the style can't be addedCopyright © 2016–2021. All rights reserved.