org.jasig.portlet.widget.gadget.model
Class Module

java.lang.Object
  extended by org.jasig.portlet.widget.gadget.model.Module
All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode, org.jvnet.jaxb2_commons.lang.ToString

public class Module
extends Object
implements org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode, org.jvnet.jaxb2_commons.lang.ToString

Java class for anonymous complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="ModulePrefs" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <choice maxOccurs="unbounded" minOccurs="0">
                   <element name="Require" type="{}GadgetFeatureType"/>
                   <element name="Optional" type="{}GadgetFeatureType"/>
                   <element name="Preload">
                     <complexType>
                       <complexContent>
                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                           <attribute name="href" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
                           <attribute name="authz" default="none">
                             <simpleType>
                               <restriction base="{http://www.w3.org/2001/XMLSchema}string">
                                 <enumeration value="none"/>
                                 <enumeration value="signed"/>
                                 <enumeration value="oauth"/>
                               </restriction>
                             </simpleType>
                           </attribute>
                           <attribute name="sign_owner" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
                           <attribute name="sign_viewer" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
                           <attribute name="views" type="{http://www.w3.org/2001/XMLSchema}string" />
                           <attribute name="oauth_service_name" type="{http://www.w3.org/2001/XMLSchema}string" />
                           <attribute name="oauth_token_name" type="{http://www.w3.org/2001/XMLSchema}string" />
                           <attribute name="oauth_request_token" type="{http://www.w3.org/2001/XMLSchema}string" />
                           <attribute name="oauth_request_token_secret" type="{http://www.w3.org/2001/XMLSchema}string" />
                         </restriction>
                       </complexContent>
                     </complexType>
                   </element>
                   <element name="Icon">
                     <complexType>
                       <simpleContent>
                         <extension base="<http://www.w3.org/2001/XMLSchema>string">
                           <attribute name="mode">
                             <simpleType>
                               <restriction base="{http://www.w3.org/2001/XMLSchema}string">
                                 <enumeration value="base64"/>
                               </restriction>
                             </simpleType>
                           </attribute>
                           <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
                         </extension>
                       </simpleContent>
                     </complexType>
                   </element>
                   <element name="Locale">
                     <complexType>
                       <complexContent>
                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                           <sequence>
                             <element name="msg" maxOccurs="unbounded" minOccurs="0">
                               <complexType>
                                 <simpleContent>
                                   <extension base="<http://www.w3.org/2001/XMLSchema>string">
                                     <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
                                     <attribute name="desc" type="{http://www.w3.org/2001/XMLSchema}string" />
                                   </extension>
                                 </simpleContent>
                               </complexType>
                             </element>
                           </sequence>
                           <attribute name="lang" type="{http://www.w3.org/2001/XMLSchema}string" />
                           <attribute name="country" type="{http://www.w3.org/2001/XMLSchema}string" />
                           <attribute name="messages" type="{http://www.w3.org/2001/XMLSchema}string" />
                           <attribute name="language_direction">
                             <simpleType>
                               <restriction base="{http://www.w3.org/2001/XMLSchema}string">
                                 <enumeration value="ltr"/>
                                 <enumeration value="rtl"/>
                               </restriction>
                             </simpleType>
                           </attribute>
                         </restriction>
                       </complexContent>
                     </complexType>
                   </element>
                   <element name="Link">
                     <complexType>
                       <complexContent>
                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                           <attribute name="href" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
                           <attribute name="rel" use="required">
                             <simpleType>
                               <restriction base="{http://www.w3.org/2001/XMLSchema}string">
                                 <enumeration value="gadgets.help"/>
                                 <enumeration value="gadgets.support"/>
                                 <enumeration value="icon"/>
                               </restriction>
                             </simpleType>
                           </attribute>
                         </restriction>
                       </complexContent>
                     </complexType>
                   </element>
                   <element name="OAuth" minOccurs="0">
                     <complexType>
                       <complexContent>
                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                           <sequence>
                             <element name="Service" maxOccurs="unbounded">
                               <complexType>
                                 <complexContent>
                                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                                     <sequence>
                                       <element name="Request" type="{}OAuthResourceType" minOccurs="0"/>
                                       <element name="Access" type="{}OAuthResourceType" minOccurs="0"/>
                                       <element name="Authorization" minOccurs="0">
                                         <complexType>
                                           <complexContent>
                                             <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                                               <attribute name="url" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
                                             </restriction>
                                           </complexContent>
                                         </complexType>
                                       </element>
                                     </sequence>
                                   </restriction>
                                 </complexContent>
                               </complexType>
                             </element>
                           </sequence>
                           <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
                         </restriction>
                       </complexContent>
                     </complexType>
                   </element>
                 </choice>
                 <attribute name="title" type="{http://www.w3.org/2001/XMLSchema}string" />
                 <attribute name="title_url" type="{http://www.w3.org/2001/XMLSchema}string" />
                 <attribute name="description" type="{http://www.w3.org/2001/XMLSchema}string" />
                 <attribute name="author" type="{http://www.w3.org/2001/XMLSchema}string" />
                 <attribute name="author_email" type="{http://www.w3.org/2001/XMLSchema}string" />
                 <attribute name="screenshot" type="{http://www.w3.org/2001/XMLSchema}string" />
                 <attribute name="thumbnail" type="{http://www.w3.org/2001/XMLSchema}string" />
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="UserPref" maxOccurs="unbounded" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence>
                   <element name="EnumValue" maxOccurs="unbounded" minOccurs="0">
                     <complexType>
                       <complexContent>
                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                           <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
                           <attribute name="display_value" type="{http://www.w3.org/2001/XMLSchema}string" />
                         </restriction>
                       </complexContent>
                     </complexType>
                   </element>
                 </sequence>
                 <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
                 <attribute name="display_name" type="{http://www.w3.org/2001/XMLSchema}string" />
                 <attribute name="default_value" type="{http://www.w3.org/2001/XMLSchema}string" />
                 <attribute name="required" type="{http://www.w3.org/2001/XMLSchema}string" />
                 <attribute name="datatype" default="string">
                   <simpleType>
                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
                       <enumeration value="string"/>
                       <enumeration value="hidden"/>
                       <enumeration value="bool"/>
                       <enumeration value="enum"/>
                       <enumeration value="list"/>
                       <enumeration value="number"/>
                     </restriction>
                   </simpleType>
                 </attribute>
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="Content" maxOccurs="unbounded">
           <complexType>
             <simpleContent>
               <extension base="<http://www.w3.org/2001/XMLSchema>string">
                 <attribute name="type" default="html">
                   <simpleType>
                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
                       <enumeration value="html"/>
                       <enumeration value="url"/>
                     </restriction>
                   </simpleType>
                 </attribute>
                 <attribute name="href" type="{http://www.w3.org/2001/XMLSchema}string" />
                 <attribute name="view" type="{http://www.w3.org/2001/XMLSchema}string" />
                 <attribute name="preferred_height" type="{http://www.w3.org/2001/XMLSchema}integer" />
                 <attribute name="preferred_width" type="{http://www.w3.org/2001/XMLSchema}integer" />
               </extension>
             </simpleContent>
           </complexType>
         </element>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 


Nested Class Summary
static class Module.Content
          Java class for anonymous complex type.
static class Module.ModulePrefs
          Java class for anonymous complex type.
static class Module.UserPref
          Java class for anonymous complex type.
 
Field Summary
protected  List<Module.Content> content
           
protected  Module.ModulePrefs modulePrefs
           
protected  List<Module.UserPref> userPref
           
 
Constructor Summary
Module()
           
 
Method Summary
 StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
           
 StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
           
 boolean equals(Object object)
           
 boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy strategy)
           
 List<Module.Content> getContent()
          Gets the value of the content property.
 Module.ModulePrefs getModulePrefs()
          Gets the value of the modulePrefs property.
 List<Module.UserPref> getUserPref()
          Gets the value of the userPref property.
 int hashCode()
           
 int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
           
 void setModulePrefs(Module.ModulePrefs value)
          Sets the value of the modulePrefs property.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

modulePrefs

protected Module.ModulePrefs modulePrefs

userPref

protected List<Module.UserPref> userPref

content

protected List<Module.Content> content
Constructor Detail

Module

public Module()
Method Detail

getModulePrefs

public Module.ModulePrefs getModulePrefs()
Gets the value of the modulePrefs property.

Returns:
possible object is Module.ModulePrefs

setModulePrefs

public void setModulePrefs(Module.ModulePrefs value)
Sets the value of the modulePrefs property.

Parameters:
value - allowed object is Module.ModulePrefs

getUserPref

public List<Module.UserPref> getUserPref()
Gets the value of the userPref 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 userPref property.

For example, to add a new item, do as follows:

    getUserPref().add(newItem);
 

Objects of the following type(s) are allowed in the list Module.UserPref


getContent

public List<Module.Content> getContent()
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 Module.Content


toString

public String toString()
Overrides:
toString in class Object

append

public StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                            StringBuilder buffer,
                            org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
Specified by:
append in interface org.jvnet.jaxb2_commons.lang.ToString

appendFields

public StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                                  StringBuilder buffer,
                                  org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
Specified by:
appendFields in interface org.jvnet.jaxb2_commons.lang.ToString

equals

public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator,
                      org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator,
                      Object object,
                      org.jvnet.jaxb2_commons.lang.EqualsStrategy strategy)
Specified by:
equals in interface org.jvnet.jaxb2_commons.lang.Equals

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                    org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
Specified by:
hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2011 Jasig. All Rights Reserved.