|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jalios.jcms.mashup.ImportUtil
public class ImportUtil
This class provides utility methods for the ImportManager.
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 | |
---|---|
ImportUtil()
|
Method Summary | ||
---|---|---|
static org.jdom.Element |
parseField(org.jdom.Element elt,
String name)
Returns a named field under a given elt. |
|
static boolean |
parseFieldBoolean(org.jdom.Element elt,
String name)
Returns the boolean of the given field. |
|
static boolean[] |
parseFieldBooleanArray(org.jdom.Element elt,
String name)
Returns the boolean array of the given field. |
|
static List<Boolean> |
parseFieldBooleanList(org.jdom.Element elt,
String name)
Returns the boolean set of the given field. |
|
static Set<Boolean> |
parseFieldBooleanSet(org.jdom.Element elt,
String name)
Returns the boolean set of the given field. |
|
static Data |
parseFieldData(org.jdom.Element elt,
String name)
Returns the data of the given field. |
|
static Data[] |
parseFieldDataArray(org.jdom.Element elt,
String name,
Class clazz)
Returns the data array of the given field. |
|
static
|
parseFieldDataList(org.jdom.Element elt,
String name,
Class<T> clazz)
Returns the data list of the given field. |
|
static
|
parseFieldDataSet(org.jdom.Element elt,
String name,
Class<T> clazz)
Returns the data set of the given field. |
|
static Date |
parseFieldDate(org.jdom.Element elt,
String name)
Returns the date of the given field. |
|
static Date[] |
parseFieldDateArray(org.jdom.Element elt,
String name)
Returns the date array of the given field. |
|
static List<Date> |
parseFieldDateList(org.jdom.Element elt,
String name)
Returns the date list of the given field. |
|
static Set<Date> |
parseFieldDateSet(org.jdom.Element elt,
String name)
Returns the date set of the given field. |
|
static double |
parseFieldDouble(org.jdom.Element elt,
String name)
Returns the double of the given field. |
|
static double[] |
parseFieldDoubleArray(org.jdom.Element elt,
String name)
Returns the double array of the given field. |
|
static List<Double> |
parseFieldDoubleList(org.jdom.Element elt,
String name)
Returns the double set of the given field. |
|
static Set<Double> |
parseFieldDoubleSet(org.jdom.Element elt,
String name)
Returns the double set of the given field. |
|
static int |
parseFieldInt(org.jdom.Element elt,
String name)
Returns the int of the given field. |
|
static int[] |
parseFieldIntArray(org.jdom.Element elt,
String name)
Returns the int array of the given field. |
|
static List<Integer> |
parseFieldIntList(org.jdom.Element elt,
String name)
Returns the int set of the given field. |
|
static Set<Integer> |
parseFieldIntSet(org.jdom.Element elt,
String name)
Returns the int set of the given field. |
|
static long |
parseFieldLong(org.jdom.Element elt,
String name)
Returns the long of the given field. |
|
static long[] |
parseFieldLongArray(org.jdom.Element elt,
String name)
Returns the long array of the given field. |
|
static List<Long> |
parseFieldLongList(org.jdom.Element elt,
String name)
Returns the long set of the given field. |
|
static Set<Long> |
parseFieldLongSet(org.jdom.Element elt,
String name)
Returns the long set of the given field. |
|
static String |
parseFieldMemberLogin(org.jdom.Element elt,
String name)
Returns the login of the given member field. |
|
static List<org.jdom.Element> |
parseFieldsByClass(org.jdom.Element elt,
String className)
Returns all the children with the given class attribute. |
|
static String |
parseFieldText(org.jdom.Element elt,
String name)
Returns the text of the given field. |
|
static String |
parseFieldText(org.jdom.Element elt,
String name,
boolean trim)
Returns the text of the given field. |
|
static String[] |
parseFieldTextArray(org.jdom.Element elt,
String name)
Returns the array of text of the given field. |
|
static String[] |
parseFieldTextArray(org.jdom.Element elt,
String name,
boolean trim)
Returns the array of text of the given field. |
|
static HashMap<String,String[]> |
parseFieldTextArrayML(org.jdom.Element elt,
String name)
Returns the language map of text array of the given field. |
|
static List<String> |
parseFieldTextList(org.jdom.Element elt,
String name)
Returns the set of text of the given field. |
|
static List<String> |
parseFieldTextList(org.jdom.Element elt,
String name,
boolean trim)
Returns the set of text of the given field. |
|
static HashMap<String,String> |
parseFieldTextML(org.jdom.Element elt,
String name)
Returns the language map of the given field. |
|
static Set<String> |
parseFieldTextSet(org.jdom.Element elt,
String name)
Returns the list of text of the given field. |
|
static Set<String> |
parseFieldTextSet(org.jdom.Element elt,
String name,
boolean trim)
Returns the list of text of the given field. |
|
static String |
parseFieldWiki(org.jdom.Element elt,
String name)
Returns the text of the given wiki field. |
|
static String[] |
parseFieldWikiArray(org.jdom.Element elt,
String name)
Returns the array of text of the given wiki field. |
|
static HashMap<String,String[]> |
parseFieldWikiArrayML(org.jdom.Element elt,
String name)
Returns the language map of text array of the given wiki field. |
|
static List<String> |
parseFieldWikiList(org.jdom.Element elt,
String name)
Returns the list of text of the given wiki field. |
|
static HashMap<String,String> |
parseFieldWikiML(org.jdom.Element elt,
String name)
Returns the language map of the given wiki field. |
|
static Set<String> |
parseFieldWikiSet(org.jdom.Element elt,
String name)
Returns the set of text of the given wiki field. |
|
static String |
parseFieldWysiwyg(org.jdom.Element elt,
String name)
Returns the text of the given wysiwyg field. |
|
static String[] |
parseFieldWysiwygArray(org.jdom.Element elt,
String name)
Returns the array of text of the given wysiwyg field. |
|
static HashMap<String,String[]> |
parseFieldWysiwygArrayML(org.jdom.Element elt,
String name)
Returns the language map of text array of the given wysiwyg field. |
|
static List<String> |
parseFieldWysiwygList(org.jdom.Element elt,
String name)
Returns the list of text of the given wysiwyg field. |
|
static HashMap<String,String> |
parseFieldWysiwygML(org.jdom.Element elt,
String name)
Returns the language map of the given wysiwyg field. |
|
static Set<String> |
parseFieldWysiwygSet(org.jdom.Element elt,
String name)
Returns the set of text of the given wysiwyg field. |
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 ImportUtil()
Method Detail |
---|
public static org.jdom.Element parseField(org.jdom.Element elt, String name)
elt
- a JDom Elementname
- the name of the field.
public static String parseFieldText(org.jdom.Element elt, String name, boolean trim)
elt
- the JDOM elementname
- the name of the fieldtrim
- if true, trim the text
public static String parseFieldText(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static String[] parseFieldTextArray(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static String[] parseFieldTextArray(org.jdom.Element elt, String name, boolean trim)
elt
- the JDOM elementname
- the name of the fieldtrim
- if true, trim the text
public static Set<String> parseFieldTextSet(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static Set<String> parseFieldTextSet(org.jdom.Element elt, String name, boolean trim)
elt
- the JDOM elementname
- the name of the fieldtrim
- if true, trim the text
public static List<String> parseFieldTextList(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static List<String> parseFieldTextList(org.jdom.Element elt, String name, boolean trim)
elt
- the JDOM elementname
- the name of the fieldtrim
- if true, trim the text
public static HashMap<String,String> parseFieldTextML(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static HashMap<String,String[]> parseFieldTextArrayML(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static String parseFieldWiki(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static String[] parseFieldWikiArray(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static Set<String> parseFieldWikiSet(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static List<String> parseFieldWikiList(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static HashMap<String,String> parseFieldWikiML(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static HashMap<String,String[]> parseFieldWikiArrayML(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static String parseFieldWysiwyg(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static String[] parseFieldWysiwygArray(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static Set<String> parseFieldWysiwygSet(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static List<String> parseFieldWysiwygList(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static HashMap<String,String> parseFieldWysiwygML(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static HashMap<String,String[]> parseFieldWysiwygArrayML(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static Date parseFieldDate(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static Date[] parseFieldDateArray(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static Set<Date> parseFieldDateSet(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static List<Date> parseFieldDateList(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static Data parseFieldData(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static Data[] parseFieldDataArray(org.jdom.Element elt, String name, Class clazz)
elt
- the JDOM elementname
- the name of the field
public static <T extends Data> Set<T> parseFieldDataSet(org.jdom.Element elt, String name, Class<T> clazz)
elt
- the JDOM elementname
- the name of the field
public static <T extends Data> List<T> parseFieldDataList(org.jdom.Element elt, String name, Class<T> clazz)
elt
- the JDOM elementname
- the name of the field
public static int parseFieldInt(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static int[] parseFieldIntArray(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static Set<Integer> parseFieldIntSet(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static List<Integer> parseFieldIntList(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static long parseFieldLong(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static long[] parseFieldLongArray(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static Set<Long> parseFieldLongSet(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static List<Long> parseFieldLongList(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static double parseFieldDouble(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static double[] parseFieldDoubleArray(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static Set<Double> parseFieldDoubleSet(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static List<Double> parseFieldDoubleList(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static boolean parseFieldBoolean(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static boolean[] parseFieldBooleanArray(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static Set<Boolean> parseFieldBooleanSet(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static List<Boolean> parseFieldBooleanList(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
public static String parseFieldMemberLogin(org.jdom.Element elt, String name)
elt
- the JDOM Elementname
- the name of the field
public static List<org.jdom.Element> parseFieldsByClass(org.jdom.Element elt, String className)
elt
- the JDOM ElementclassName
- the fully qualified class name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |