Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   //
   // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
   // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
   // Any modifications to this file will be lost upon recompilation of the source schema. 
   // Generated on: 2015.04.16 at 07:22:02 AM CEST 
   //
   
   
   package net.opengis.arml.v_2_0;
  
  import java.util.List;

Java class for FeatureType complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="FeatureType">
   <complexContent>
     <extension base="{http://www.opengis.net/arml/2.0}ARElementType">
       <sequence>
         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
         <element name="enabled" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
         <element name="metadata" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence>
                   <any processContents='lax' maxOccurs="unbounded" minOccurs="0"/>
                 </sequence>
               </restriction>
             </complexContent>
           </complexType>
         </element>
         <element name="anchors" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence>
                   <element ref="{http://www.opengis.net/arml/2.0}Anchor" maxOccurs="unbounded" minOccurs="0"/>
                   <element name="anchorRef" maxOccurs="unbounded" minOccurs="0">
                     <complexType>
                       <complexContent>
                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                           <attribute ref="{http://www.w3.org/1999/xlink}href use="required""/>
                         </restriction>
                       </complexContent>
                     </complexType>
                   </element>
                 </sequence>
               </restriction>
             </complexContent>
           </complexType>
         </element>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
  
  @XmlType(name = "FeatureType", propOrder = {
      "name",
      "description",
      "enabled",
      "metadata",
      "anchors"
 })
 public class FeatureType
     extends ARElementType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     protected String name;
     protected String description;
     protected Boolean enabled;
     protected FeatureType.Metadata metadata;
     protected FeatureType.Anchors anchors;

    
Gets the value of the name property.

Returns:
possible object is
 
     public String getName() {
         return ;
     }

    
Sets the value of the name property.

Parameters:
value allowed object is
 
     public void setName(String value) {
         this. = value;
     }

    
Gets the value of the description property.

Returns:
possible object is
 
     public String getDescription() {
         return ;
     }

    
Sets the value of the description property.

Parameters:
value allowed object is
 
     public void setDescription(String value) {
         this. = value;
     }

    
Gets the value of the enabled property.

Returns:
possible object is
 
     public Boolean isEnabled() {
         return ;
     }

    
Sets the value of the enabled property.

Parameters:
value allowed object is
 
     public void setEnabled(Boolean value) {
         this. = value;
     }

    
Gets the value of the metadata property.

Returns:
possible object is
 
     public FeatureType.Metadata getMetadata() {
         return ;
     }

    
Sets the value of the metadata property.

Parameters:
value allowed object is
 
     public void setMetadata(FeatureType.Metadata value) {
         this. = value;
     }

    
Gets the value of the anchors property.

Returns:
possible object is
 
     public FeatureType.Anchors getAnchors() {
         return ;
     }

    
Sets the value of the anchors property.

Parameters:
value allowed object is
 
     public void setAnchors(FeatureType.Anchors value) {
         this. = value;
     }
 
     public String toString() {
         final ToStringStrategy strategy = .;
         final StringBuilder buffer = new StringBuilder();
         append(nullbufferstrategy);
         return buffer.toString();
     }
 
     public StringBuilder append(ObjectLocator locatorStringBuilder bufferToStringStrategy strategy) {
         strategy.appendStart(locatorthisbuffer);
         appendFields(locatorbufferstrategy);
         strategy.appendEnd(locatorthisbuffer);
         return buffer;
     }
 
     public StringBuilder appendFields(ObjectLocator locatorStringBuilder bufferToStringStrategy strategy) {
         super.appendFields(locatorbufferstrategy);
         {
             String theName;
             theName = this.getName();
             strategy.appendField(locatorthis"name"buffertheName);
         }
         {
             String theDescription;
             theDescription = this.getDescription();
             strategy.appendField(locatorthis"description"buffertheDescription);
         }
         {
             Boolean theEnabled;
             theEnabled = this.isEnabled();
             strategy.appendField(locatorthis"enabled"buffertheEnabled);
         }
         {
             FeatureType.Metadata theMetadata;
             theMetadata = this.getMetadata();
             strategy.appendField(locatorthis"metadata"buffertheMetadata);
         }
         {
             FeatureType.Anchors theAnchors;
             theAnchors = this.getAnchors();
             strategy.appendField(locatorthis"anchors"buffertheAnchors);
         }
         return buffer;
     }
 
     public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
         if (!(object instanceof FeatureType)) {
             return false;
         }
         if (this == object) {
             return true;
         }
         if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
             return false;
         }
         final FeatureType that = ((FeatureTypeobject);
         {
             String lhsName;
             lhsName = this.getName();
             String rhsName;
             rhsName = that.getName();
             if (!strategy.equals(LocatorUtils.property(thisLocator"name"lhsName), LocatorUtils.property(thatLocator"name"rhsName), lhsNamerhsName)) {
                 return false;
             }
         }
         {
             String lhsDescription;
             lhsDescription = this.getDescription();
             String rhsDescription;
             rhsDescription = that.getDescription();
             if (!strategy.equals(LocatorUtils.property(thisLocator"description"lhsDescription), LocatorUtils.property(thatLocator"description"rhsDescription), lhsDescriptionrhsDescription)) {
                 return false;
             }
         }
         {
             Boolean lhsEnabled;
             lhsEnabled = this.isEnabled();
             Boolean rhsEnabled;
             rhsEnabled = that.isEnabled();
             if (!strategy.equals(LocatorUtils.property(thisLocator"enabled"lhsEnabled), LocatorUtils.property(thatLocator"enabled"rhsEnabled), lhsEnabledrhsEnabled)) {
                 return false;
             }
         }
         {
             FeatureType.Metadata lhsMetadata;
             lhsMetadata = this.getMetadata();
             FeatureType.Metadata rhsMetadata;
             rhsMetadata = that.getMetadata();
             if (!strategy.equals(LocatorUtils.property(thisLocator"metadata"lhsMetadata), LocatorUtils.property(thatLocator"metadata"rhsMetadata), lhsMetadatarhsMetadata)) {
                 return false;
             }
         }
         {
             FeatureType.Anchors lhsAnchors;
             lhsAnchors = this.getAnchors();
             FeatureType.Anchors rhsAnchors;
             rhsAnchors = that.getAnchors();
             if (!strategy.equals(LocatorUtils.property(thisLocator"anchors"lhsAnchors), LocatorUtils.property(thatLocator"anchors"rhsAnchors), lhsAnchorsrhsAnchors)) {
                 return false;
             }
         }
         return true;
     }
 
     public boolean equals(Object object) {
         final EqualsStrategy strategy = .;
         return equals(nullnullobjectstrategy);
     }
 
     public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
         int currentHashCode = super.hashCode(locatorstrategy);
         {
             String theName;
             theName = this.getName();
             currentHashCode = strategy.hashCode(LocatorUtils.property(locator"name"theName), currentHashCodetheName);
         }
         {
             String theDescription;
             theDescription = this.getDescription();
             currentHashCode = strategy.hashCode(LocatorUtils.property(locator"description"theDescription), currentHashCodetheDescription);
         }
         {
             Boolean theEnabled;
             theEnabled = this.isEnabled();
             currentHashCode = strategy.hashCode(LocatorUtils.property(locator"enabled"theEnabled), currentHashCodetheEnabled);
         }
         {
             FeatureType.Metadata theMetadata;
             theMetadata = this.getMetadata();
             currentHashCode = strategy.hashCode(LocatorUtils.property(locator"metadata"theMetadata), currentHashCodetheMetadata);
         }
         {
             FeatureType.Anchors theAnchors;
             theAnchors = this.getAnchors();
             currentHashCode = strategy.hashCode(LocatorUtils.property(locator"anchors"theAnchors), currentHashCodetheAnchors);
         }
         return currentHashCode;
     }
 
     public int hashCode() {
         final HashCodeStrategy strategy = .;
         return this.hashCode(nullstrategy);
     }
 
     public Object clone() {
         return copyTo(createNewInstance());
     }
 
     public Object copyTo(Object target) {
         final CopyStrategy strategy = .;
         return copyTo(nulltargetstrategy);
     }
 
     public Object copyTo(ObjectLocator locatorObject targetCopyStrategy strategy) {
         final Object draftCopy = ((target == null)?createNewInstance():target);
         super.copyTo(locatordraftCopystrategy);
         if (draftCopy instanceof FeatureType) {
             final FeatureType copy = ((FeatureTypedraftCopy);
             if (this.!= null) {
                 String sourceName;
                 sourceName = this.getName();
                 String copyName = ((Stringstrategy.copy(LocatorUtils.property(locator"name"sourceName), sourceName));
                 copy.setName(copyName);
             } else {
                 copy.name = null;
             }
             if (this.!= null) {
                 String sourceDescription;
                 sourceDescription = this.getDescription();
                 String copyDescription = ((Stringstrategy.copy(LocatorUtils.property(locator"description"sourceDescription), sourceDescription));
                 copy.setDescription(copyDescription);
             } else {
                 copy.description = null;
             }
             if (this.!= null) {
                 Boolean sourceEnabled;
                 sourceEnabled = this.isEnabled();
                 Boolean copyEnabled = ((Booleanstrategy.copy(LocatorUtils.property(locator"enabled"sourceEnabled), sourceEnabled));
                 copy.setEnabled(copyEnabled);
             } else {
                 copy.enabled = null;
             }
             if (this.!= null) {
                 FeatureType.Metadata sourceMetadata;
                 sourceMetadata = this.getMetadata();
                 FeatureType.Metadata copyMetadata = ((FeatureType.Metadatastrategy.copy(LocatorUtils.property(locator"metadata"sourceMetadata), sourceMetadata));
                 copy.setMetadata(copyMetadata);
             } else {
                 copy.metadata = null;
             }
             if (this.!= null) {
                 FeatureType.Anchors sourceAnchors;
                 sourceAnchors = this.getAnchors();
                 FeatureType.Anchors copyAnchors = ((FeatureType.Anchorsstrategy.copy(LocatorUtils.property(locator"anchors"sourceAnchors), sourceAnchors));
                 copy.setAnchors(copyAnchors);
             } else {
                 copy.anchors = null;
             }
         }
         return draftCopy;
     }
 
     public Object createNewInstance() {
         return new FeatureType();
     }
 
     public void mergeFrom(Object leftObject right) {
         final MergeStrategy strategy = .;
         mergeFrom(nullnullleftrightstrategy);
     }
 
     public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
         super.mergeFrom(leftLocatorrightLocatorleftrightstrategy);
         if (right instanceof FeatureType) {
             final FeatureType target = this;
             final FeatureType leftObject = ((FeatureTypeleft);
             final FeatureType rightObject = ((FeatureTyperight);
             {
                 String lhsName;
                 lhsName = leftObject.getName();
                 String rhsName;
                 rhsName = rightObject.getName();
                 String mergedName = ((Stringstrategy.merge(LocatorUtils.property(leftLocator"name"lhsName), LocatorUtils.property(rightLocator"name"rhsName), lhsNamerhsName));
                 target.setName(mergedName);
             }
             {
                 String lhsDescription;
                 lhsDescription = leftObject.getDescription();
                 String rhsDescription;
                 rhsDescription = rightObject.getDescription();
                 String mergedDescription = ((Stringstrategy.merge(LocatorUtils.property(leftLocator"description"lhsDescription), LocatorUtils.property(rightLocator"description"rhsDescription), lhsDescriptionrhsDescription));
                 target.setDescription(mergedDescription);
             }
             {
                 Boolean lhsEnabled;
                 lhsEnabled = leftObject.isEnabled();
                 Boolean rhsEnabled;
                 rhsEnabled = rightObject.isEnabled();
                 Boolean mergedEnabled = ((Booleanstrategy.merge(LocatorUtils.property(leftLocator"enabled"lhsEnabled), LocatorUtils.property(rightLocator"enabled"rhsEnabled), lhsEnabledrhsEnabled));
                 target.setEnabled(mergedEnabled);
             }
             {
                 FeatureType.Metadata lhsMetadata;
                 lhsMetadata = leftObject.getMetadata();
                 FeatureType.Metadata rhsMetadata;
                 rhsMetadata = rightObject.getMetadata();
                 FeatureType.Metadata mergedMetadata = ((FeatureType.Metadatastrategy.merge(LocatorUtils.property(leftLocator"metadata"lhsMetadata), LocatorUtils.property(rightLocator"metadata"rhsMetadata), lhsMetadatarhsMetadata));
                 target.setMetadata(mergedMetadata);
             }
             {
                 FeatureType.Anchors lhsAnchors;
                 lhsAnchors = leftObject.getAnchors();
                 FeatureType.Anchors rhsAnchors;
                 rhsAnchors = rightObject.getAnchors();
                 FeatureType.Anchors mergedAnchors = ((FeatureType.Anchorsstrategy.merge(LocatorUtils.property(leftLocator"anchors"lhsAnchors), LocatorUtils.property(rightLocator"anchors"rhsAnchors), lhsAnchorsrhsAnchors));
                 target.setAnchors(mergedAnchors);
             }
         }
     }
 
     public FeatureType withName(String value) {
         setName(value);
         return this;
     }
 
     public FeatureType withDescription(String value) {
         setDescription(value);
         return this;
     }
 
     public FeatureType withEnabled(Boolean value) {
         setEnabled(value);
         return this;
     }
 
     public FeatureType withMetadata(FeatureType.Metadata value) {
         setMetadata(value);
         return this;
     }
 
     public FeatureType withAnchors(FeatureType.Anchors value) {
         setAnchors(value);
         return this;
     }
 
     @Override
     public FeatureType withId(String value) {
         setId(value);
         return this;
     }


    

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="{http://www.opengis.net/arml/2.0}Anchor" maxOccurs="unbounded" minOccurs="0"/>
         <element name="anchorRef" maxOccurs="unbounded" minOccurs="0">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <attribute ref="{http://www.w3.org/1999/xlink}href use="required""/>
               </restriction>
             </complexContent>
           </complexType>
         </element>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
 
     @XmlType(name = "", propOrder = {
         "anchor",
         "anchorRef"
     })
     public static class Anchors
         implements CloneableCopyToEqualsHashCodeMergeFromToString
     {
 
         @XmlElementRef(name = "Anchor", namespace = "http://www.opengis.net/arml/2.0", type = JAXBElement.class, required = false)
         protected List<JAXBElement<? extends AnchorType>> anchor;
         protected List<FeatureType.Anchors.AnchorRefanchorRef;

        
Gets the value of the anchor 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 anchor property.

For example, to add a new item, do as follows:

    getAnchor().add(newItem);
 

Objects of the following type(s) are allowed in the list <> <> <> <> <> <>

 
         public List<JAXBElement<? extends AnchorType>> getAnchor() {
             if ( == null) {
                  = new ArrayList<JAXBElement<? extends AnchorType>>();
             }
             return this.;
         }

        
Gets the value of the anchorRef 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 anchorRef property.

For example, to add a new item, do as follows:

    getAnchorRef().add(newItem);
 

Objects of the following type(s) are allowed in the list

 
         public List<FeatureType.Anchors.AnchorRefgetAnchorRef() {
             if ( == null) {
                  = new ArrayList<FeatureType.Anchors.AnchorRef>();
             }
             return this.;
         }
 
         public String toString() {
             final ToStringStrategy strategy = .;
             final StringBuilder buffer = new StringBuilder();
             append(nullbufferstrategy);
             return buffer.toString();
         }
 
         public StringBuilder append(ObjectLocator locatorStringBuilder bufferToStringStrategy strategy) {
             strategy.appendStart(locatorthisbuffer);
             appendFields(locatorbufferstrategy);
             strategy.appendEnd(locatorthisbuffer);
             return buffer;
         }
 
         public StringBuilder appendFields(ObjectLocator locatorStringBuilder bufferToStringStrategy strategy) {
             {
                 List<JAXBElement<? extends AnchorType>> theAnchor;
                 theAnchor = (((this.!= null)&&(!this..isEmpty()))?this.getAnchor():null);
                 strategy.appendField(locatorthis"anchor"buffertheAnchor);
             }
             {
                 List<FeatureType.Anchors.AnchorReftheAnchorRef;
                 theAnchorRef = (((this.!= null)&&(!this..isEmpty()))?this.getAnchorRef():null);
                 strategy.appendField(locatorthis"anchorRef"buffertheAnchorRef);
             }
             return buffer;
         }
 
         public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
             if (!(object instanceof FeatureType.Anchors)) {
                 return false;
             }
             if (this == object) {
                 return true;
             }
             final FeatureType.Anchors that = ((FeatureType.Anchorsobject);
             {
                 List<JAXBElement<? extends AnchorType>> lhsAnchor;
                 lhsAnchor = (((this.!= null)&&(!this..isEmpty()))?this.getAnchor():null);
                 List<JAXBElement<? extends AnchorType>> rhsAnchor;
                 rhsAnchor = (((that.anchor!= null)&&(!that.anchor.isEmpty()))?that.getAnchor():null);
                 if (!strategy.equals(LocatorUtils.property(thisLocator"anchor"lhsAnchor), LocatorUtils.property(thatLocator"anchor"rhsAnchor), lhsAnchorrhsAnchor)) {
                     return false;
                 }
             }
             {
                 List<FeatureType.Anchors.AnchorReflhsAnchorRef;
                 lhsAnchorRef = (((this.!= null)&&(!this..isEmpty()))?this.getAnchorRef():null);
                 List<FeatureType.Anchors.AnchorRefrhsAnchorRef;
                 rhsAnchorRef = (((that.anchorRef!= null)&&(!that.anchorRef.isEmpty()))?that.getAnchorRef():null);
                 if (!strategy.equals(LocatorUtils.property(thisLocator"anchorRef"lhsAnchorRef), LocatorUtils.property(thatLocator"anchorRef"rhsAnchorRef), lhsAnchorRefrhsAnchorRef)) {
                     return false;
                 }
             }
             return true;
         }
 
         public boolean equals(Object object) {
             final EqualsStrategy strategy = .;
             return equals(nullnullobjectstrategy);
         }
 
         public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
             int currentHashCode = 1;
             {
                 List<JAXBElement<? extends AnchorType>> theAnchor;
                 theAnchor = (((this.!= null)&&(!this..isEmpty()))?this.getAnchor():null);
                 currentHashCode = strategy.hashCode(LocatorUtils.property(locator"anchor"theAnchor), currentHashCodetheAnchor);
             }
             {
                 List<FeatureType.Anchors.AnchorReftheAnchorRef;
                 theAnchorRef = (((this.!= null)&&(!this..isEmpty()))?this.getAnchorRef():null);
                 currentHashCode = strategy.hashCode(LocatorUtils.property(locator"anchorRef"theAnchorRef), currentHashCodetheAnchorRef);
             }
             return currentHashCode;
         }
 
         public int hashCode() {
             final HashCodeStrategy strategy = .;
             return this.hashCode(nullstrategy);
         }
 
         public Object clone() {
             return copyTo(createNewInstance());
         }
 
         public Object copyTo(Object target) {
             final CopyStrategy strategy = .;
             return copyTo(nulltargetstrategy);
         }
 
         public Object copyTo(ObjectLocator locatorObject targetCopyStrategy strategy) {
             final Object draftCopy = ((target == null)?createNewInstance():target);
             if (draftCopy instanceof FeatureType.Anchors) {
                 final FeatureType.Anchors copy = ((FeatureType.AnchorsdraftCopy);
                 if ((this.!= null)&&(!this..isEmpty())) {
                     List<JAXBElement<? extends AnchorType>> sourceAnchor;
                     sourceAnchor = (((this.!= null)&&(!this..isEmpty()))?this.getAnchor():null);
                     @SuppressWarnings("unchecked")
                     List<JAXBElement<? extends AnchorType>> copyAnchor = ((List<JAXBElement<? extends AnchorType>> ) strategy.copy(LocatorUtils.property(locator"anchor"sourceAnchor), sourceAnchor));
                     copy.anchor = null;
                     if (copyAnchor!= null) {
                         List<JAXBElement<? extends AnchorType>> uniqueAnchorl = copy.getAnchor();
                         uniqueAnchorl.addAll(copyAnchor);
                     }
                 } else {
                     copy.anchor = null;
                 }
                 if ((this.!= null)&&(!this..isEmpty())) {
                     List<FeatureType.Anchors.AnchorRefsourceAnchorRef;
                     sourceAnchorRef = (((this.!= null)&&(!this..isEmpty()))?this.getAnchorRef():null);
                     @SuppressWarnings("unchecked")
                     List<FeatureType.Anchors.AnchorRefcopyAnchorRef = ((List<FeatureType.Anchors.AnchorRef> ) strategy.copy(LocatorUtils.property(locator"anchorRef"sourceAnchorRef), sourceAnchorRef));
                     copy.anchorRef = null;
                     if (copyAnchorRef!= null) {
                         List<FeatureType.Anchors.AnchorRefuniqueAnchorRefl = copy.getAnchorRef();
                         uniqueAnchorRefl.addAll(copyAnchorRef);
                     }
                 } else {
                     copy.anchorRef = null;
                 }
             }
             return draftCopy;
         }
 
         public Object createNewInstance() {
             return new FeatureType.Anchors();
         }
 
         public void mergeFrom(Object leftObject right) {
             final MergeStrategy strategy = .;
             mergeFrom(nullnullleftrightstrategy);
         }
 
         public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
             if (right instanceof FeatureType.Anchors) {
                 final FeatureType.Anchors target = this;
                 final FeatureType.Anchors leftObject = ((FeatureType.Anchorsleft);
                 final FeatureType.Anchors rightObject = ((FeatureType.Anchorsright);
                 {
                     List<JAXBElement<? extends AnchorType>> lhsAnchor;
                     lhsAnchor = (((leftObject.anchor!= null)&&(!leftObject.anchor.isEmpty()))?leftObject.getAnchor():null);
                     List<JAXBElement<? extends AnchorType>> rhsAnchor;
                     rhsAnchor = (((rightObject.anchor!= null)&&(!rightObject.anchor.isEmpty()))?rightObject.getAnchor():null);
                     List<JAXBElement<? extends AnchorType>> mergedAnchor = ((List<JAXBElement<? extends AnchorType>> ) strategy.merge(LocatorUtils.property(leftLocator"anchor"lhsAnchor), LocatorUtils.property(rightLocator"anchor"rhsAnchor), lhsAnchorrhsAnchor));
                     target.anchor = null;
                     if (mergedAnchor!= null) {
                         List<JAXBElement<? extends AnchorType>> uniqueAnchorl = target.getAnchor();
                         uniqueAnchorl.addAll(mergedAnchor);
                     }
                 }
                 {
                     List<FeatureType.Anchors.AnchorReflhsAnchorRef;
                     lhsAnchorRef = (((leftObject.anchorRef!= null)&&(!leftObject.anchorRef.isEmpty()))?leftObject.getAnchorRef():null);
                     List<FeatureType.Anchors.AnchorRefrhsAnchorRef;
                     rhsAnchorRef = (((rightObject.anchorRef!= null)&&(!rightObject.anchorRef.isEmpty()))?rightObject.getAnchorRef():null);
                     List<FeatureType.Anchors.AnchorRefmergedAnchorRef = ((List<FeatureType.Anchors.AnchorRef> ) strategy.merge(LocatorUtils.property(leftLocator"anchorRef"lhsAnchorRef), LocatorUtils.property(rightLocator"anchorRef"rhsAnchorRef), lhsAnchorRefrhsAnchorRef));
                     target.anchorRef = null;
                     if (mergedAnchorRef!= null) {
                         List<FeatureType.Anchors.AnchorRefuniqueAnchorRefl = target.getAnchorRef();
                         uniqueAnchorRefl.addAll(mergedAnchorRef);
                     }
                 }
             }
         }
 
         public void setAnchor(List<JAXBElement<? extends AnchorType>> value) {
             this. = null;
             List<JAXBElement<? extends AnchorType>> draftl = this.getAnchor();
             draftl.addAll(value);
         }
 
         public void setAnchorRef(List<FeatureType.Anchors.AnchorRefvalue) {
             this. = null;
             List<FeatureType.Anchors.AnchorRefdraftl = this.getAnchorRef();
             draftl.addAll(value);
         }
 
         public FeatureType.Anchors withAnchor(JAXBElement<? extends AnchorType> ... values) {
             if (values!= null) {
                 for (JAXBElement<? extends AnchorTypevaluevalues) {
                     getAnchor().add(value);
                 }
             }
             return this;
         }
 
         public FeatureType.Anchors withAnchor(Collection<JAXBElement<? extends AnchorType>> values) {
             if (values!= null) {
                 getAnchor().addAll(values);
             }
             return this;
         }
 
         public FeatureType.Anchors withAnchorRef(FeatureType.Anchors.AnchorRef... values) {
             if (values!= null) {
                 for (FeatureType.Anchors.AnchorRef valuevalues) {
                     getAnchorRef().add(value);
                 }
             }
             return this;
         }
 
             if (values!= null) {
                 getAnchorRef().addAll(values);
             }
             return this;
         }
 
         public FeatureType.Anchors withAnchor(List<JAXBElement<? extends AnchorType>> value) {
             setAnchor(value);
             return this;
         }
 
         public FeatureType.Anchors withAnchorRef(List<FeatureType.Anchors.AnchorRefvalue) {
             setAnchorRef(value);
             return this;
         }


        

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">
       <attribute ref="{http://www.w3.org/1999/xlink}href use="required""/>
     </restriction>
   </complexContent>
 </complexType>
 
 
         @XmlType(name = "")
         public static class AnchorRef
             implements CloneableCopyToEqualsHashCodeMergeFromToString
         {
 
             @XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink", required = true)
             protected String href;

            
Gets the value of the href property.

Returns:
possible object is
 
             public String getHref() {
                 return ;
             }

            
Sets the value of the href property.

Parameters:
value allowed object is
 
             public void setHref(String value) {
                 this. = value;
             }
 
             public String toString() {
                 final ToStringStrategy strategy = .;
                 final StringBuilder buffer = new StringBuilder();
                 append(nullbufferstrategy);
                 return buffer.toString();
             }
 
             public StringBuilder append(ObjectLocator locatorStringBuilder bufferToStringStrategy strategy) {
                 strategy.appendStart(locatorthisbuffer);
                 appendFields(locatorbufferstrategy);
                 strategy.appendEnd(locatorthisbuffer);
                 return buffer;
             }
 
             public StringBuilder appendFields(ObjectLocator locatorStringBuilder bufferToStringStrategy strategy) {
                 {
                     String theHref;
                     theHref = this.getHref();
                     strategy.appendField(locatorthis"href"buffertheHref);
                 }
                 return buffer;
             }
 
             public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
                 if (!(object instanceof FeatureType.Anchors.AnchorRef)) {
                     return false;
                 }
                 if (this == object) {
                     return true;
                 }
                 final FeatureType.Anchors.AnchorRef that = ((FeatureType.Anchors.AnchorRefobject);
                 {
                     String lhsHref;
                     lhsHref = this.getHref();
                     String rhsHref;
                     rhsHref = that.getHref();
                     if (!strategy.equals(LocatorUtils.property(thisLocator"href"lhsHref), LocatorUtils.property(thatLocator"href"rhsHref), lhsHrefrhsHref)) {
                         return false;
                     }
                 }
                 return true;
             }
 
             public boolean equals(Object object) {
                 final EqualsStrategy strategy = .;
                 return equals(nullnullobjectstrategy);
             }
 
             public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
                 int currentHashCode = 1;
                 {
                     String theHref;
                     theHref = this.getHref();
                     currentHashCode = strategy.hashCode(LocatorUtils.property(locator"href"theHref), currentHashCodetheHref);
                 }
                 return currentHashCode;
             }
 
             public int hashCode() {
                 final HashCodeStrategy strategy = .;
                 return this.hashCode(nullstrategy);
             }
 
             public Object clone() {
                 return copyTo(createNewInstance());
             }
 
             public Object copyTo(Object target) {
                 final CopyStrategy strategy = .;
                 return copyTo(nulltargetstrategy);
             }
 
             public Object copyTo(ObjectLocator locatorObject targetCopyStrategy strategy) {
                 final Object draftCopy = ((target == null)?createNewInstance():target);
                 if (draftCopy instanceof FeatureType.Anchors.AnchorRef) {
                     final FeatureType.Anchors.AnchorRef copy = ((FeatureType.Anchors.AnchorRefdraftCopy);
                     if (this.!= null) {
                         String sourceHref;
                         sourceHref = this.getHref();
                         String copyHref = ((Stringstrategy.copy(LocatorUtils.property(locator"href"sourceHref), sourceHref));
                         copy.setHref(copyHref);
                     } else {
                         copy.href = null;
                     }
                 }
                 return draftCopy;
             }
 
             public Object createNewInstance() {
                 return new FeatureType.Anchors.AnchorRef();
             }
 
             public void mergeFrom(Object leftObject right) {
                 final MergeStrategy strategy = .;
                 mergeFrom(nullnullleftrightstrategy);
             }
 
             public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
                 if (right instanceof FeatureType.Anchors.AnchorRef) {
                     final FeatureType.Anchors.AnchorRef target = this;
                     final FeatureType.Anchors.AnchorRef leftObject = ((FeatureType.Anchors.AnchorRefleft);
                     final FeatureType.Anchors.AnchorRef rightObject = ((FeatureType.Anchors.AnchorRefright);
                    {
                        String lhsHref;
                        lhsHref = leftObject.getHref();
                        String rhsHref;
                        rhsHref = rightObject.getHref();
                        String mergedHref = ((Stringstrategy.merge(LocatorUtils.property(leftLocator"href"lhsHref), LocatorUtils.property(rightLocator"href"rhsHref), lhsHrefrhsHref));
                        target.setHref(mergedHref);
                    }
                }
            }
            public FeatureType.Anchors.AnchorRef withHref(String value) {
                setHref(value);
                return this;
            }
        }
    }


    

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>
         <any processContents='lax' maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
    @XmlType(name = "", propOrder = {
        "any"
    })
    public static class Metadata
        implements CloneableCopyToEqualsHashCodeMergeFromToString
    {
        @XmlAnyElement(lax = true)
        protected List<Objectany;

        
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

        public List<ObjectgetAny() {
            if ( == null) {
                 = new ArrayList<Object>();
            }
            return this.;
        }
        public String toString() {
            final ToStringStrategy strategy = .;
            final StringBuilder buffer = new StringBuilder();
            append(nullbufferstrategy);
            return buffer.toString();
        }
        public StringBuilder append(ObjectLocator locatorStringBuilder bufferToStringStrategy strategy) {
            strategy.appendStart(locatorthisbuffer);
            appendFields(locatorbufferstrategy);
            strategy.appendEnd(locatorthisbuffer);
            return buffer;
        }
        public StringBuilder appendFields(ObjectLocator locatorStringBuilder bufferToStringStrategy strategy) {
            {
                List<ObjecttheAny;
                theAny = (((this.!= null)&&(!this..isEmpty()))?this.getAny():null);
                strategy.appendField(locatorthis"any"buffertheAny);
            }
            return buffer;
        }
        public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
            if (!(object instanceof FeatureType.Metadata)) {
                return false;
            }
            if (this == object) {
                return true;
            }
            final FeatureType.Metadata that = ((FeatureType.Metadataobject);
            {
                List<ObjectlhsAny;
                lhsAny = (((this.!= null)&&(!this..isEmpty()))?this.getAny():null);
                List<ObjectrhsAny;
                rhsAny = (((that.any!= null)&&(!that.any.isEmpty()))?that.getAny():null);
                if (!strategy.equals(LocatorUtils.property(thisLocator"any"lhsAny), LocatorUtils.property(thatLocator"any"rhsAny), lhsAnyrhsAny)) {
                    return false;
                }
            }
            return true;
        }
        public boolean equals(Object object) {
            final EqualsStrategy strategy = .;
            return equals(nullnullobjectstrategy);
        }
        public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
            int currentHashCode = 1;
            {
                List<ObjecttheAny;
                theAny = (((this.!= null)&&(!this..isEmpty()))?this.getAny():null);
                currentHashCode = strategy.hashCode(LocatorUtils.property(locator"any"theAny), currentHashCodetheAny);
            }
            return currentHashCode;
        }
        public int hashCode() {
            final HashCodeStrategy strategy = .;
            return this.hashCode(nullstrategy);
        }
        public Object clone() {
            return copyTo(createNewInstance());
        }
        public Object copyTo(Object target) {
            final CopyStrategy strategy = .;
            return copyTo(nulltargetstrategy);
        }
        public Object copyTo(ObjectLocator locatorObject targetCopyStrategy strategy) {
            final Object draftCopy = ((target == null)?createNewInstance():target);
            if (draftCopy instanceof FeatureType.Metadata) {