Class ElementType


  • public class ElementType
    extends Object

    Classe Java pour elementType complex type.

    Le fragment de schéma suivant indique le contenu attendu figurant dans cette classe.

     <complexType name="elementType">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
             <element name="annotation" type="{http://xmlns.jcp.org/xml/ns/validation/mapping}annotationType" maxOccurs="unbounded" minOccurs="0"/>
           </sequence>
           <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
         </restriction>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • ElementType

        public ElementType()
    • Method Detail

      • getContent

        public List<Serializable> getContent()
        Gets the value of the content 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 content property.

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

            getContent().add(newItem);
         

        Objects of the following type(s) are allowed in the list JAXBElement<String> JAXBElement<AnnotationType> String

      • getName

        public String getName()
        Obtient la valeur de la propriété name.
        Returns:
        possible object is String
      • setName

        public void setName​(String value)
        Définit la valeur de la propriété name.
        Parameters:
        value - allowed object is String