org.xmlhammer.model.preferences
Class Menu

java.lang.Object
  extended by org.xmlhammer.model.preferences.Menu

public class Menu
extends java.lang.Object

Java class for menu element declaration.

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

 <element name="menu">
   <complexType>
     <complexContent>
       <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
         <sequence maxOccurs="unbounded" minOccurs="0">
           <element name="menuitem">
             <complexType>
               <complexContent>
                 <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                   <attribute name="src" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
                   <attribute name="title" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
                 </restriction>
               </complexContent>
             </complexType>
           </element>
         </sequence>
         <attribute name="title" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
       </restriction>
     </complexContent>
   </complexType>
 </element>
 


Nested Class Summary
static class Menu.Menuitem
          Java class for anonymous complex type.
 
Field Summary
protected  java.util.List<Menu.Menuitem> menuitem
           
protected  java.lang.String title
           
 
Constructor Summary
Menu()
           
 
Method Summary
 java.util.List<Menu.Menuitem> getMenuitem()
          Gets the value of the menuitem property.
 java.lang.String getTitle()
          Gets the value of the title property.
 void setTitle(java.lang.String value)
          Sets the value of the title property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

menuitem

protected java.util.List<Menu.Menuitem> menuitem

title

protected java.lang.String title
Constructor Detail

Menu

public Menu()
Method Detail

getMenuitem

public java.util.List<Menu.Menuitem> getMenuitem()
Gets the value of the menuitem 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 menuitem property.

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

    getMenuitem().add(newItem);
 

Objects of the following type(s) are allowed in the list Menu.Menuitem


getTitle

public java.lang.String getTitle()
Gets the value of the title property.

Returns:
possible object is String

setTitle

public void setTitle(java.lang.String value)
Sets the value of the title property.

Parameters:
value - allowed object is String


Copyright 2005-2005-2008 Edwin Dankert. All Rights Reserved.