|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jalios.jcms.mashup.ExportUtil
public class ExportUtil
This class provides utility methods for the ExportManager.
Field Summary | |
---|---|
static String |
REVISION
|
Fields inherited from interface com.jalios.jcms.mashup.MashupConstants |
---|
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 Summary | |
---|---|
ExportUtil()
|
Method Summary | |
---|---|
static String |
exportField(int indentLevel,
String name,
boolean value)
Returns a XML representation of a primitive boolean field. |
static String |
exportField(int indentLevel,
String name,
boolean[] value)
Returns a XML representation of a boolean array field. |
static String |
exportField(int indentLevel,
String name,
Collection<?> values)
Returns a XML representation of a data collection field (Data or String). |
static String |
exportField(int indentLevel,
String name,
Collection<?> values,
String nameML)
Returns a XML representation of a data collection field (Data or String). |
static String |
exportField(int indentLevel,
String name,
Data value)
Returns a XML representation of a data field. |
static String |
exportField(int indentLevel,
String name,
Data[] value)
Returns a XML representation of a data array field. |
static String |
exportField(int indentLevel,
String name,
Data[] value,
String mlField)
Returns a XML representation of a Data array field. |
static String |
exportField(int indentLevel,
String name,
Data value,
String mlField)
Returns a XML representation of a text field. |
static String |
exportField(int indentLevel,
String name,
Date value)
Returns a XML representation of a date field. |
static String |
exportField(int indentLevel,
String name,
Date[] value)
Returns a XML representation of a date array field. |
static String |
exportField(int indentLevel,
String name,
double value)
Returns a XML representation of a primitive double field. |
static String |
exportField(int indentLevel,
String name,
double[] value)
Returns a XML representation of a primitive double array field. |
static String |
exportField(int indentLevel,
String name,
int value)
Returns a XML representation of a primitive integer field. |
static String |
exportField(int indentLevel,
String name,
int[] value)
Returns a XML representation of a primitive integer array field. |
static String |
exportField(int indentLevel,
String name,
Locale value)
Returns a XML representation of a Locale field. |
static String |
exportField(int indentLevel,
String name,
long value)
Returns a XML representation of a primitive long integer field. |
static String |
exportField(int indentLevel,
String name,
long[] value)
Returns a XML representation of a primitive long integer array field. |
static String |
exportField(int indentLevel,
String name,
Map map)
Returns a XML representation of a map field. |
static String |
exportField(int indentLevel,
String name,
String value)
Returns a XML representation of a text field. |
static String |
exportField(int indentLevel,
String name,
String[] value)
Returns a XML representation of a String array field. |
static String |
exportField(int indentLevel,
String name,
String[] value,
boolean isAbstract)
Returns a XML representation of a String array field. |
static String |
exportField(int indentLevel,
String name,
String[] value,
String mlField)
Returns a XML representation of a String array field. |
static String |
exportField(int indentLevel,
String name,
String[] value,
String mlField,
boolean isAbstract)
Returns a XML representation of a String array field. |
static String |
exportField(int indentLevel,
String name,
String value,
boolean isAbstract)
Returns a XML representation of a text field. |
static String |
exportField(int indentLevel,
String name,
String value,
String mlField)
Returns a XML representation of a text field. |
static String |
exportField(int indentLevel,
String name,
String value,
String[] attNames,
String[] attValues)
Returns a XML representation of a text field with attributes |
static String |
exportField(int indentLevel,
String name,
String value,
String mlField,
boolean isAbstract)
Returns a XML representation of a text field. |
static String |
exportFile(int indentLevel,
String fieldName,
FileDocument doc)
Returns a XML representation of a FileDocument. |
static String |
exportFile(int indentLevel,
String fieldName,
FileDocument[] docs)
Returns a XML representation of an array of FileDocument. |
static String |
exportFile(int indentLevel,
String fieldName,
String filename)
Returns a XML representation of a file. |
static String |
exportFile(int indentLevel,
String fieldName,
String[] filenames)
Returns a XML representation of an array of files. |
static String |
exportFile(int indentLevel,
String fieldName,
String filename,
String id)
Returns a XML representation of a file. |
static String |
exportRelated(int indentLevel,
String name,
Object value)
Returns a XML representation of a related (result of a method, after computation or search from an index). |
static String |
getIndent(int indentLevel)
Returns a String of indentLevel * INDENT_UNIT. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String REVISION
Constructor Detail |
---|
public ExportUtil()
Method Detail |
---|
public static String exportRelated(int indentLevel, String name, Object value)
indentLevel
- the indentation levelname
- the realted's namevalue
- the related's value
public static String exportField(int indentLevel, String name, String value)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's value
public static String exportField(int indentLevel, String name, String value, boolean isAbstract)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's valueisAbstract
- is it the abstact field?
public static String exportField(int indentLevel, String name, String value, String mlField)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's valuemlField
- the name of the ML Field bound to this field
public static String exportField(int indentLevel, String name, String value, 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 String exportField(int indentLevel, String name, Data value, String mlField)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's valuemlField
- the name of the ML Field bound to this field
public static String exportField(int indentLevel, String name, String value, String[] attNames, String[] attValues)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's valueattNames
- an array of attribute namesattValues
- an array of attribute values
public static String exportField(int indentLevel, String name, Data[] value, String mlField)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's valuemlField
- the name of the ML Field bound to this field
public static String exportField(int indentLevel, String name, Data value)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's value
public static String exportField(int indentLevel, String name, Data[] value)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's value
public static String exportField(int indentLevel, String name, Collection<?> values)
indentLevel
- the indentation levelname
- the field's namevalues
- the collection of Data or String
public static String exportField(int indentLevel, String name, Collection<?> values, 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 field
public static String exportField(int indentLevel, String name, String[] value)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's value
public static String exportField(int indentLevel, String name, String[] value, boolean isAbstract)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's valueisAbstract
- is it the abstact field?
public static String exportField(int indentLevel, String name, String[] value, String mlField)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's valuemlField
- the name of the ML Field bound to this field
public static String exportField(int indentLevel, String name, String[] value, 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 String exportField(int indentLevel, String name, Date value)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's value
public static String exportField(int indentLevel, String name, Date[] value)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's value
public static String exportField(int indentLevel, String name, int value)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's value
public static String exportField(int indentLevel, String name, int[] value)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's value
public static String exportField(int indentLevel, String name, long value)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's value
public static String exportField(int indentLevel, String name, long[] value)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's value
public static String exportField(int indentLevel, String name, double value)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's value
public static String exportField(int indentLevel, String name, double[] value)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's value
public static String exportField(int indentLevel, String name, boolean value)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's value
public static String exportField(int indentLevel, String name, Locale value)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's value
public static String exportField(int indentLevel, String name, boolean[] value)
indentLevel
- the indentation levelname
- the field's namevalue
- the field's value
public static String exportField(int indentLevel, String name, Map map)
indentLevel
- the indentation levelname
- the field's namemap
- the map to be exported
public static String exportFile(int indentLevel, String fieldName, String filename)
indentLevel
- the indentation levelfieldName
- the field's namefilename
- the filename
public static String exportFile(int indentLevel, String fieldName, String[] filenames)
indentLevel
- the indentation levelfieldName
- the field's namefilenames
- an array of filenames
public static String exportFile(int indentLevel, String fieldName, String filename, String id)
indentLevel
- the indentation levelfieldName
- the field's namefilename
- the filenameid
- the id of the FileDocument bound to this file
public static String exportFile(int indentLevel, String fieldName, FileDocument doc)
indentLevel
- the indentation levelfieldName
- the field's namedoc
- the FileDocument
public static String exportFile(int indentLevel, String fieldName, FileDocument[] docs)
indentLevel
- the indentation levelfieldName
- the field's namedocs
- the array of FileDocument
public static String getIndent(int indentLevel)
indentLevel
- the indentation level
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |