|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.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 |
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 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 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 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 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 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 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 HashMap<String,String> |
parseFieldTextML(org.jdom.Element elt,
String name)
Returns the language map 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 HashMap<String,String> |
parseFieldWikiML(org.jdom.Element elt,
String name)
Returns the language map 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 HashMap<String,String> |
parseFieldWysiwygML(org.jdom.Element elt,
String name)
Returns the language map 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, boolean trim)
elt
- the JDOM elementname
- the name of the fieldtrim
- if true, trim the text
public static String[] parseFieldTextArray(org.jdom.Element elt, String name)
elt
- the JDOM elementname
- the name of the field
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 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 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 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 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 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 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 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 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 |