net.sourceforge.ccxjc.it.model.pub.collections.valueclass.maven.decoration100
Class MenuItem

java.lang.Object
  extended by net.sourceforge.ccxjc.it.model.pub.collections.valueclass.maven.decoration100.MenuItem
All Implemented Interfaces:
Serializable, Cloneable

public class MenuItem
extends Object
implements Serializable, Cloneable

A menu item.

Java class for MenuItem complex type.

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

 <complexType name="MenuItem">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="item" type="{http://maven.apache.org/DECORATION/1.0.0}MenuItem" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="collapse" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="ref" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="href" type="{http://www.w3.org/2001/XMLSchema}string" />
     </restriction>
   </complexContent>
 </complexType>
 

See Also:
Serialized Form

Field Summary
protected  Boolean collapse
           
protected  String description
           
protected  String href
           
protected  List<MenuItem> item
           
protected  String name
           
protected  String ref
           
 
Constructor Summary
MenuItem()
          Creates a new net.sourceforge.ccxjc.it.model.pub.collections.valueclass.maven.decoration100.MenuItem instance.
MenuItem(MenuItem o)
          Creates a new net.sourceforge.ccxjc.it.model.pub.collections.valueclass.maven.decoration100.MenuItem instance by copying a given instance.
 
Method Summary
 MenuItem clone()
          Creates and returns a copy of this object.
static void copyItem(List<MenuItem> source, List<MenuItem> target)
          Copies all values of property Item.
 String getDescription()
          Gets the value of the description property.
 String getHref()
          Gets the value of the href property.
 List<MenuItem> getItem()
          Gets the value of the item property.
 String getName()
          Gets the value of the name property.
 String getRef()
          Gets the value of the ref property.
 boolean isCollapse()
          Gets the value of the collapse property.
 void setCollapse(Boolean value)
          Sets the value of the collapse property.
 void setDescription(String value)
          Sets the value of the description property.
 void setHref(String value)
          Sets the value of the href property.
 void setName(String value)
          Sets the value of the name property.
 void setRef(String value)
          Sets the value of the ref property.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

description

protected String description

item

protected List<MenuItem> item

collapse

protected Boolean collapse

ref

protected String ref

name

protected String name

href

protected String href
Constructor Detail

MenuItem

public MenuItem()
Creates a new net.sourceforge.ccxjc.it.model.pub.collections.valueclass.maven.decoration100.MenuItem instance.


MenuItem

public MenuItem(MenuItem o)
Creates a new net.sourceforge.ccxjc.it.model.pub.collections.valueclass.maven.decoration100.MenuItem instance by copying a given instance.

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

getDescription

public String getDescription()
Gets the value of the description property.

Returns:
possible object is String

setDescription

public void setDescription(String value)
Sets the value of the description property.

Parameters:
value - allowed object is String

getItem

public List<MenuItem> getItem()
Gets the value of the item 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 item property.

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

    getItem().add(newItem);
 

Objects of the following type(s) are allowed in the list MenuItem


isCollapse

public boolean isCollapse()
Gets the value of the collapse property.

Returns:
possible object is Boolean

setCollapse

public void setCollapse(Boolean value)
Sets the value of the collapse property.

Parameters:
value - allowed object is Boolean

getRef

public String getRef()
Gets the value of the ref property.

Returns:
possible object is String

setRef

public void setRef(String value)
Sets the value of the ref property.

Parameters:
value - allowed object is String

getName

public String getName()
Gets the value of the name property.

Returns:
possible object is String

setName

public void setName(String value)
Sets the value of the name property.

Parameters:
value - allowed object is String

getHref

public String getHref()
Gets the value of the href property.

Returns:
possible object is String

setHref

public void setHref(String value)
Sets the value of the href property.

Parameters:
value - allowed object is String

copyItem

public static void copyItem(List<MenuItem> source,
                            List<MenuItem> target)
Copies all values of property Item.

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

clone

public MenuItem 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.