Class SchemaComponentType


  • public class SchemaComponentType
    extends Object
    A schema component includes a schema fragment (type definition) or an entire schema from some target namespace; the schema language is identified by URI. If the component is a schema fragment its parent MUST be referenced (parentSchema).

    Java class for SchemaComponentType complex type.

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

     <complexType name="SchemaComponentType">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <any processContents='lax'/>
           </sequence>
           <attribute name="targetNamespace" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
           <attribute name="parentSchema" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
           <attribute name="schemaLanguage" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
         </restriction>
       </complexContent>
     </complexType>
     
    • Field Detail

      • targetNamespace

        protected String targetNamespace
      • parentSchema

        protected String parentSchema
      • schemaLanguage

        protected String schemaLanguage
    • Constructor Detail

      • SchemaComponentType

        public SchemaComponentType()
        Default no-arg constructor
      • SchemaComponentType

        public SchemaComponentType​(List<Serializable> content,
                                   String targetNamespace,
                                   String parentSchema,
                                   String schemaLanguage)
        Fully-initialising value constructor
    • Method Detail

      • getContent

        public List<Serializable> getContent()
        A schema component includes a schema fragment (type definition) or an entire schema from some target namespace; the schema language is identified by URI. If the component is a schema fragment its parent MUST be referenced (parentSchema).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 Object Element String

      • getTargetNamespace

        public String getTargetNamespace()
        Gets the value of the targetNamespace property.
        Returns:
        possible object is String
      • setTargetNamespace

        public void setTargetNamespace​(String value)
        Sets the value of the targetNamespace property.
        Parameters:
        value - allowed object is String
      • getParentSchema

        public String getParentSchema()
        Gets the value of the parentSchema property.
        Returns:
        possible object is String
      • setParentSchema

        public void setParentSchema​(String value)
        Sets the value of the parentSchema property.
        Parameters:
        value - allowed object is String
      • getSchemaLanguage

        public String getSchemaLanguage()
        Gets the value of the schemaLanguage property.
        Returns:
        possible object is String
      • setSchemaLanguage

        public void setSchemaLanguage​(String value)
        Sets the value of the schemaLanguage property.
        Parameters:
        value - allowed object is String