();
/**
* Gets the value of the any 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 any property.
*
*
* For example, to add a new item, do as follows:
*
* getAny().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Element }
* {@link Object }
*
*
*/
public List getAny() {
if (any == null) {
any = new ArrayList();
}
return this.any;
}
/**
* Gets a map that contains attributes that aren't bound to any typed property on this class.
*
*
* the map is keyed by the name of the attribute and
* the value is the string value of the attribute.
*
* the map returned by this method is live, and you can add new attribute
* by updating the map directly. Because of this design, there's no setter.
*
*
* @return
* always non-null
*/
public Map getOtherAttributes() {
return otherAttributes;
}
/**
* Copies all state of this object to a builder. This method is used by the {@link
* #copyOf} method and should not be called directly by client code.
*
* @param _other
* A builder instance to which the state of this object will be copied.
*/
public<_B >void copyTo(final Body.Builder<_B> _other) {
}
public<_B >Body.Builder<_B> newCopyBuilder(final _B _parentBuilder) {
return new Body.Builder<_B>(_parentBuilder, this, true);
}
public Body.Builder newCopyBuilder() {
return newCopyBuilder(null);
}
public static Body.Builder builder() {
return new Body.Builder(null, null, false);
}
public static<_B >Body.Builder<_B> copyOf(final Body _other) {
final Body.Builder<_B> _newBuilder = new Body.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder);
return _newBuilder;
}
/**
* Copies all state of this object to a builder. This method is used by the {@link
* #copyOf} method and should not be called directly by client code.
*
* @param _other
* A builder instance to which the state of this object will be copied.
*/
public<_B >void copyTo(final Body.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
}
public<_B >Body.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return new Body.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse);
}
public Body.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return newCopyBuilder(null, _propertyTree, _propertyTreeUse);
}
public static<_B >Body.Builder<_B> copyOf(final Body _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final Body.Builder<_B> _newBuilder = new Body.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static Body.Builder copyExcept(final Body _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static Body.Builder copyOnly(final Body _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public static class Builder<_B >implements Buildable
{
protected final _B _parentBuilder;
protected final Body _storedValue;
private List any;
public Builder(final _B _parentBuilder, final Body _other, final boolean _copy) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public Builder(final _B _parentBuilder, final Body _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public _B end() {
return this._parentBuilder;
}
protected<_P extends Body >_P init(final _P _product) {
if (this.any!= null) {
final List any = new ArrayList(this.any.size());
for (Buildable _item: this.any) {
any.add(((Object) _item.build()));
}
_product.any = any;
}
return _product;
}
/**
* Adds the given items to the value of "any"
*
* @param any
* Items to add to the value of the "any" property
*/
public Body.Builder<_B> addAny(final Iterable> any) {
if (any!= null) {
if (this.any == null) {
this.any = new ArrayList();
}
for (Object _item: any) {
this.any.add(new Buildable.PrimitiveBuildable(_item));
}
}
return this;
}
/**
* Sets the new value of "any" (any previous value will be replaced)
*
* @param any
* New value of the "any" property.
*/
public Body.Builder<_B> withAny(final Iterable> any) {
if (this.any!= null) {
this.any.clear();
}
return addAny(any);
}
/**
* Adds the given items to the value of "any"
*
* @param any
* Items to add to the value of the "any" property
*/
public Body.Builder<_B> addAny(Object... any) {
addAny(Arrays.asList(any));
return this;
}
/**
* Sets the new value of "any" (any previous value will be replaced)
*
* @param any
* New value of the "any" property.
*/
public Body.Builder<_B> withAny(Object... any) {
withAny(Arrays.asList(any));
return this;
}
@Override
public Body build() {
if (_storedValue == null) {
return this.init(new Body());
} else {
return ((Body) _storedValue);
}
}
public Body.Builder<_B> copyOf(final Body _other) {
_other.copyTo(this);
return this;
}
public Body.Builder<_B> copyOf(final Body.Builder _other) {
return copyOf(_other.build());
}
}
public static class Select
extends Body.Selector
{
Select() {
super(null, null, null);
}
public static Body.Select _root() {
return new Body.Select();
}
}
public static class Selector , TParent >
extends com.kscs.util.jaxb.Selector
{
private com.kscs.util.jaxb.Selector> any = null;
public Selector(final TRoot root, final TParent parent, final String propertyName) {
super(root, parent, propertyName);
}
@Override
public Map buildChildren() {
final Map products = new HashMap();
products.putAll(super.buildChildren());
if (this.any!= null) {
products.put("any", this.any.init());
}
return products;
}
public com.kscs.util.jaxb.Selector> any() {
return ((this.any == null)?this.any = new com.kscs.util.jaxb.Selector>(this._root, this, "any"):this.any);
}
}
}