|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.ccxjc.it.model.pub.collections.valueclass.portlet.app100.PortletType
public class PortletType
The portlet element contains the declarative data of a portlet. Used in: portlet-app
Java class for portletType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="portletType">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="description" type="{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}descriptionType" maxOccurs="unbounded" minOccurs="0"/>
<element name="portlet-name" type="{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}portlet-nameType"/>
<element name="display-name" type="{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}display-nameType" maxOccurs="unbounded" minOccurs="0"/>
<element name="portlet-class" type="{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}portlet-classType"/>
<element name="init-param" type="{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}init-paramType" maxOccurs="unbounded" minOccurs="0"/>
<element name="expiration-cache" type="{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}expiration-cacheType" minOccurs="0"/>
<element name="supports" type="{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}supportsType" maxOccurs="unbounded"/>
<element name="supported-locale" type="{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}supported-localeType" maxOccurs="unbounded" minOccurs="0"/>
<choice>
<sequence>
<element name="resource-bundle" type="{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}resource-bundleType"/>
<element name="portlet-info" type="{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}portlet-infoType" minOccurs="0"/>
</sequence>
<element name="portlet-info" type="{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}portlet-infoType"/>
</choice>
<element name="portlet-preferences" type="{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}portlet-preferencesType" minOccurs="0"/>
<element name="security-role-ref" type="{http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}security-role-refType" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
<attribute name="id" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
| Field Summary | |
|---|---|
protected List<javax.xml.bind.JAXBElement<?>> |
content
|
protected String |
id
|
| Constructor Summary | |
|---|---|
PortletType()
Creates a new net.sourceforge.ccxjc.it.model.pub.collections.valueclass.portlet.app100.PortletType instance. |
|
PortletType(PortletType o)
Creates a new net.sourceforge.ccxjc.it.model.pub.collections.valueclass.portlet.app100.PortletType instance by copying a given instance. |
|
| Method Summary | |
|---|---|
PortletType |
clone()
Creates and returns a copy of this object. |
static void |
copyContent(List<javax.xml.bind.JAXBElement<?>> source,
List<javax.xml.bind.JAXBElement<?>> target)
Copies all values of property Content. |
List<javax.xml.bind.JAXBElement<?>> |
getContent()
Gets the rest of the content model. |
String |
getId()
Gets the value of the id property. |
void |
setId(String value)
Sets the value of the id property. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected List<javax.xml.bind.JAXBElement<?>> content
protected String id
| Constructor Detail |
|---|
public PortletType()
net.sourceforge.ccxjc.it.model.pub.collections.valueclass.portlet.app100.PortletType instance.
public PortletType(PortletType o)
net.sourceforge.ccxjc.it.model.pub.collections.valueclass.portlet.app100.PortletType instance by copying a given instance.
o - The instance to copy or null.| Method Detail |
|---|
public List<javax.xml.bind.JAXBElement<?>> getContent()
You are getting this "catch-all" property because of the following reason: The field name "PortletInfo" is used by two different parts of a schema. See: line 240 of file:/var/lib/continuum/Sources/ccxjc.svn.sourceforge.net/ccxjc/trunk/target/checkout/cc-xjc-it/src/main/schemas/portlet-app_1_0.xsd line 238 of file:/var/lib/continuum/Sources/ccxjc.svn.sourceforge.net/ccxjc/trunk/target/checkout/cc-xjc-it/src/main/schemas/portlet-app_1_0.xsd
To get rid of this property, apply a property customization to one of both of the following declarations to change their names: 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
JAXBElement<SupportedLocaleType>
JAXBElement<SecurityRoleRefType>
JAXBElement<PortletNameType>
JAXBElement<DescriptionType>
JAXBElement<DisplayNameType>
JAXBElement<ResourceBundleType>
JAXBElement<PortletInfoType>
JAXBElement<SupportsType>
JAXBElement<ExpirationCacheType>
JAXBElement<PortletPreferencesType>
JAXBElement<String>
JAXBElement<InitParamType>
public String getId()
Stringpublic void setId(String value)
value - allowed object is
String
public static void copyContent(List<javax.xml.bind.JAXBElement<?>> source,
List<javax.xml.bind.JAXBElement<?>> target)
Content.
target - The target to copy source to.source - The source to copy from.
NullPointerException - if source or target is null.public PortletType clone()
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||