public class ExportUtil extends java.lang.Object implements MashupConstants
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
DATA_TAG, DATASET_TAG, FIELD_CLASS, FIELD_ENTRY, FIELD_ITEM, FIELD_KEY, FIELD_NAME, FIELD_TAG, FIELD_VALUE, FILE_FIELD, FILE_ID, FILE_MTIME, FILE_SIZE, FILE_TAG, FILE_TICKET, FILESET_TAG, RELATED_TAG
Constructor and Description |
---|
ExportUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
exportField(int indentLevel,
java.lang.String name,
boolean value)
Returns a XML representation of a primitive boolean field.
|
static java.lang.String |
exportField(int indentLevel,
java.lang.String name,
boolean[] value)
Returns a XML representation of a boolean array field.
|
static java.lang.String |
exportField(int indentLevel,
java.lang.String name,
java.util.Collection<?> values)
Returns a XML representation of a data collection field (Data or String).
|
static java.lang.String |
exportField(int indentLevel,
java.lang.String name,
java.util.Collection<?> values,
java.lang.String nameML)
Returns a XML representation of a data collection field (Data or String).
|
static java.lang.String |
exportField(int indentLevel,
java.lang.String name,
Data value)
Returns a XML representation of a data field.
|
static java.lang.String |
exportField(int indentLevel,
java.lang.String name,
Data[] value)
Returns a XML representation of a data array field.
|
static java.lang.String |
exportField(int indentLevel,
java.lang.String name,
Data[] value,
java.lang.String mlField)
Returns a XML representation of a Data array field.
|
static java.lang.String |
exportField(int indentLevel,
java.lang.String name,
Data value,
java.lang.String mlField)
Returns a XML representation of a text field.
|
static java.lang.String |
exportField(int indentLevel,
java.lang.String name,
java.util.Date value)
Returns a XML representation of a date field.
|
static java.lang.String |
exportField(int indentLevel,
java.lang.String name,
java.util.Date[] value)
Returns a XML representation of a date array field.
|
static java.lang.String |
exportField(int indentLevel,
java.lang.String name,
double value)
Returns a XML representation of a primitive double field.
|
static java.lang.String |
exportField(int indentLevel,
java.lang.String name,
double[] value)
Returns a XML representation of a primitive double array field.
|
static java.lang.String |
exportField(int indentLevel,
java.lang.String name,
int value)
Returns a XML representation of a primitive integer field.
|
static java.lang.String |
exportField(int indentLevel,
java.lang.String name,
int[] value)
Returns a XML representation of a primitive integer array field.
|
static java.lang.String |
exportField(int indentLevel,
java.lang.String name,
java.util.Locale value)
Returns a XML representation of a Locale field.
|
static java.lang.String |
exportField(int indentLevel,
java.lang.String name,
long value)
Returns a XML representation of a primitive long integer field.
|
static java.lang.String |
exportField(int indentLevel,
java.lang.String name,
long[] value)
Returns a XML representation of a primitive long integer array field.
|
static java.lang.String |
exportField(int indentLevel,
java.lang.String name,
java.util.Map map)
Returns a XML representation of a map field.
|
static java.lang.String |
exportField(int indentLevel,
java.lang.String name,
java.lang.String value)
Returns a XML representation of a text field.
|
static java.lang.String |
exportField(int indentLevel,
java.lang.String name,
java.lang.String[] value)
Returns a XML representation of a String array field.
|
static java.lang.String |
exportField(int indentLevel,
java.lang.String name,
java.lang.String[] value,
boolean isAbstract)
Returns a XML representation of a String array field.
|
static java.lang.String |
exportField(int indentLevel,
java.lang.String name,
java.lang.String[] value,
java.lang.String mlField)
Returns a XML representation of a String array field.
|
static java.lang.String |
exportField(int indentLevel,
java.lang.String name,
java.lang.String[] value,
java.lang.String mlField,
boolean isAbstract)
Returns a XML representation of a String array field.
|
static java.lang.String |
exportField(int indentLevel,
java.lang.String name,
java.lang.String value,
boolean isAbstract)
Returns a XML representation of a text field.
|
static java.lang.String |
exportField(int indentLevel,
java.lang.String name,
java.lang.String value,
java.lang.String mlField)
Returns a XML representation of a text field.
|
static java.lang.String |
exportField(int indentLevel,
java.lang.String name,
java.lang.String value,
java.lang.String[] attNames,
java.lang.String[] attValues)
Returns a XML representation of a text field with attributes
|
static java.lang.String |
exportField(int indentLevel,
java.lang.String name,
java.lang.String value,
java.lang.String mlField,
boolean isAbstract)
Returns a XML representation of a text field.
|
static java.lang.String |
exportFile(int indentLevel,
java.lang.String fieldName,
FileDocument doc)
Returns a XML representation of a FileDocument.
|
static java.lang.String |
exportFile(int indentLevel,
java.lang.String fieldName,
FileDocument[] docs)
Returns a XML representation of an array of FileDocument.
|
static java.lang.String |
exportFile(int indentLevel,
java.lang.String fieldName,
java.lang.String filename)
Returns a XML representation of a file.
|
static java.lang.String |
exportFile(int indentLevel,
java.lang.String fieldName,
java.lang.String[] filenames)
Returns a XML representation of an array of files.
|
static java.lang.String |
exportFile(int indentLevel,
java.lang.String fieldName,
java.lang.String filename,
java.lang.String id)
Returns a XML representation of a file.
|
static java.lang.String |
exportRelated(int indentLevel,
java.lang.String name,
java.lang.Object value)
Returns a XML representation of a related (result of a method, after computation or search from an index).
|
static java.lang.String |
getIndent(int indentLevel)
Returns a String of indentLevel * INDENT_UNIT.
|
public static final java.lang.String REVISION
public static java.lang.String exportRelated(int indentLevel, java.lang.String name, java.lang.Object value)
indentLevel
- the indentation levelname
- the realted's namevalue
- the related's valuepublic static java.lang.String exportField(int indentLevel, java.lang.String name, java.lang.String value)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's valuepublic static java.lang.String exportField(int indentLevel, java.lang.String name, java.lang.String value, boolean isAbstract)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's valueisAbstract
- is it the abstact field?public static java.lang.String exportField(int indentLevel, java.lang.String name, java.lang.String value, java.lang.String mlField)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's valuemlField
- the name of the ML Field bound to this fieldpublic static java.lang.String exportField(int indentLevel, java.lang.String name, java.lang.String value, java.lang.String mlField, boolean isAbstract)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's valuemlField
- the name of the ML Field bound to this fieldisAbstract
- is it the abstact field?public static java.lang.String exportField(int indentLevel, java.lang.String name, Data value, java.lang.String mlField)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's valuemlField
- the name of the ML Field bound to this fieldpublic static java.lang.String exportField(int indentLevel, java.lang.String name, java.lang.String value, java.lang.String[] attNames, java.lang.String[] attValues)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's valueattNames
- an array of attribute namesattValues
- an array of attribute valuespublic static java.lang.String exportField(int indentLevel, java.lang.String name, Data[] value, java.lang.String mlField)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's valuemlField
- the name of the ML Field bound to this fieldpublic static java.lang.String exportField(int indentLevel, java.lang.String name, Data value)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's valuepublic static java.lang.String exportField(int indentLevel, java.lang.String name, Data[] value)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's valuepublic static java.lang.String exportField(int indentLevel, java.lang.String name, java.util.Collection<?> values)
indentLevel
- the indentation levelname
- the field's namevalues
- the collection of Data or Stringpublic static java.lang.String exportField(int indentLevel, java.lang.String name, java.util.Collection<?> values, java.lang.String nameML)
indentLevel
- the indentation levelname
- the field's namevalues
- the collection of Data or StringnameML
- the name of the ML Field bound to this fieldpublic static java.lang.String exportField(int indentLevel, java.lang.String name, java.lang.String[] value)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's valuepublic static java.lang.String exportField(int indentLevel, java.lang.String name, java.lang.String[] value, boolean isAbstract)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's valueisAbstract
- is it the abstact field?public static java.lang.String exportField(int indentLevel, java.lang.String name, java.lang.String[] value, java.lang.String mlField)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's valuemlField
- the name of the ML Field bound to this fieldpublic static java.lang.String exportField(int indentLevel, java.lang.String name, java.lang.String[] value, java.lang.String mlField, boolean isAbstract)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's valuemlField
- the name of the ML Field bound to this fieldisAbstract
- is it the abstact field?public static java.lang.String exportField(int indentLevel, java.lang.String name, java.util.Date value)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's valuepublic static java.lang.String exportField(int indentLevel, java.lang.String name, java.util.Date[] value)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's valuepublic static java.lang.String exportField(int indentLevel, java.lang.String name, int value)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's valuepublic static java.lang.String exportField(int indentLevel, java.lang.String name, int[] value)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's valuepublic static java.lang.String exportField(int indentLevel, java.lang.String name, long value)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's valuepublic static java.lang.String exportField(int indentLevel, java.lang.String name, long[] value)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's valuepublic static java.lang.String exportField(int indentLevel, java.lang.String name, double value)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's valuepublic static java.lang.String exportField(int indentLevel, java.lang.String name, double[] value)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's valuepublic static java.lang.String exportField(int indentLevel, java.lang.String name, boolean value)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's valuepublic static java.lang.String exportField(int indentLevel, java.lang.String name, java.util.Locale value)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's valuepublic static java.lang.String exportField(int indentLevel, java.lang.String name, boolean[] value)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's valuepublic static java.lang.String exportField(int indentLevel, java.lang.String name, java.util.Map map)
indentLevel
- the indentation levelname
- the field's namemap
- the map to be exportedpublic static java.lang.String exportFile(int indentLevel, java.lang.String fieldName, java.lang.String filename)
indentLevel
- the indentation levelfieldName
- the field's namefilename
- the filenamepublic static java.lang.String exportFile(int indentLevel, java.lang.String fieldName, java.lang.String[] filenames)
indentLevel
- the indentation levelfieldName
- the field's namefilenames
- an array of filenamespublic static java.lang.String exportFile(int indentLevel, java.lang.String fieldName, java.lang.String filename, java.lang.String id)
indentLevel
- the indentation levelfieldName
- the field's namefilename
- the filenameid
- the id of the FileDocument bound to this filepublic static java.lang.String exportFile(int indentLevel, java.lang.String fieldName, FileDocument doc)
indentLevel
- the indentation levelfieldName
- the field's namedoc
- the FileDocumentpublic static java.lang.String exportFile(int indentLevel, java.lang.String fieldName, FileDocument[] docs)
indentLevel
- the indentation levelfieldName
- the field's namedocs
- the array of FileDocumentpublic static java.lang.String getIndent(int indentLevel)
indentLevel
- the indentation levelCopyright © 2001-2010 Jalios SA. All Rights Reserved.