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_CoupledResource_Type complex type.

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

 <complexType name="SV_CoupledResource_Type">
   <complexContent>
     <extension base="{http://www.isotc211.org/2005/gco}AbstractObject_Type">
       <sequence>
         <element name="operationName" type="{http://www.isotc211.org/2005/gco}CharacterString_PropertyType"/>
         <element name="identifier" type="{http://www.isotc211.org/2005/gco}CharacterString_PropertyType"/>
         <element ref="{http://www.isotc211.org/2005/gco}ScopedName" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "SV_CoupledResource_Type", propOrder = {
     "operationName",
     "identifier",
     "scopedName"
 })
 public class SVCoupledResourceType
     extends AbstractObjectType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(required = true)
     @XmlElement(required = true)
     @XmlElement(name = "ScopedName", namespace = "http://www.isotc211.org/2005/gco")
     protected CodeType scopedName;

    
Gets the value of the operationName property.

Returns:
possible object is
 
         return ;
     }

    
Sets the value of the operationName property.

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

    
Gets the value of the identifier property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the identifier property.

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

    
Gets the value of the scopedName property.

Returns:
possible object is
    public CodeType getScopedName() {
        return ;
    }

    
Sets the value of the scopedName property.

Parameters:
value allowed object is
    public void setScopedName(CodeType 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);
        {
            CharacterStringPropertyType theOperationName;
            theOperationName = this.getOperationName();
            strategy.appendField(locatorthis"operationName"buffertheOperationName);
        }
        {
            CharacterStringPropertyType theIdentifier;
            theIdentifier = this.getIdentifier();
            strategy.appendField(locatorthis"identifier"buffertheIdentifier);
        }
        {
            CodeType theScopedName;
            theScopedName = this.getScopedName();
            strategy.appendField(locatorthis"scopedName"buffertheScopedName);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof SVCoupledResourceType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final SVCoupledResourceType that = ((SVCoupledResourceTypeobject);
        {
            CharacterStringPropertyType lhsOperationName;
            lhsOperationName = this.getOperationName();
            CharacterStringPropertyType rhsOperationName;
            rhsOperationName = that.getOperationName();
            if (!strategy.equals(LocatorUtils.property(thisLocator"operationName"lhsOperationName), LocatorUtils.property(thatLocator"operationName"rhsOperationName), lhsOperationNamerhsOperationName)) {
                return false;
            }
        }
        {
            CharacterStringPropertyType lhsIdentifier;
            lhsIdentifier = this.getIdentifier();
            CharacterStringPropertyType rhsIdentifier;
            rhsIdentifier = that.getIdentifier();
            if (!strategy.equals(LocatorUtils.property(thisLocator"identifier"lhsIdentifier), LocatorUtils.property(thatLocator"identifier"rhsIdentifier), lhsIdentifierrhsIdentifier)) {
                return false;
            }
        }
        {
            CodeType lhsScopedName;
            lhsScopedName = this.getScopedName();
            CodeType rhsScopedName;
            rhsScopedName = that.getScopedName();
            if (!strategy.equals(LocatorUtils.property(thisLocator"scopedName"lhsScopedName), LocatorUtils.property(thatLocator"scopedName"rhsScopedName), lhsScopedNamerhsScopedName)) {
                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);
        {
            CharacterStringPropertyType theOperationName;
            theOperationName = this.getOperationName();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"operationName"theOperationName), currentHashCodetheOperationName);
        }
        {
            CharacterStringPropertyType theIdentifier;
            theIdentifier = this.getIdentifier();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"identifier"theIdentifier), currentHashCodetheIdentifier);
        }
        {
            CodeType theScopedName;
            theScopedName = this.getScopedName();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"scopedName"theScopedName), currentHashCodetheScopedName);
        }
        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 SVCoupledResourceType) {
            final SVCoupledResourceType copy = ((SVCoupledResourceTypedraftCopy);
            if (this.!= null) {
                CharacterStringPropertyType sourceOperationName;
                sourceOperationName = this.getOperationName();
                CharacterStringPropertyType copyOperationName = ((CharacterStringPropertyTypestrategy.copy(LocatorUtils.property(locator"operationName"sourceOperationName), sourceOperationName));
                copy.setOperationName(copyOperationName);
            } else {
                copy.operationName = null;
            }
            if (this.!= null) {
                CharacterStringPropertyType sourceIdentifier;
                sourceIdentifier = this.getIdentifier();
                CharacterStringPropertyType copyIdentifier = ((CharacterStringPropertyTypestrategy.copy(LocatorUtils.property(locator"identifier"sourceIdentifier), sourceIdentifier));
                copy.setIdentifier(copyIdentifier);
            } else {
                copy.identifier = null;
            }
            if (this.!= null) {
                CodeType sourceScopedName;
                sourceScopedName = this.getScopedName();
                CodeType copyScopedName = ((CodeTypestrategy.copy(LocatorUtils.property(locator"scopedName"sourceScopedName), sourceScopedName));
                copy.setScopedName(copyScopedName);
            } else {
                copy.scopedName = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new SVCoupledResourceType();
    }
    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 SVCoupledResourceType) {
            final SVCoupledResourceType target = this;
            final SVCoupledResourceType leftObject = ((SVCoupledResourceTypeleft);
            final SVCoupledResourceType rightObject = ((SVCoupledResourceTyperight);
            {
                CharacterStringPropertyType lhsOperationName;
                lhsOperationName = leftObject.getOperationName();
                CharacterStringPropertyType rhsOperationName;
                rhsOperationName = rightObject.getOperationName();
                CharacterStringPropertyType mergedOperationName = ((CharacterStringPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"operationName"lhsOperationName), LocatorUtils.property(rightLocator"operationName"rhsOperationName), lhsOperationNamerhsOperationName));
                target.setOperationName(mergedOperationName);
            }
            {
                CharacterStringPropertyType lhsIdentifier;
                lhsIdentifier = leftObject.getIdentifier();
                CharacterStringPropertyType rhsIdentifier;
                rhsIdentifier = rightObject.getIdentifier();
                CharacterStringPropertyType mergedIdentifier = ((CharacterStringPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"identifier"lhsIdentifier), LocatorUtils.property(rightLocator"identifier"rhsIdentifier), lhsIdentifierrhsIdentifier));
                target.setIdentifier(mergedIdentifier);
            }
            {
                CodeType lhsScopedName;
                lhsScopedName = leftObject.getScopedName();
                CodeType rhsScopedName;
                rhsScopedName = rightObject.getScopedName();
                CodeType mergedScopedName = ((CodeTypestrategy.merge(LocatorUtils.property(leftLocator"scopedName"lhsScopedName), LocatorUtils.property(rightLocator"scopedName"rhsScopedName), lhsScopedNamerhsScopedName));
                target.setScopedName(mergedScopedName);
            }
        }
    }
        setOperationName(value);
        return this;
    }
        setIdentifier(value);
        return this;
    }
        setScopedName(value);
        return this;
    }
    @Override
    public SVCoupledResourceType withId(String value) {
        setId(value);
        return this;
    }
    @Override
    public SVCoupledResourceType withUuid(String value) {
        setUuid(value);
        return this;
    }
New to GrepCode? Check out our FAQ X