The following schema fragment specifies the expected content contained within this class.
*
*
content;
@XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink")
protected TypeType type;
@XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink")
protected String href;
@XmlAttribute(name = "role", namespace = "http://www.w3.org/1999/xlink")
protected String role;
@XmlAttribute(name = "arcrole", namespace = "http://www.w3.org/1999/xlink")
protected String arcrole;
@XmlAttribute(name = "title", namespace = "http://www.w3.org/1999/xlink")
protected String title;
@XmlAttribute(name = "show", namespace = "http://www.w3.org/1999/xlink")
protected ShowType show;
@XmlAttribute(name = "actuate", namespace = "http://www.w3.org/1999/xlink")
protected ActuateType actuate;
/**
*
* Intended for use as the type of user-declared elements to make them
* simple links.
* Gets the value of the content 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 content property.
*
*
* For example, to add a new item, do as follows:
*
* getContent().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Object }
* {@link String }
* {@link Element }
*
*
*/
public List getContent() {
if (content == null) {
content = new ArrayList();
}
return this.content;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link TypeType }
*
*/
public TypeType getType() {
if (type == null) {
return TypeType.SIMPLE;
} else {
return type;
}
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link TypeType }
*
*/
public void setType(TypeType value) {
this.type = value;
}
/**
* Gets the value of the href property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getHref() {
return href;
}
/**
* Sets the value of the href property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setHref(String value) {
this.href = value;
}
/**
* Gets the value of the role property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRole() {
return role;
}
/**
* Sets the value of the role property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRole(String value) {
this.role = value;
}
/**
* Gets the value of the arcrole property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getArcrole() {
return arcrole;
}
/**
* Sets the value of the arcrole property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setArcrole(String value) {
this.arcrole = value;
}
/**
* Gets the value of the title property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTitle() {
return title;
}
/**
* Sets the value of the title property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTitle(String value) {
this.title = value;
}
/**
* Gets the value of the show property.
*
* @return
* possible object is
* {@link ShowType }
*
*/
public ShowType getShow() {
return show;
}
/**
* Sets the value of the show property.
*
* @param value
* allowed object is
* {@link ShowType }
*
*/
public void setShow(ShowType value) {
this.show = value;
}
/**
* Gets the value of the actuate property.
*
* @return
* possible object is
* {@link ActuateType }
*
*/
public ActuateType getActuate() {
return actuate;
}
/**
* Sets the value of the actuate property.
*
* @param value
* allowed object is
* {@link ActuateType }
*
*/
public void setActuate(ActuateType value) {
this.actuate = value;
}
/**
* 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 Simple.Builder<_B> _other) {
if (this.content == null) {
_other.content = null;
} else {
_other.content = new ArrayList();
for (Object _item: this.content) {
_other.content.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
_other.type = this.type;
_other.href = this.href;
_other.role = this.role;
_other.arcrole = this.arcrole;
_other.title = this.title;
_other.show = this.show;
_other.actuate = this.actuate;
}
public<_B >Simple.Builder<_B> newCopyBuilder(final _B _parentBuilder) {
return new Simple.Builder<_B>(_parentBuilder, this, true);
}
public Simple.Builder newCopyBuilder() {
return newCopyBuilder(null);
}
public static Simple.Builder builder() {
return new Simple.Builder(null, null, false);
}
public static<_B >Simple.Builder<_B> copyOf(final Simple _other) {
final Simple.Builder<_B> _newBuilder = new Simple.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 Simple.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final PropertyTree contentPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("content"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(contentPropertyTree!= null):((contentPropertyTree == null)||(!contentPropertyTree.isLeaf())))) {
if (this.content == null) {
_other.content = null;
} else {
_other.content = new ArrayList();
for (Object _item: this.content) {
_other.content.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
}
final PropertyTree typePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("type"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(typePropertyTree!= null):((typePropertyTree == null)||(!typePropertyTree.isLeaf())))) {
_other.type = this.type;
}
final PropertyTree hrefPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("href"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(hrefPropertyTree!= null):((hrefPropertyTree == null)||(!hrefPropertyTree.isLeaf())))) {
_other.href = this.href;
}
final PropertyTree rolePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("role"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(rolePropertyTree!= null):((rolePropertyTree == null)||(!rolePropertyTree.isLeaf())))) {
_other.role = this.role;
}
final PropertyTree arcrolePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("arcrole"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(arcrolePropertyTree!= null):((arcrolePropertyTree == null)||(!arcrolePropertyTree.isLeaf())))) {
_other.arcrole = this.arcrole;
}
final PropertyTree titlePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("title"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(titlePropertyTree!= null):((titlePropertyTree == null)||(!titlePropertyTree.isLeaf())))) {
_other.title = this.title;
}
final PropertyTree showPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("show"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(showPropertyTree!= null):((showPropertyTree == null)||(!showPropertyTree.isLeaf())))) {
_other.show = this.show;
}
final PropertyTree actuatePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("actuate"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(actuatePropertyTree!= null):((actuatePropertyTree == null)||(!actuatePropertyTree.isLeaf())))) {
_other.actuate = this.actuate;
}
}
public<_B >Simple.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return new Simple.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse);
}
public Simple.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return newCopyBuilder(null, _propertyTree, _propertyTreeUse);
}
public static<_B >Simple.Builder<_B> copyOf(final Simple _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final Simple.Builder<_B> _newBuilder = new Simple.Builder<_B>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
public static Simple.Builder copyExcept(final Simple _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
public static Simple.Builder copyOnly(final Simple _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
public static class Builder<_B >implements Buildable
{
protected final _B _parentBuilder;
protected final Simple _storedValue;
private List content;
private TypeType type;
private String href;
private String role;
private String arcrole;
private String title;
private ShowType show;
private ActuateType actuate;
public Builder(final _B _parentBuilder, final Simple _other, final boolean _copy) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
if (_other.content == null) {
this.content = null;
} else {
this.content = new ArrayList();
for (Object _item: _other.content) {
this.content.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
this.type = _other.type;
this.href = _other.href;
this.role = _other.role;
this.arcrole = _other.arcrole;
this.title = _other.title;
this.show = _other.show;
this.actuate = _other.actuate;
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public Builder(final _B _parentBuilder, final Simple _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
final PropertyTree contentPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("content"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(contentPropertyTree!= null):((contentPropertyTree == null)||(!contentPropertyTree.isLeaf())))) {
if (_other.content == null) {
this.content = null;
} else {
this.content = new ArrayList();
for (Object _item: _other.content) {
this.content.add(((_item == null)?null:new Buildable.PrimitiveBuildable(_item)));
}
}
}
final PropertyTree typePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("type"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(typePropertyTree!= null):((typePropertyTree == null)||(!typePropertyTree.isLeaf())))) {
this.type = _other.type;
}
final PropertyTree hrefPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("href"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(hrefPropertyTree!= null):((hrefPropertyTree == null)||(!hrefPropertyTree.isLeaf())))) {
this.href = _other.href;
}
final PropertyTree rolePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("role"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(rolePropertyTree!= null):((rolePropertyTree == null)||(!rolePropertyTree.isLeaf())))) {
this.role = _other.role;
}
final PropertyTree arcrolePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("arcrole"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(arcrolePropertyTree!= null):((arcrolePropertyTree == null)||(!arcrolePropertyTree.isLeaf())))) {
this.arcrole = _other.arcrole;
}
final PropertyTree titlePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("title"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(titlePropertyTree!= null):((titlePropertyTree == null)||(!titlePropertyTree.isLeaf())))) {
this.title = _other.title;
}
final PropertyTree showPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("show"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(showPropertyTree!= null):((showPropertyTree == null)||(!showPropertyTree.isLeaf())))) {
this.show = _other.show;
}
final PropertyTree actuatePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("actuate"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(actuatePropertyTree!= null):((actuatePropertyTree == null)||(!actuatePropertyTree.isLeaf())))) {
this.actuate = _other.actuate;
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public _B end() {
return this._parentBuilder;
}
protected<_P extends Simple >_P init(final _P _product) {
if (this.content!= null) {
final List content = new ArrayList(this.content.size());
for (Buildable _item: this.content) {
content.add(((Object) _item.build()));
}
_product.content = content;
}
_product.type = this.type;
_product.href = this.href;
_product.role = this.role;
_product.arcrole = this.arcrole;
_product.title = this.title;
_product.show = this.show;
_product.actuate = this.actuate;
return _product;
}
/**
* Adds the given items to the value of "content"
*
* @param content
* Items to add to the value of the "content" property
*/
public Simple.Builder<_B> addContent(final Iterable> content) {
if (content!= null) {
if (this.content == null) {
this.content = new ArrayList();
}
for (Object _item: content) {
this.content.add(new Buildable.PrimitiveBuildable(_item));
}
}
return this;
}
/**
* Sets the new value of "content" (any previous value will be replaced)
*
* @param content
* New value of the "content" property.
*/
public Simple.Builder<_B> withContent(final Iterable> content) {
if (this.content!= null) {
this.content.clear();
}
return addContent(content);
}
/**
* Adds the given items to the value of "content"
*
* @param content
* Items to add to the value of the "content" property
*/
public Simple.Builder<_B> addContent(Object... content) {
addContent(Arrays.asList(content));
return this;
}
/**
* Sets the new value of "content" (any previous value will be replaced)
*
* @param content
* New value of the "content" property.
*/
public Simple.Builder<_B> withContent(Object... content) {
withContent(Arrays.asList(content));
return this;
}
/**
* Sets the new value of "type" (any previous value will be replaced)
*
* @param type
* New value of the "type" property.
*/
public Simple.Builder<_B> withType(final TypeType type) {
this.type = type;
return this;
}
/**
* Sets the new value of "href" (any previous value will be replaced)
*
* @param href
* New value of the "href" property.
*/
public Simple.Builder<_B> withHref(final String href) {
this.href = href;
return this;
}
/**
* Sets the new value of "role" (any previous value will be replaced)
*
* @param role
* New value of the "role" property.
*/
public Simple.Builder<_B> withRole(final String role) {
this.role = role;
return this;
}
/**
* Sets the new value of "arcrole" (any previous value will be replaced)
*
* @param arcrole
* New value of the "arcrole" property.
*/
public Simple.Builder<_B> withArcrole(final String arcrole) {
this.arcrole = arcrole;
return this;
}
/**
* Sets the new value of "title" (any previous value will be replaced)
*
* @param title
* New value of the "title" property.
*/
public Simple.Builder<_B> withTitle(final String title) {
this.title = title;
return this;
}
/**
* Sets the new value of "show" (any previous value will be replaced)
*
* @param show
* New value of the "show" property.
*/
public Simple.Builder<_B> withShow(final ShowType show) {
this.show = show;
return this;
}
/**
* Sets the new value of "actuate" (any previous value will be replaced)
*
* @param actuate
* New value of the "actuate" property.
*/
public Simple.Builder<_B> withActuate(final ActuateType actuate) {
this.actuate = actuate;
return this;
}
@Override
public Simple build() {
if (_storedValue == null) {
return this.init(new Simple());
} else {
return ((Simple) _storedValue);
}
}
}
public static class Select
extends Simple.Selector
{
Select() {
super(null, null, null);
}
public static Simple.Select _root() {
return new Simple.Select();
}
}
public static class Selector , TParent >
extends com.kscs.util.jaxb.Selector
{
private com.kscs.util.jaxb.Selector> content = null;
private com.kscs.util.jaxb.Selector> type = null;
private com.kscs.util.jaxb.Selector> href = null;
private com.kscs.util.jaxb.Selector> role = null;
private com.kscs.util.jaxb.Selector> arcrole = null;
private com.kscs.util.jaxb.Selector> title = null;
private com.kscs.util.jaxb.Selector> show = null;
private com.kscs.util.jaxb.Selector> actuate = 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.content!= null) {
products.put("content", this.content.init());
}
if (this.type!= null) {
products.put("type", this.type.init());
}
if (this.href!= null) {
products.put("href", this.href.init());
}
if (this.role!= null) {
products.put("role", this.role.init());
}
if (this.arcrole!= null) {
products.put("arcrole", this.arcrole.init());
}
if (this.title!= null) {
products.put("title", this.title.init());
}
if (this.show!= null) {
products.put("show", this.show.init());
}
if (this.actuate!= null) {
products.put("actuate", this.actuate.init());
}
return products;
}
public com.kscs.util.jaxb.Selector> content() {
return ((this.content == null)?this.content = new com.kscs.util.jaxb.Selector>(this._root, this, "content"):this.content);
}
public com.kscs.util.jaxb.Selector> type() {
return ((this.type == null)?this.type = new com.kscs.util.jaxb.Selector>(this._root, this, "type"):this.type);
}
public com.kscs.util.jaxb.Selector> href() {
return ((this.href == null)?this.href = new com.kscs.util.jaxb.Selector>(this._root, this, "href"):this.href);
}
public com.kscs.util.jaxb.Selector> role() {
return ((this.role == null)?this.role = new com.kscs.util.jaxb.Selector>(this._root, this, "role"):this.role);
}
public com.kscs.util.jaxb.Selector> arcrole() {
return ((this.arcrole == null)?this.arcrole = new com.kscs.util.jaxb.Selector>(this._root, this, "arcrole"):this.arcrole);
}
public com.kscs.util.jaxb.Selector> title() {
return ((this.title == null)?this.title = new com.kscs.util.jaxb.Selector>(this._root, this, "title"):this.title);
}
public com.kscs.util.jaxb.Selector> show() {
return ((this.show == null)?this.show = new com.kscs.util.jaxb.Selector>(this._root, this, "show"):this.show);
}
public com.kscs.util.jaxb.Selector> actuate() {
return ((this.actuate == null)?this.actuate = new com.kscs.util.jaxb.Selector>(this._root, this, "actuate"):this.actuate);
}
}
}