public class PortletPreferencesType
extends java.lang.Object
Java class for portlet-preferencesType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="portlet-preferencesType">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="preference" type="{http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd}preferenceType" maxOccurs="unbounded" minOccurs="0"/>
<element name="preferences-validator" type="{http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd}preferences-validatorType" minOccurs="0"/>
</sequence>
<attribute name="id" type="{http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd}string" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
id |
protected java.util.List<PreferenceType> |
preference |
protected java.lang.String |
preferencesValidator |
| Constructor and Description |
|---|
PortletPreferencesType() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getId()
Gets the value of the id property.
|
java.util.List<PreferenceType> |
getPreference()
Gets the value of the preference property.
|
java.lang.String |
getPreferencesValidator()
Gets the value of the preferencesValidator property.
|
void |
setId(java.lang.String value)
Sets the value of the id property.
|
void |
setPreferencesValidator(java.lang.String value)
Sets the value of the preferencesValidator property.
|
protected java.util.List<PreferenceType> preference
protected java.lang.String preferencesValidator
protected java.lang.String id
public java.util.List<PreferenceType> getPreference()
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 preference property.
For example, to add a new item, do as follows:
getPreference().add(newItem);
Objects of the following type(s) are allowed in the list
PreferenceType
public java.lang.String getPreferencesValidator()
Stringpublic void setPreferencesValidator(java.lang.String value)
value - allowed object is
Stringpublic java.lang.String getId()
Stringpublic void setId(java.lang.String value)
value - allowed object is
String