|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.oslc.asset.internal.SimpleLiteral
public class SimpleLiteral
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 | |
|---|---|
protected java.util.List<java.lang.Object> |
content
|
protected java.lang.String |
lang
|
| Constructor Summary | |
|---|---|
SimpleLiteral()
|
|
| Method Summary | |
|---|---|
java.util.List<java.lang.Object> |
getContent()
This is the default type for all of the DC elements. |
java.lang.String |
getLang()
Gets the value of the lang property. |
java.lang.String |
getValue()
|
void |
setLang(java.lang.String value)
Sets the value of the lang property. |
void |
setValue(java.lang.String value)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List<java.lang.Object> content
protected java.lang.String lang
| Constructor Detail |
|---|
public SimpleLiteral()
| Method Detail |
|---|
public java.util.List<java.lang.Object> getContent()
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
String
Element
public java.lang.String getLang()
Stringpublic void setLang(java.lang.String value)
value - allowed object is
Stringpublic void setValue(java.lang.String value)
public java.lang.String getValue()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||