Class ImportUtil

  • All Implemented Interfaces:
    MashupConstants

    public class ImportUtil
    extends java.lang.Object
    implements MashupConstants
    This class provides utility methods for the ImportManager.
    Since:
    jcms-5.7.2
    Version:
    $Revision: 129473 $
    Author:
    Olivier Dedieu
    • Constructor Summary

      Constructors 
      Constructor Description
      ImportUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method 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>
      java.util.List<T>
      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>
      java.util.Set<T>
      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.util.List<java.lang.String>> parseFieldTextListML​(org.jdom.Element elt, java.lang.String name)
      Returns the language map of text array 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.util.List<java.lang.String>> parseFieldWysiwygListML​(org.jdom.Element elt, java.lang.String name)
      Returns the language map of text array 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.
      static <T extends Data>
      T
      parseSelfFieldData​(org.jdom.Element elt, java.lang.String name, java.lang.Class<T> clazz)
      Returns the data of the given field using id from current webapp.
      static <T extends Data>
      T[]
      parseSelfFieldDataArray​(org.jdom.Element elt, java.lang.String name, java.lang.Class<T> clazz)
      Returns the data array of the given field, using id from current webapp.
      static <T extends Data>
      java.util.HashMap<java.lang.String,​T[]>
      parseSelfFieldDataArrayML​(org.jdom.Element elt, java.lang.String name, java.lang.Class<T> clazz)
      Returns the data array of the given multilingual field, using id from current webapp.
      static <T extends Data>
      java.util.List<T>
      parseSelfFieldDataList​(org.jdom.Element elt, java.lang.String name, java.lang.Class<T> clazz)
      Returns the data list of the given field, using id from current webapp.
      static <T extends Data>
      java.util.HashMap<java.lang.String,​T>
      parseSelfFieldDataML​(org.jdom.Element elt, java.lang.String name, java.lang.Class<T> clazz)
      Returns the data of the given multilingual field, using id from current webapp.
      static <T extends Data>
      java.util.Set<T>
      parseSelfFieldDataSet​(org.jdom.Element elt, java.lang.String name, java.lang.Class<T> clazz)
      Returns the data set of the given field, using id from current webapp.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ImportUtil

        public ImportUtil()
    • Method Detail

      • parseField

        public static org.jdom.Element parseField​(org.jdom.Element elt,
                                                  java.lang.String name)
        Returns a named field under a given elt.
        Parameters:
        elt - a JDom Element
        name - the name of the field.
        Returns:
        a named field under a given elt.
        Since:
        jcms-5.7.2
      • parseFieldText

        public static java.lang.String parseFieldText​(org.jdom.Element elt,
                                                      java.lang.String name,
                                                      boolean trim)
        Returns the text of the given field.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        trim - if true, trim the text
        Returns:
        the text of the given field (null if this field does not exist).
      • parseFieldText

        public static java.lang.String parseFieldText​(org.jdom.Element elt,
                                                      java.lang.String name)
        Returns the text of the given field. The text is trimed.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the text of the given field (null if this field does not exist).
      • parseFieldTextArray

        public static java.lang.String[] parseFieldTextArray​(org.jdom.Element elt,
                                                             java.lang.String name)
        Returns the array of text of the given field.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the array of text of the given field (null if this field does not exist).
      • parseFieldTextArray

        public static java.lang.String[] parseFieldTextArray​(org.jdom.Element elt,
                                                             java.lang.String name,
                                                             boolean trim)
        Returns the array of text of the given field.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        trim - if true, trim the text
        Returns:
        the array of text of the given field (null if this field does not exist).
      • parseFieldTextSet

        public 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.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the list of text of the given field (null if this field does not exist).
      • parseFieldTextSet

        public 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.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        trim - if true, trim the text
        Returns:
        the list of text of the given field (null if this field does not exist).
      • parseFieldTextList

        public 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.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the set of text of the given field (null if this field does not exist).
      • parseFieldTextList

        public 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.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        trim - if true, trim the text
        Returns:
        the set of text of the given field (null if this field does not exist).
      • parseFieldTextML

        public 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.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the language map of the given field (null if this field does not exist).
      • parseFieldTextArrayML

        public 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.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the language map of text array of the given field (null if this field does not exist).
      • parseFieldTextListML

        public static java.util.HashMap<java.lang.String,​java.util.List<java.lang.String>> parseFieldTextListML​(org.jdom.Element elt,
                                                                                                                      java.lang.String name)
        Returns the language map of text array of the given field.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the language map of text array of the given field (null if this field does not exist).
      • parseFieldWiki

        public static java.lang.String parseFieldWiki​(org.jdom.Element elt,
                                                      java.lang.String name)
        Returns the text of the given wiki field. The imported references are resolved.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the text of the given field (null if this field does not exist).
        Since:
        jcms-6.0.0
      • parseFieldWikiArray

        public static java.lang.String[] parseFieldWikiArray​(org.jdom.Element elt,
                                                             java.lang.String name)
        Returns the array of text of the given wiki field. The imported references are resolved.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the array of text of the given field (null if this field does not exist).
        Since:
        jcms-6.0.0
      • parseFieldWikiSet

        public 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. The imported references are resolved.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the set of text of the given field (null if this field does not exist).
        Since:
        jcms-6.1.0
      • parseFieldWikiList

        public 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. The imported references are resolved.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the list of text of the given field (null if this field does not exist).
        Since:
        jcms-6.1.0
      • parseFieldWikiML

        public 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. The imported references are resolved.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the language map of the given field (null if this field does not exist).
        Since:
        jcms-6.0.0
      • parseFieldWikiArrayML

        public 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. The imported references are resolved.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the language map of text array of the given field (null if this field does not exist).
        Since:
        jcms-6.0.0
      • parseFieldWysiwyg

        public static java.lang.String parseFieldWysiwyg​(org.jdom.Element elt,
                                                         java.lang.String name)
        Returns the text of the given wysiwyg field. The imported references are resolved.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the text of the given field (null if this field does not exist).
        Since:
        jcms-6.0.0
      • parseFieldWysiwygArray

        public static java.lang.String[] parseFieldWysiwygArray​(org.jdom.Element elt,
                                                                java.lang.String name)
        Returns the array of text of the given wysiwyg field. The imported references are resolved.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the array of text of the given field (null if this field does not exist).
        Since:
        jcms-6.0.0
      • parseFieldWysiwygSet

        public 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. The imported references are resolved.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the set of text of the given field (null if this field does not exist).
        Since:
        jcms-6.1.0
      • parseFieldWysiwygList

        public 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. The imported references are resolved.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the list of text of the given field (null if this field does not exist).
        Since:
        jcms-6.1.0
      • parseFieldWysiwygML

        public 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. The imported references are resolved.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the language map of the given field (null if this field does not exist).
        Since:
        jcms-6.0.0
      • parseFieldWysiwygArrayML

        public 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. The imported references are resolved.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the language map of text array of the given field (null if this field does not exist).
        Since:
        jcms-6.0.0
      • parseFieldWysiwygListML

        public static java.util.HashMap<java.lang.String,​java.util.List<java.lang.String>> parseFieldWysiwygListML​(org.jdom.Element elt,
                                                                                                                         java.lang.String name)
        Returns the language map of text array of the given wysiwyg field. The imported references are resolved.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the language map of text array of the given field (null if this field does not exist).
        Since:
        jcms-10.0.4
      • parseFieldDate

        public static java.util.Date parseFieldDate​(org.jdom.Element elt,
                                                    java.lang.String name)
        Returns the date of the given field.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the date of the given field (null if this field does not exist).
      • parseFieldDateArray

        public static java.util.Date[] parseFieldDateArray​(org.jdom.Element elt,
                                                           java.lang.String name)
        Returns the date array of the given field.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the date array of the given field (null if this field does not exist).
      • parseFieldDateSet

        public static java.util.Set<java.util.Date> parseFieldDateSet​(org.jdom.Element elt,
                                                                      java.lang.String name)
        Returns the date set of the given field.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the date set of the given field (null if this field does not exist).
        Since:
        jcms-6.1.0
      • parseFieldDateList

        public static java.util.List<java.util.Date> parseFieldDateList​(org.jdom.Element elt,
                                                                        java.lang.String name)
        Returns the date list of the given field.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the date list of the given field (null if this field does not exist).
        Since:
        jcms-6.1.0
      • parseFieldData

        public static Data parseFieldData​(org.jdom.Element elt,
                                          java.lang.String name)
        Returns the data of the given field.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the data of the given field.
        Since:
        jcms-6.0.0
      • parseSelfFieldData

        public static <T extends Data> T parseSelfFieldData​(org.jdom.Element elt,
                                                            java.lang.String name,
                                                            java.lang.Class<T> clazz)
        Returns the data of the given field using id from current webapp.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        clazz - the type of data to look for
        Returns:
        the data of the given field.
        Since:
        jcms-9.0.0
      • parseSelfFieldDataML

        public static <T extends Data> java.util.HashMap<java.lang.String,​T> parseSelfFieldDataML​(org.jdom.Element elt,
                                                                                                        java.lang.String name,
                                                                                                        java.lang.Class<T> clazz)
        Returns the data of the given multilingual field, using id from current webapp.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        clazz - the type of data to look for
        Returns:
        the data of the given field.
        Since:
        jcms-9.0.0
      • parseFieldDataArray

        public static Data[] parseFieldDataArray​(org.jdom.Element elt,
                                                 java.lang.String name,
                                                 java.lang.Class clazz)
        Returns the data array of the given field.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        clazz - the class of the data
        Returns:
        the data array of the given field (null if this field does not exist).
        Since:
        jcms-6.0.0
      • parseSelfFieldDataArray

        public static <T extends Data> T[] parseSelfFieldDataArray​(org.jdom.Element elt,
                                                                   java.lang.String name,
                                                                   java.lang.Class<T> clazz)
        Returns the data array of the given field, using id from current webapp.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        clazz - the class of the data
        Returns:
        the data array of the given field (null if this field does not exist).
        Since:
        jcms-9.0.0
      • parseSelfFieldDataArrayML

        public static <T extends Data> java.util.HashMap<java.lang.String,​T[]> parseSelfFieldDataArrayML​(org.jdom.Element elt,
                                                                                                               java.lang.String name,
                                                                                                               java.lang.Class<T> clazz)
        Returns the data array of the given multilingual field, using id from current webapp.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        clazz - the class of the data
        Returns:
        the data array of the given field (null if this field does not exist).
        Since:
        jcms-9.0.0
      • parseFieldDataSet

        public static <T extends Data> java.util.Set<T> parseFieldDataSet​(org.jdom.Element elt,
                                                                          java.lang.String name,
                                                                          java.lang.Class<T> clazz)
        Returns the data set of the given field.
        Type Parameters:
        T - the type of data
        Parameters:
        elt - the JDOM element
        name - the name of the field
        clazz - the class of the data
        Returns:
        the data array of the given field (null if this field does not exist).
        Since:
        jcms-6.1.0
      • parseSelfFieldDataSet

        public static <T extends Data> java.util.Set<T> parseSelfFieldDataSet​(org.jdom.Element elt,
                                                                              java.lang.String name,
                                                                              java.lang.Class<T> clazz)
        Returns the data set of the given field, using id from current webapp.
        Type Parameters:
        T - the type of data
        Parameters:
        elt - the JDOM element
        name - the name of the field
        clazz - the class of the data
        Returns:
        the data array of the given field (null if this field does not exist).
        Since:
        jcms-9.0.0
      • parseFieldDataList

        public static <T extends Data> java.util.List<T> parseFieldDataList​(org.jdom.Element elt,
                                                                            java.lang.String name,
                                                                            java.lang.Class<T> clazz)
        Returns the data list of the given field.
        Type Parameters:
        T - the type of data
        Parameters:
        elt - the JDOM element
        name - the name of the field
        clazz - the class of the data
        Returns:
        the data array of the given field (null if this field does not exist).
        Since:
        jcms-6.1.0
      • parseSelfFieldDataList

        public static <T extends Data> java.util.List<T> parseSelfFieldDataList​(org.jdom.Element elt,
                                                                                java.lang.String name,
                                                                                java.lang.Class<T> clazz)
        Returns the data list of the given field, using id from current webapp.
        Type Parameters:
        T - the type of data
        Parameters:
        elt - the JDOM element
        name - the name of the field
        clazz - the class of the data
        Returns:
        the data array of the given field (null if this field does not exist).
        Since:
        jcms-9.0.0
      • parseFieldInt

        public static int parseFieldInt​(org.jdom.Element elt,
                                        java.lang.String name)
        Returns the int of the given field.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the int of the given field (0 if this field does not exist).
      • parseFieldIntArray

        public static int[] parseFieldIntArray​(org.jdom.Element elt,
                                               java.lang.String name)
        Returns the int array of the given field.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the int array of the given field (null if this field does not exist).
      • parseFieldIntSet

        public static java.util.Set<java.lang.Integer> parseFieldIntSet​(org.jdom.Element elt,
                                                                        java.lang.String name)
        Returns the int set of the given field.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the int set of the given field (null if this field does not exist).
        Since:
        jcms-6.1.0
      • parseFieldIntList

        public static java.util.List<java.lang.Integer> parseFieldIntList​(org.jdom.Element elt,
                                                                          java.lang.String name)
        Returns the int set of the given field.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the int set of the given field (null if this field does not exist).
        Since:
        jcms-6.1.0
      • parseFieldLong

        public static long parseFieldLong​(org.jdom.Element elt,
                                          java.lang.String name)
        Returns the long of the given field.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the long of the given field (0 if this field does not exist).
      • parseFieldLongArray

        public static long[] parseFieldLongArray​(org.jdom.Element elt,
                                                 java.lang.String name)
        Returns the long array of the given field.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the long array of the given field (null if this field does not exist).
      • parseFieldLongSet

        public static java.util.Set<java.lang.Long> parseFieldLongSet​(org.jdom.Element elt,
                                                                      java.lang.String name)
        Returns the long set of the given field.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the int set of the given field (null if this field does not exist).
        Since:
        jcms-6.1.0
      • parseFieldLongList

        public static java.util.List<java.lang.Long> parseFieldLongList​(org.jdom.Element elt,
                                                                        java.lang.String name)
        Returns the long set of the given field.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the long set of the given field (null if this field does not exist).
        Since:
        jcms-6.1.0
      • parseFieldDouble

        public static double parseFieldDouble​(org.jdom.Element elt,
                                              java.lang.String name)
        Returns the double of the given field.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the double of the given field (0 if this field does not exist).
      • parseFieldDoubleArray

        public static double[] parseFieldDoubleArray​(org.jdom.Element elt,
                                                     java.lang.String name)
        Returns the double array of the given field.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the double array of the given field (null if this field does not exist).
      • parseFieldDoubleSet

        public static java.util.Set<java.lang.Double> parseFieldDoubleSet​(org.jdom.Element elt,
                                                                          java.lang.String name)
        Returns the double set of the given field.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the int set of the given field (null if this field does not exist).
        Since:
        jcms-6.1.0
      • parseFieldDoubleList

        public static java.util.List<java.lang.Double> parseFieldDoubleList​(org.jdom.Element elt,
                                                                            java.lang.String name)
        Returns the double set of the given field.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the double set of the given field (null if this field does not exist).
        Since:
        jcms-6.1.0
      • parseFieldBoolean

        public static boolean parseFieldBoolean​(org.jdom.Element elt,
                                                java.lang.String name)
        Returns the boolean of the given field.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the boolean of the given field (false if this field does not exist).
      • parseFieldBooleanArray

        public static boolean[] parseFieldBooleanArray​(org.jdom.Element elt,
                                                       java.lang.String name)
        Returns the boolean array of the given field.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the boolean array of the given field (false if this field does not exist).
      • parseFieldBooleanSet

        public static java.util.Set<java.lang.Boolean> parseFieldBooleanSet​(org.jdom.Element elt,
                                                                            java.lang.String name)
        Returns the boolean set of the given field.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the int set of the given field (null if this field does not exist).
        Since:
        jcms-6.1.0
      • parseFieldBooleanList

        public static java.util.List<java.lang.Boolean> parseFieldBooleanList​(org.jdom.Element elt,
                                                                              java.lang.String name)
        Returns the boolean set of the given field.
        Parameters:
        elt - the JDOM element
        name - the name of the field
        Returns:
        the double set of the given field (null if this field does not exist).
        Since:
        jcms-6.1.0
      • parseFieldMemberLogin

        public static java.lang.String parseFieldMemberLogin​(org.jdom.Element elt,
                                                             java.lang.String name)
        Returns the login of the given member field.
        Parameters:
        elt - the JDOM Element
        name - the name of the field
        Returns:
        the login of the given member field.
        Since:
        jcms-5.7.2
      • parseFieldsByClass

        public 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.
        Parameters:
        elt - the JDOM Element
        className - the fully qualified class name.
        Returns:
        all the children with the given class attribute.
        Since:
        jcms-5.7.2