public class Composite extends Object implements Serializable
Java class for Composite complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Composite">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="attributes" type="{http://sample.javaprinciples.sf.net}ClassAttributes"/>
<element name="textAttributes" type="{http://sample.javaprinciples.sf.net}TextAttributes" maxOccurs="5" minOccurs="4"/>
<element name="phone" type="{http://sample.javaprinciples.sf.net}ClassThree"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected ClassAttributes |
attributes |
protected ClassThree |
phone |
protected List<TextAttributes> |
textAttributes |
| Constructor and Description |
|---|
Composite() |
| Modifier and Type | Method and Description |
|---|---|
ClassAttributes |
getAttributes()
Gets the value of the attributes property.
|
ClassThree |
getPhone()
Gets the value of the phone property.
|
List<TextAttributes> |
getTextAttributes()
Gets the value of the textAttributes property.
|
void |
setAttributes(ClassAttributes value)
Sets the value of the attributes property.
|
void |
setPhone(ClassThree value)
Sets the value of the phone property.
|
protected ClassAttributes attributes
protected List<TextAttributes> textAttributes
protected ClassThree phone
public ClassAttributes getAttributes()
ClassAttributespublic void setAttributes(ClassAttributes value)
value - allowed object is
ClassAttributespublic List<TextAttributes> getTextAttributes()
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 textAttributes property.
For example, to add a new item, do as follows:
getTextAttributes().add(newItem);
Objects of the following type(s) are allowed in the list
TextAttributes
public ClassThree getPhone()
ClassThreepublic void setPhone(ClassThree value)
value - allowed object is
ClassThreeCopyright © 2014. All Rights Reserved.