content;
/**
* 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 Element }
* {@link Object }
* {@link String }
*
*
*/
public List getContent() {
if (content == null) {
content = new ArrayList();
}
return this.content;
}
public String toString() {
final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE;
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
{
List theContent;
theContent = (((this.content!= null)&&(!this.content.isEmpty()))?this.getContent():null);
strategy.appendField(locator, this, "content", buffer, theContent, ((this.content!= null)&&(!this.content.isEmpty())));
}
return buffer;
}
public Object clone() {
return copyTo(createNewInstance());
}
public Object copyTo(Object target) {
final CopyStrategy2 strategy = JAXBCopyStrategy.INSTANCE;
return copyTo(null, target, strategy);
}
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) {
final Object draftCopy = ((target == null)?createNewInstance():target);
if (draftCopy instanceof UserDefinedAnyfield) {
final UserDefinedAnyfield copy = ((UserDefinedAnyfield) draftCopy);
{
Boolean contentShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, ((this.content!= null)&&(!this.content.isEmpty())));
if (contentShouldBeCopiedAndSet == Boolean.TRUE) {
List sourceContent;
sourceContent = (((this.content!= null)&&(!this.content.isEmpty()))?this.getContent():null);
@SuppressWarnings("unchecked")
List copyContent = ((List ) strategy.copy(LocatorUtils.property(locator, "content", sourceContent), sourceContent, ((this.content!= null)&&(!this.content.isEmpty()))));
copy.content = null;
if (copyContent!= null) {
List uniqueContentl = copy.getContent();
uniqueContentl.addAll(copyContent);
}
} else {
if (contentShouldBeCopiedAndSet == Boolean.FALSE) {
copy.content = null;
}
}
}
}
return draftCopy;
}
public Object createNewInstance() {
return new UserDefinedAnyfield();
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy2 strategy) {
if ((object == null)||(this.getClass()!= object.getClass())) {
return false;
}
if (this == object) {
return true;
}
final UserDefinedAnyfield that = ((UserDefinedAnyfield) object);
{
List lhsContent;
lhsContent = (((this.content!= null)&&(!this.content.isEmpty()))?this.getContent():null);
List rhsContent;
rhsContent = (((that.content!= null)&&(!that.content.isEmpty()))?that.getContent():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "content", lhsContent), LocatorUtils.property(thatLocator, "content", rhsContent), lhsContent, rhsContent, ((this.content!= null)&&(!this.content.isEmpty())), ((that.content!= null)&&(!that.content.isEmpty())))) {
return false;
}
}
return true;
}
public boolean equals(Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
}