public class ImportUtil 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 |
---|
ImportUtil() |
Modifier and Type | Method and Description |
---|---|
static org.jdom.Element |
parseField(org.jdom.Element elt,
java.lang.String name)
Returns a named field under a given elt.
|
static boolean |
parseFieldBoolean(org.jdom.Element elt,
java.lang.String name)
Returns the boolean of the given field.
|
static boolean[] |
parseFieldBooleanArray(org.jdom.Element elt,
java.lang.String name)
Returns the boolean array of the given field.
|
static java.util.List<java.lang.Boolean> |
parseFieldBooleanList(org.jdom.Element elt,
java.lang.String name)
Returns the boolean set of the given field.
|
static java.util.Set<java.lang.Boolean> |
parseFieldBooleanSet(org.jdom.Element elt,
java.lang.String name)
Returns the boolean set of the given field.
|
static Data |
parseFieldData(org.jdom.Element elt,
java.lang.String name)
Returns the data of the given field.
|
static Data[] |
parseFieldDataArray(org.jdom.Element elt,
java.lang.String name,
java.lang.Class clazz)
Returns the data array of the given field.
|
static <T extends Data> |
parseFieldDataList(org.jdom.Element elt,
java.lang.String name,
java.lang.Class<T> clazz)
Returns the data list of the given field.
|
static <T extends Data> |
parseFieldDataSet(org.jdom.Element elt,
java.lang.String name,
java.lang.Class<T> clazz)
Returns the data set of the given field.
|
static java.util.Date |
parseFieldDate(org.jdom.Element elt,
java.lang.String name)
Returns the date of the given field.
|
static java.util.Date[] |
parseFieldDateArray(org.jdom.Element elt,
java.lang.String name)
Returns the date array of the given field.
|
static java.util.List<java.util.Date> |
parseFieldDateList(org.jdom.Element elt,
java.lang.String name)
Returns the date list of the given field.
|
static java.util.Set<java.util.Date> |
parseFieldDateSet(org.jdom.Element elt,
java.lang.String name)
Returns the date set of the given field.
|
static double |
parseFieldDouble(org.jdom.Element elt,
java.lang.String name)
Returns the double of the given field.
|
static double[] |
parseFieldDoubleArray(org.jdom.Element elt,
java.lang.String name)
Returns the double array of the given field.
|
static java.util.List<java.lang.Double> |
parseFieldDoubleList(org.jdom.Element elt,
java.lang.String name)
Returns the double set of the given field.
|
static java.util.Set<java.lang.Double> |
parseFieldDoubleSet(org.jdom.Element elt,
java.lang.String name)
Returns the double set of the given field.
|
static int |
parseFieldInt(org.jdom.Element elt,
java.lang.String name)
Returns the int of the given field.
|
static int[] |
parseFieldIntArray(org.jdom.Element elt,
java.lang.String name)
Returns the int array of the given field.
|
static java.util.List<java.lang.Integer> |
parseFieldIntList(org.jdom.Element elt,
java.lang.String name)
Returns the int set of the given field.
|
static java.util.Set<java.lang.Integer> |
parseFieldIntSet(org.jdom.Element elt,
java.lang.String name)
Returns the int set of the given field.
|
static long |
parseFieldLong(org.jdom.Element elt,
java.lang.String name)
Returns the long of the given field.
|
static long[] |
parseFieldLongArray(org.jdom.Element elt,
java.lang.String name)
Returns the long array of the given field.
|
static java.util.List<java.lang.Long> |
parseFieldLongList(org.jdom.Element elt,
java.lang.String name)
Returns the long set of the given field.
|
static java.util.Set<java.lang.Long> |
parseFieldLongSet(org.jdom.Element elt,
java.lang.String name)
Returns the long set of the given field.
|
static java.lang.String |
parseFieldMemberLogin(org.jdom.Element elt,
java.lang.String name)
Returns the login of the given member field.
|
static java.util.List<org.jdom.Element> |
parseFieldsByClass(org.jdom.Element elt,
java.lang.String className)
Returns all the children with the given class attribute.
|
static java.lang.String |
parseFieldText(org.jdom.Element elt,
java.lang.String name)
Returns the text of the given field.
|
static java.lang.String |
parseFieldText(org.jdom.Element elt,
java.lang.String name,
boolean trim)
Returns the text of the given field.
|
static java.lang.String[] |
parseFieldTextArray(org.jdom.Element elt,
java.lang.String name)
Returns the array of text of the given field.
|
static java.lang.String[] |
parseFieldTextArray(org.jdom.Element elt,
java.lang.String name,
boolean trim)
Returns the array of text of the given field.
|
static java.util.HashMap<java.lang.String,java.lang.String[]> |
parseFieldTextArrayML(org.jdom.Element elt,
java.lang.String name)
Returns the language map of text array of the given field.
|
static java.util.List<java.lang.String> |
parseFieldTextList(org.jdom.Element elt,
java.lang.String name)
Returns the set of text of the given field.
|
static java.util.List<java.lang.String> |
parseFieldTextList(org.jdom.Element elt,
java.lang.String name,
boolean trim)
Returns the set of text of the given field.
|
static java.util.HashMap<java.lang.String,java.lang.String> |
parseFieldTextML(org.jdom.Element elt,
java.lang.String name)
Returns the language map of the given field.
|
static java.util.Set<java.lang.String> |
parseFieldTextSet(org.jdom.Element elt,
java.lang.String name)
Returns the list of text of the given field.
|
static java.util.Set<java.lang.String> |
parseFieldTextSet(org.jdom.Element elt,
java.lang.String name,
boolean trim)
Returns the list of text of the given field.
|
static java.lang.String |
parseFieldWiki(org.jdom.Element elt,
java.lang.String name)
Returns the text of the given wiki field.
|
static java.lang.String[] |
parseFieldWikiArray(org.jdom.Element elt,
java.lang.String name)
Returns the array of text of the given wiki field.
|
static java.util.HashMap<java.lang.String,java.lang.String[]> |
parseFieldWikiArrayML(org.jdom.Element elt,
java.lang.String name)
Returns the language map of text array of the given wiki field.
|
static java.util.List<java.lang.String> |
parseFieldWikiList(org.jdom.Element elt,
java.lang.String name)
Returns the list of text of the given wiki field.
|
static java.util.HashMap<java.lang.String,java.lang.String> |
parseFieldWikiML(org.jdom.Element elt,
java.lang.String name)
Returns the language map of the given wiki field.
|
static java.util.Set<java.lang.String> |
parseFieldWikiSet(org.jdom.Element elt,
java.lang.String name)
Returns the set of text of the given wiki field.
|
static java.lang.String |
parseFieldWysiwyg(org.jdom.Element elt,
java.lang.String name)
Returns the text of the given wysiwyg field.
|
static java.lang.String[] |
parseFieldWysiwygArray(org.jdom.Element elt,
java.lang.String name)
Returns the array of text of the given wysiwyg field.
|
static java.util.HashMap<java.lang.String,java.lang.String[]> |
parseFieldWysiwygArrayML(org.jdom.Element elt,
java.lang.String name)
Returns the language map of text array of the given wysiwyg field.
|
static java.util.List<java.lang.String> |
parseFieldWysiwygList(org.jdom.Element elt,
java.lang.String name)
Returns the list of text of the given wysiwyg field.
|
static java.util.HashMap<java.lang.String,java.lang.String> |
parseFieldWysiwygML(org.jdom.Element elt,
java.lang.String name)
Returns the language map of the given wysiwyg field.
|
static java.util.Set<java.lang.String> |
parseFieldWysiwygSet(org.jdom.Element elt,
java.lang.String name)
Returns the set of text of the given wysiwyg field.
|
public static final java.lang.String REVISION
public static org.jdom.Element parseField(org.jdom.Element elt, java.lang.String name)
elt
- a JDom Elementname
- the name of the field.public static java.lang.String parseFieldText(org.jdom.Element elt, java.lang.String name, boolean trim)
elt
- the JDOM elementname
- the name of the fieldtrim
- if true, trim the textpublic static java.lang.String parseFieldText(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static java.lang.String[] parseFieldTextArray(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static java.lang.String[] parseFieldTextArray(org.jdom.Element elt, java.lang.String name, boolean trim)
elt
- the JDOM elementname
- the name of the fieldtrim
- if true, trim the textpublic static java.util.Set<java.lang.String> parseFieldTextSet(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static java.util.Set<java.lang.String> parseFieldTextSet(org.jdom.Element elt, java.lang.String name, boolean trim)
elt
- the JDOM elementname
- the name of the fieldtrim
- if true, trim the textpublic static java.util.List<java.lang.String> parseFieldTextList(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static java.util.List<java.lang.String> parseFieldTextList(org.jdom.Element elt, java.lang.String name, boolean trim)
elt
- the JDOM elementname
- the name of the fieldtrim
- if true, trim the textpublic static java.util.HashMap<java.lang.String,java.lang.String> parseFieldTextML(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static java.util.HashMap<java.lang.String,java.lang.String[]> parseFieldTextArrayML(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static java.lang.String parseFieldWiki(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static java.lang.String[] parseFieldWikiArray(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static java.util.Set<java.lang.String> parseFieldWikiSet(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static java.util.List<java.lang.String> parseFieldWikiList(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static java.util.HashMap<java.lang.String,java.lang.String> parseFieldWikiML(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static java.util.HashMap<java.lang.String,java.lang.String[]> parseFieldWikiArrayML(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static java.lang.String parseFieldWysiwyg(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static java.lang.String[] parseFieldWysiwygArray(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static java.util.Set<java.lang.String> parseFieldWysiwygSet(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static java.util.List<java.lang.String> parseFieldWysiwygList(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static java.util.HashMap<java.lang.String,java.lang.String> parseFieldWysiwygML(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static java.util.HashMap<java.lang.String,java.lang.String[]> parseFieldWysiwygArrayML(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static java.util.Date parseFieldDate(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static java.util.Date[] parseFieldDateArray(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static java.util.Set<java.util.Date> parseFieldDateSet(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static java.util.List<java.util.Date> parseFieldDateList(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static Data parseFieldData(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static Data[] parseFieldDataArray(org.jdom.Element elt, java.lang.String name, java.lang.Class clazz)
elt
- the JDOM elementname
- the name of the fieldclazz
- the class of the datapublic static <T extends Data> java.util.Set<T> parseFieldDataSet(org.jdom.Element elt, java.lang.String name, java.lang.Class<T> clazz)
T
- the type of dataelt
- the JDOM elementname
- the name of the fieldclazz
- the class of the datapublic static <T extends Data> java.util.List<T> parseFieldDataList(org.jdom.Element elt, java.lang.String name, java.lang.Class<T> clazz)
T
- the type of dataelt
- the JDOM elementname
- the name of the fieldclazz
- the class of the datapublic static int parseFieldInt(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static int[] parseFieldIntArray(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static java.util.Set<java.lang.Integer> parseFieldIntSet(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static java.util.List<java.lang.Integer> parseFieldIntList(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static long parseFieldLong(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static long[] parseFieldLongArray(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static java.util.Set<java.lang.Long> parseFieldLongSet(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static java.util.List<java.lang.Long> parseFieldLongList(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static double parseFieldDouble(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static double[] parseFieldDoubleArray(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static java.util.Set<java.lang.Double> parseFieldDoubleSet(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static java.util.List<java.lang.Double> parseFieldDoubleList(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static boolean parseFieldBoolean(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static boolean[] parseFieldBooleanArray(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static java.util.Set<java.lang.Boolean> parseFieldBooleanSet(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static java.util.List<java.lang.Boolean> parseFieldBooleanList(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM elementname
- the name of the fieldpublic static java.lang.String parseFieldMemberLogin(org.jdom.Element elt, java.lang.String name)
elt
- the JDOM Elementname
- the name of the fieldpublic static java.util.List<org.jdom.Element> parseFieldsByClass(org.jdom.Element elt, java.lang.String className)
elt
- the JDOM ElementclassName
- the fully qualified class name.Copyright © 2001-2010 Jalios SA. All Rights Reserved.