Class Block

  • All Implemented Interfaces:
    org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
    Direct Known Subclasses:
    Blockquote, Body, Noscript

    public class Block
    extends java.lang.Object
    implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2

    Java class for Block complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="Block">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <choice maxOccurs="unbounded" minOccurs="0">
               <choice>
                 <element ref="{http://www.w3.org/1999/xhtml}p"/>
                 <choice>
                   <element ref="{http://www.w3.org/1999/xhtml}h1"/>
                   <element ref="{http://www.w3.org/1999/xhtml}h2"/>
                   <element ref="{http://www.w3.org/1999/xhtml}h3"/>
                   <element ref="{http://www.w3.org/1999/xhtml}h4"/>
                   <element ref="{http://www.w3.org/1999/xhtml}h5"/>
                   <element ref="{http://www.w3.org/1999/xhtml}h6"/>
                 </choice>
                 <element ref="{http://www.w3.org/1999/xhtml}div"/>
                 <choice>
                   <element ref="{http://www.w3.org/1999/xhtml}ul"/>
                   <element ref="{http://www.w3.org/1999/xhtml}ol"/>
                   <element ref="{http://www.w3.org/1999/xhtml}dl"/>
                 </choice>
                 <choice>
                   <element ref="{http://www.w3.org/1999/xhtml}pre"/>
                   <element ref="{http://www.w3.org/1999/xhtml}hr"/>
                   <element ref="{http://www.w3.org/1999/xhtml}blockquote"/>
                   <element ref="{http://www.w3.org/1999/xhtml}address"/>
                 </choice>
                 <element ref="{http://www.w3.org/1999/xhtml}fieldset"/>
                 <element ref="{http://www.w3.org/1999/xhtml}table"/>
               </choice>
               <element ref="{http://www.w3.org/1999/xhtml}form"/>
               <choice>
                 <element ref="{http://www.w3.org/1999/xhtml}noscript"/>
                 <choice>
                   <element ref="{http://www.w3.org/1999/xhtml}ins"/>
                   <element ref="{http://www.w3.org/1999/xhtml}del"/>
                   <element ref="{http://www.w3.org/1999/xhtml}script"/>
                 </choice>
               </choice>
             </choice>
           </sequence>
         </restriction>
       </complexContent>
     </complexType>
     
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List<java.lang.Object> pOrH1OrH2  
    • Constructor Summary

      Constructors 
      Constructor Description
      Block()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.StringBuilder append​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)  
      java.lang.StringBuilder appendFields​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)  
      boolean equals​(java.lang.Object object)  
      boolean equals​(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, java.lang.Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)  
      java.util.List<java.lang.Object> getPOrH1OrH2()
      Gets the value of the pOrH1OrH2 property.
      int hashCode()  
      int hashCode​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)  
      java.lang.String toString()  
      Block withPOrH1OrH2​(java.lang.Object... values)  
      Block withPOrH1OrH2​(java.util.Collection<java.lang.Object> values)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • pOrH1OrH2

        protected java.util.List<java.lang.Object> pOrH1OrH2
    • Constructor Detail

      • Block

        public Block()
    • Method Detail

      • getPOrH1OrH2

        public java.util.List<java.lang.Object> getPOrH1OrH2()
        Gets the value of the pOrH1OrH2 property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the pOrH1OrH2 property.

        For example, to add a new item, do as follows:

            getPOrH1OrH2().add(newItem);
         

        Objects of the following type(s) are allowed in the list P H1 H2 H3 H4 H5 H6 Div Ul Ol Dl Pre Hr Blockquote Address Fieldset Table Form Noscript Ins Del Script

      • withPOrH1OrH2

        public Block withPOrH1OrH2​(java.lang.Object... values)
      • withPOrH1OrH2

        public Block withPOrH1OrH2​(java.util.Collection<java.lang.Object> values)
      • equals

        public boolean equals​(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator,
                              org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator,
                              java.lang.Object object,
                              org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)
        Specified by:
        equals in interface org.jvnet.jaxb2_commons.lang.Equals2
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                            org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)
        Specified by:
        hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode2
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • append

        public java.lang.StringBuilder append​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                                              java.lang.StringBuilder buffer,
                                              org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
        Specified by:
        append in interface org.jvnet.jaxb2_commons.lang.ToString2
      • appendFields

        public java.lang.StringBuilder appendFields​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                                                    java.lang.StringBuilder buffer,
                                                    org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
        Specified by:
        appendFields in interface org.jvnet.jaxb2_commons.lang.ToString2