Class SimpleLiteral


  • public class SimpleLiteral
    extends Object
    This is the default type for all of the DC elements. It defines a complexType SimpleLiteral which permits mixed content but disallows child elements by use of minOcccurs/maxOccurs. However, this complexType does permit the derivation of other types which would permit child elements. The scheme attribute may be used as a qualifier to reference an encoding scheme that describes the value domain for a given property.

    Java class for SimpleLiteral complex type.

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

     <complexType name="SimpleLiteral">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <any processContents='lax' maxOccurs="0" minOccurs="0"/>
           </sequence>
           <attribute name="scheme" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
         </restriction>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • SimpleLiteral

        public SimpleLiteral()
        Default no-arg constructor
      • SimpleLiteral

        public SimpleLiteral​(List<Serializable> content,
                             String scheme)
        Fully-initialising value constructor
    • Method Detail

      • getContent

        public List<Serializable> getContent()
        This is the default type for all of the DC elements. It defines a complexType SimpleLiteral which permits mixed content but disallows child elements by use of minOcccurs/maxOccurs. However, this complexType does permit the derivation of other types which would permit child elements. The scheme attribute may be used as a qualifier to reference an encoding scheme that describes the value domain for a given property.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 String

      • getScheme

        public String getScheme()
        Gets the value of the scheme property.
        Returns:
        possible object is String
      • setScheme

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