public class MetaDataToXml
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FORCE_LOWER_CASE |
static java.lang.String |
FORCE_UPPER_CASE |
| Constructor and Description |
|---|
MetaDataToXml() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
caseDirective(java.lang.String caseDirective,
java.lang.String label)
Convert the label to a case if the caseDirective parameter is set to
FORCE_UPPER_CASE or FORCE_LOWER_CASE. |
XMLObject |
convertToXml(DatabaseEntry databaseEntry,
java.lang.String outputCaseDirective) |
public static final java.lang.String FORCE_LOWER_CASE
public static final java.lang.String FORCE_UPPER_CASE
public XMLObject convertToXml(DatabaseEntry databaseEntry, java.lang.String outputCaseDirective)
databaseEntry - - The bean representation of the database metadataoutputCaseDirective - - if not null can force labels to be upper case or lower case. @See FORCE_UPPER_CASE and FORCE_LOWER_CASEpublic static java.lang.String caseDirective(java.lang.String caseDirective,
java.lang.String label)
FORCE_UPPER_CASE or FORCE_LOWER_CASE.
If the caseDirective parameter is null or does not match the upper or lower case pattern than the label is returned untouched.caseDirective - - can be null or FORCE_UPPER_CASE or FORCE_LOWER_CASElabel - - the string to convert to uppercase or lowercase.