public class MotherElement extends Object implements Serializable, Cloneable, org.jvnet.jaxb2_commons.lang.CopyTo, org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode, org.jvnet.jaxb2_commons.lang.MergeFrom, 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 ref="{}child" maxOccurs="unbounded"/> </sequence> <attribute ref="{}firstname use="required""/> <attribute ref="{}lastname use="required""/> <attribute ref="{}age"/> </restriction> </complexContent> </complexType>
Modifier and Type | Field and Description |
---|---|
protected Integer |
age |
protected List<ChildElement> |
child |
protected String |
firstname |
protected String |
lastname |
Constructor and Description |
---|
MotherElement() |
Modifier and Type | Method and Description |
---|---|
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) |
Object |
clone() |
Object |
copyTo(Object target) |
Object |
copyTo(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
Object target,
org.jvnet.jaxb2_commons.lang.CopyStrategy strategy) |
Object |
createNewInstance() |
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) |
Integer |
getAge()
Gets the value of the age property.
|
List<ChildElement> |
getChild()
Gets the value of the child property.
|
String |
getFirstname()
Gets the value of the firstname property.
|
String |
getLastname()
Gets the value of the lastname property.
|
int |
hashCode() |
int |
hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy) |
void |
mergeFrom(org.jvnet.jaxb2_commons.locator.ObjectLocator leftLocator,
org.jvnet.jaxb2_commons.locator.ObjectLocator rightLocator,
Object left,
Object right,
org.jvnet.jaxb2_commons.lang.MergeStrategy strategy) |
void |
mergeFrom(Object left,
Object right) |
void |
setAge(Integer value)
Sets the value of the age property.
|
void |
setFirstname(String value)
Sets the value of the firstname property.
|
void |
setLastname(String value)
Sets the value of the lastname property.
|
String |
toString() |
protected List<ChildElement> child
protected String firstname
protected String lastname
protected Integer age
public List<ChildElement> getChild()
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 child property.
For example, to add a new item, do as follows:
getChild().add(newItem);
Objects of the following type(s) are allowed in the list
ChildElement
public String getFirstname()
String
public void setFirstname(String value)
value
- allowed object is
String
public String getLastname()
String
public void setLastname(String value)
value
- allowed object is
String
public Integer getAge()
Integer
public void setAge(Integer value)
value
- allowed object is
Integer
public StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
append
in interface org.jvnet.jaxb2_commons.lang.ToString
public StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
appendFields
in interface org.jvnet.jaxb2_commons.lang.ToString
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)
equals
in interface org.jvnet.jaxb2_commons.lang.Equals
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
hashCode
in interface org.jvnet.jaxb2_commons.lang.HashCode
public Object copyTo(Object target)
copyTo
in interface org.jvnet.jaxb2_commons.lang.CopyTo
public Object copyTo(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, Object target, org.jvnet.jaxb2_commons.lang.CopyStrategy strategy)
copyTo
in interface org.jvnet.jaxb2_commons.lang.CopyTo
public Object createNewInstance()
createNewInstance
in interface org.jvnet.jaxb2_commons.lang.CopyTo
createNewInstance
in interface org.jvnet.jaxb2_commons.lang.MergeFrom
public void mergeFrom(Object left, Object right)
mergeFrom
in interface org.jvnet.jaxb2_commons.lang.MergeFrom
public void mergeFrom(org.jvnet.jaxb2_commons.locator.ObjectLocator leftLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator rightLocator, Object left, Object right, org.jvnet.jaxb2_commons.lang.MergeStrategy strategy)
mergeFrom
in interface org.jvnet.jaxb2_commons.lang.MergeFrom
This work is licensed under a Creative Commons Attribution 4.0 International License.