Class CmsXmlContentTree.Field

  • Enclosing class:
    CmsXmlContentTree

    public class CmsXmlContentTree.Field
    extends java.lang.Object
    Field of a complex type.

    This represents one or more elements with the same field name in a sequence in an XML content.

    • Constructor Detail

    • Method Detail

      • getName

        public java.lang.String getName()
        Gets the field name.
        Returns:
        the field name
      • getNode

        public CmsXmlContentTree.Node getNode()
        Gets the node if there is exactly one in the node list, otherwise throws an error.
        Returns:
        the node
      • getNodes

        public java.util.List<CmsXmlContentTree.NodegetNodes()
        Gets the nodes for the individual elements with that field name.
        Returns:
        the sub-nodes for this field
      • isMultiChoice

        public boolean isMultiChoice()
        Returns true if the field refers to a choice element with maxOccurs greater than 1.
        Returns:
        true if this is a multichoice attribute
      • isMultivalue

        public boolean isMultivalue()
        Returns true if this is a multivalue field.
        Returns:
        true if this is a multivalue field
      • isOptional

        public boolean isOptional()
        Returns true if this is an optional field.
        Returns:
        true if this is an optional field
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()