/*******************************************************************************
* Copyright (c) 2006-2010 eBay Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*******************************************************************************/
package org.ebayopensource.turmeric.runtime.tests.common.cachepolicy;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for NestedObject complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="NestedObject">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="objId" type="{http://www.w3.org/2001/XMLSchema}long"/>
* <element name="objName" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="objArrayElement" type="{http://www.w3.org/2001/XMLSchema}long" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "NestedObject", propOrder = {
"objId",
"objName",
"objArrayElement"
})
public class NestedObject {
protected long objId;
@XmlElement(required = true)
protected String objName;
@XmlElement(nillable = true)
protected List<Long> objArrayElement;
/**
* Gets the value of the objId property.
*
*/
public long getObjId() {
return objId;
}
/**
* Sets the value of the objId property.
*
*/
public void setObjId(long value) {
this.objId = value;
}
/**
* Gets the value of the objName property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getObjName() {
return objName;
}
/**
* Sets the value of the objName property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setObjName(String value) {
this.objName = value;
}
/**
* Gets the value of the objArrayElement property.
*
* <p>
* 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 <CODE>set</CODE> method for the objArrayElement property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getObjArrayElement().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Long }
*
*
*/
public List<Long> getObjArrayElement() {
if (objArrayElement == null) {
objArrayElement = new ArrayList<Long>();
}
return this.objArrayElement;
}
}