net.sourceforge.ccxjc.it.model.pub.collections.valueclass.portlet.app100
Class PortletType

java.lang.Object
  extended by net.sourceforge.ccxjc.it.model.pub.collections.valueclass.portlet.app100.PortletType
All Implemented Interfaces:
Serializable, Cloneable

public class PortletType
extends Object
implements Serializable, Cloneable

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>
 

See Also:
Serialized Form

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

content

protected List<javax.xml.bind.JAXBElement<?>> content

id

protected String id
Constructor Detail

PortletType

public PortletType()
Creates a new net.sourceforge.ccxjc.it.model.pub.collections.valueclass.portlet.app100.PortletType instance.


PortletType

public PortletType(PortletType o)
Creates a new net.sourceforge.ccxjc.it.model.pub.collections.valueclass.portlet.app100.PortletType instance by copying a given instance.

Parameters:
o - The instance to copy or null.
Method Detail

getContent

public List<javax.xml.bind.JAXBElement<?>> getContent()
Gets the rest of the content model.

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>


getId

public String getId()
Gets the value of the id property.

Returns:
possible object is String

setId

public void setId(String value)
Sets the value of the id property.

Parameters:
value - allowed object is String

copyContent

public static void copyContent(List<javax.xml.bind.JAXBElement<?>> source,
                               List<javax.xml.bind.JAXBElement<?>> target)
Copies all values of property Content.

Parameters:
target - The target to copy source to.
source - The source to copy from.
Throws:
NullPointerException - if source or target is null.

clone

public PortletType clone()
Creates and returns a copy of this object.

Overrides:
clone in class Object
Returns:
A clone of this instance.


Copyright © 2009 The CC-XJC Community. All Rights Reserved.