Package nl.b3p.csw.jaxb.elements
Class SimpleLiteral
- java.lang.Object
-
- nl.b3p.csw.jaxb.elements.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>
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Serializable>contentprotected Stringscheme
-
Constructor Summary
Constructors Constructor Description SimpleLiteral()Default no-arg constructorSimpleLiteral(List<Serializable> content, String scheme)Fully-initialising value constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Serializable>getContent()This is the default type for all of the DC elements.StringgetScheme()Gets the value of the scheme property.voidsetScheme(String value)Sets the value of the scheme property.
-
-
-
Field Detail
-
content
protected List<Serializable> content
-
scheme
protected String scheme
-
-
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
setmethod 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
-
-