Class Field


  • public class Field
    extends ETypedElement
    Java class for Field complex type. The following schema fragment specifies the expected content contained within this class.
     <complexType name="Field">
       <complexContent>
         <extension base="{http://www.eclipse.org/emf/2002/Ecore}ETypedElement">
           <choice maxOccurs="unbounded" minOccurs="0">
             <element name="initializer" type="{java.xmi}Block"/>
           </choice>
           <attribute name="final" type="{http://www.w3.org/2001/XMLSchema}boolean" />
           <attribute name="javaVisibility" type="{java.xmi}JavaVisibilityKind" />
           <attribute name="static" type="{http://www.w3.org/2001/XMLSchema}boolean" />
           <attribute name="transient" type="{http://www.w3.org/2001/XMLSchema}boolean" />
           <attribute name="volatile" type="{http://www.w3.org/2001/XMLSchema}boolean" />
         </extension>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • Field

        public Field()
    • Method Detail

      • getInitializers

        public List<Block> getInitializers()
        Gets the value of the initializers 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 initializers property. For example, to add a new item, do as follows:
         getInitializers().add(newItem);
         
        Objects of the following type(s) are allowed in the list Block
      • isIsFinal

        public Boolean isIsFinal()
        Gets the value of the isFinal property.
        Returns:
        possible object is Boolean
      • setIsFinal

        public void setIsFinal​(Boolean value)
        Sets the value of the isFinal property.
        Parameters:
        value - allowed object is Boolean
      • setJavaVisibility

        public void setJavaVisibility​(JavaVisibilityEnum value)
        Sets the value of the javaVisibility property.
        Parameters:
        value - allowed object is JavaVisibilityEnum
      • isIsStatic

        public Boolean isIsStatic()
        Gets the value of the isStatic property.
        Returns:
        possible object is Boolean
      • setIsStatic

        public void setIsStatic​(Boolean value)
        Sets the value of the isStatic property.
        Parameters:
        value - allowed object is Boolean
      • isIsTransient

        public Boolean isIsTransient()
        Gets the value of the isTransient property.
        Returns:
        possible object is Boolean
      • setIsTransient

        public void setIsTransient​(Boolean value)
        Sets the value of the isTransient property.
        Parameters:
        value - allowed object is Boolean
      • isIsVolatile

        public Boolean isIsVolatile()
        Gets the value of the isVolatile property.
        Returns:
        possible object is Boolean
      • setIsVolatile

        public void setIsVolatile​(Boolean value)
        Sets the value of the isVolatile property.
        Parameters:
        value - allowed object is Boolean