Class SimpleLiteral
java.lang.Object
org.docx4j.docProps.core.dc.elements.SimpleLiteral
- Direct Known Subclasses:
Box,DCMIType,DDC,IMT,ISO3166,ISO6392,LCC,LCSH,MESH,Period,Point,RFC1766,RFC3066,TGN,UDC,URI,W3CDTF
This is the default type for all of the DC elements.
It permits text content only with optional
xml:lang attribute.
Text is allowed because mixed="true", but sub-elements
are disallowed because minOccurs="0" and maxOccurs="0"
are on the xs:any tag.
This complexType allows for restriction or extension permitting
child elements.
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/>
</sequence>
<attribute ref="{http://www.w3.org/XML/1998/namespace}lang"/>
</restriction>
</complexContent>
</complexType>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
-
lang
-
-
Constructor Details
-
SimpleLiteral
public SimpleLiteral()
-
-
Method Details
-
getContent
This is the default type for all of the DC elements. It permits text content only with optional xml:lang attribute. Text is allowed because mixed="true", but sub-elements are disallowed because minOccurs="0" and maxOccurs="0" are on the xs:any tag. This complexType allows for restriction or extension permitting child elements. 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 -
getLang
Gets the value of the lang property.- Returns:
- possible object is
String
-
setLang
Sets the value of the lang property.- Parameters:
value- allowed object isString
-