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:39:09 AM CEST 
  //
  
  
  package net.opengis.iso19139.srv.v_20060504;
 

Java class for SV_PortSpecification_Type complex type.

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

 <complexType name="SV_PortSpecification_Type">
   <complexContent>
     <extension base="{http://www.isotc211.org/2005/gco}AbstractObject_Type">
       <sequence>
         <element name="binding" type="{http://www.isotc211.org/2005/srv}DCPList_PropertyType"/>
         <element name="address" type="{http://www.isotc211.org/2005/gmd}URL_PropertyType"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "SV_PortSpecification_Type", propOrder = {
     "binding",
     "address"
 })
 public class SVPortSpecificationType
     extends AbstractObjectType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(required = true)
     protected DCPListPropertyType binding;
     @XmlElement(required = true)
     protected URLPropertyType address;

    
Gets the value of the binding property.

Returns:
possible object is
 
     public DCPListPropertyType getBinding() {
         return ;
     }

    
Sets the value of the binding property.

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

    
Gets the value of the address property.

Returns:
possible object is
    public URLPropertyType getAddress() {
        return ;
    }

    
Sets the value of the address property.

Parameters:
value allowed object is
    public void setAddress(URLPropertyType 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);
        {
            DCPListPropertyType theBinding;
            theBinding = this.getBinding();
            strategy.appendField(locatorthis"binding"buffertheBinding);
        }
        {
            URLPropertyType theAddress;
            theAddress = this.getAddress();
            strategy.appendField(locatorthis"address"buffertheAddress);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof SVPortSpecificationType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final SVPortSpecificationType that = ((SVPortSpecificationTypeobject);
        {
            DCPListPropertyType lhsBinding;
            lhsBinding = this.getBinding();
            DCPListPropertyType rhsBinding;
            rhsBinding = that.getBinding();
            if (!strategy.equals(LocatorUtils.property(thisLocator"binding"lhsBinding), LocatorUtils.property(thatLocator"binding"rhsBinding), lhsBindingrhsBinding)) {
                return false;
            }
        }
        {
            URLPropertyType lhsAddress;
            lhsAddress = this.getAddress();
            URLPropertyType rhsAddress;
            rhsAddress = that.getAddress();
            if (!strategy.equals(LocatorUtils.property(thisLocator"address"lhsAddress), LocatorUtils.property(thatLocator"address"rhsAddress), lhsAddressrhsAddress)) {
                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);
        {
            DCPListPropertyType theBinding;
            theBinding = this.getBinding();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"binding"theBinding), currentHashCodetheBinding);
        }
        {
            URLPropertyType theAddress;
            theAddress = this.getAddress();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"address"theAddress), currentHashCodetheAddress);
        }
        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 SVPortSpecificationType) {
            final SVPortSpecificationType copy = ((SVPortSpecificationTypedraftCopy);
            if (this.!= null) {
                DCPListPropertyType sourceBinding;
                sourceBinding = this.getBinding();
                DCPListPropertyType copyBinding = ((DCPListPropertyTypestrategy.copy(LocatorUtils.property(locator"binding"sourceBinding), sourceBinding));
                copy.setBinding(copyBinding);
            } else {
                copy.binding = null;
            }
            if (this.!= null) {
                URLPropertyType sourceAddress;
                sourceAddress = this.getAddress();
                URLPropertyType copyAddress = ((URLPropertyTypestrategy.copy(LocatorUtils.property(locator"address"sourceAddress), sourceAddress));
                copy.setAddress(copyAddress);
            } else {
                copy.address = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new SVPortSpecificationType();
    }
    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 SVPortSpecificationType) {
            final SVPortSpecificationType target = this;
            final SVPortSpecificationType leftObject = ((SVPortSpecificationTypeleft);
            final SVPortSpecificationType rightObject = ((SVPortSpecificationTyperight);
            {
                DCPListPropertyType lhsBinding;
                lhsBinding = leftObject.getBinding();
                DCPListPropertyType rhsBinding;
                rhsBinding = rightObject.getBinding();
                DCPListPropertyType mergedBinding = ((DCPListPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"binding"lhsBinding), LocatorUtils.property(rightLocator"binding"rhsBinding), lhsBindingrhsBinding));
                target.setBinding(mergedBinding);
            }
            {
                URLPropertyType lhsAddress;
                lhsAddress = leftObject.getAddress();
                URLPropertyType rhsAddress;
                rhsAddress = rightObject.getAddress();
                URLPropertyType mergedAddress = ((URLPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"address"lhsAddress), LocatorUtils.property(rightLocator"address"rhsAddress), lhsAddressrhsAddress));
                target.setAddress(mergedAddress);
            }
        }
    }
        setBinding(value);
        return this;
    }
        setAddress(value);
        return this;
    }
    @Override
    public SVPortSpecificationType withId(String value) {
        setId(value);
        return this;
    }
    @Override
    public SVPortSpecificationType withUuid(String value) {
        setUuid(value);
        return this;
    }
New to GrepCode? Check out our FAQ X