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.gmd.v_20060504;
 
Information about online sources from which the dataset, specification, or community profile name and extended metadata elements can be obtained.

Java class for CI_OnlineResource_Type complex type.

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

 <complexType name="CI_OnlineResource_Type">
   <complexContent>
     <extension base="{http://www.isotc211.org/2005/gco}AbstractObject_Type">
       <sequence>
         <element name="linkage" type="{http://www.isotc211.org/2005/gmd}URL_PropertyType"/>
         <element name="protocol" type="{http://www.isotc211.org/2005/gco}CharacterString_PropertyType" minOccurs="0"/>
         <element name="applicationProfile" type="{http://www.isotc211.org/2005/gco}CharacterString_PropertyType" minOccurs="0"/>
         <element name="name" type="{http://www.isotc211.org/2005/gco}CharacterString_PropertyType" minOccurs="0"/>
         <element name="description" type="{http://www.isotc211.org/2005/gco}CharacterString_PropertyType" minOccurs="0"/>
         <element name="function" type="{http://www.isotc211.org/2005/gmd}CI_OnLineFunctionCode_PropertyType" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "CI_OnlineResource_Type", propOrder = {
     "linkage",
     "protocol",
     "applicationProfile",
     "name",
     "description",
     "function"
 })
 public class CIOnlineResourceType
     extends AbstractObjectType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(required = true)
     protected URLPropertyType linkage;
     protected CharacterStringPropertyType name;
     protected CIOnLineFunctionCodePropertyType function;

    
Gets the value of the linkage property.

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

    
Sets the value of the linkage property.

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

    
Gets the value of the protocol property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the protocol property.

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

    
Gets the value of the applicationProfile property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the applicationProfile property.

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

    
Gets the value of the name property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the name property.

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

    
Gets the value of the description property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the description property.

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

    
Gets the value of the function property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the function property.

Parameters:
value allowed object is
    public void setFunction(CIOnLineFunctionCodePropertyType 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);
        {
            URLPropertyType theLinkage;
            theLinkage = this.getLinkage();
            strategy.appendField(locatorthis"linkage"buffertheLinkage);
        }
        {
            CharacterStringPropertyType theProtocol;
            theProtocol = this.getProtocol();
            strategy.appendField(locatorthis"protocol"buffertheProtocol);
        }
        {
            CharacterStringPropertyType theApplicationProfile;
            theApplicationProfile = this.getApplicationProfile();
            strategy.appendField(locatorthis"applicationProfile"buffertheApplicationProfile);
        }
        {
            CharacterStringPropertyType theName;
            theName = this.getName();
            strategy.appendField(locatorthis"name"buffertheName);
        }
        {
            CharacterStringPropertyType theDescription;
            theDescription = this.getDescription();
            strategy.appendField(locatorthis"description"buffertheDescription);
        }
        {
            CIOnLineFunctionCodePropertyType theFunction;
            theFunction = this.getFunction();
            strategy.appendField(locatorthis"function"buffertheFunction);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof CIOnlineResourceType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final CIOnlineResourceType that = ((CIOnlineResourceTypeobject);
        {
            URLPropertyType lhsLinkage;
            lhsLinkage = this.getLinkage();
            URLPropertyType rhsLinkage;
            rhsLinkage = that.getLinkage();
            if (!strategy.equals(LocatorUtils.property(thisLocator"linkage"lhsLinkage), LocatorUtils.property(thatLocator"linkage"rhsLinkage), lhsLinkagerhsLinkage)) {
                return false;
            }
        }
        {
            CharacterStringPropertyType lhsProtocol;
            lhsProtocol = this.getProtocol();
            CharacterStringPropertyType rhsProtocol;
            rhsProtocol = that.getProtocol();
            if (!strategy.equals(LocatorUtils.property(thisLocator"protocol"lhsProtocol), LocatorUtils.property(thatLocator"protocol"rhsProtocol), lhsProtocolrhsProtocol)) {
                return false;
            }
        }
        {
            CharacterStringPropertyType lhsApplicationProfile;
            lhsApplicationProfile = this.getApplicationProfile();
            CharacterStringPropertyType rhsApplicationProfile;
            rhsApplicationProfile = that.getApplicationProfile();
            if (!strategy.equals(LocatorUtils.property(thisLocator"applicationProfile"lhsApplicationProfile), LocatorUtils.property(thatLocator"applicationProfile"rhsApplicationProfile), lhsApplicationProfilerhsApplicationProfile)) {
                return false;
            }
        }
        {
            CharacterStringPropertyType lhsName;
            lhsName = this.getName();
            CharacterStringPropertyType rhsName;
            rhsName = that.getName();
            if (!strategy.equals(LocatorUtils.property(thisLocator"name"lhsName), LocatorUtils.property(thatLocator"name"rhsName), lhsNamerhsName)) {
                return false;
            }
        }
        {
            CharacterStringPropertyType lhsDescription;
            lhsDescription = this.getDescription();
            CharacterStringPropertyType rhsDescription;
            rhsDescription = that.getDescription();
            if (!strategy.equals(LocatorUtils.property(thisLocator"description"lhsDescription), LocatorUtils.property(thatLocator"description"rhsDescription), lhsDescriptionrhsDescription)) {
                return false;
            }
        }
        {
            CIOnLineFunctionCodePropertyType lhsFunction;
            lhsFunction = this.getFunction();
            CIOnLineFunctionCodePropertyType rhsFunction;
            rhsFunction = that.getFunction();
            if (!strategy.equals(LocatorUtils.property(thisLocator"function"lhsFunction), LocatorUtils.property(thatLocator"function"rhsFunction), lhsFunctionrhsFunction)) {
                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);
        {
            URLPropertyType theLinkage;
            theLinkage = this.getLinkage();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"linkage"theLinkage), currentHashCodetheLinkage);
        }
        {
            CharacterStringPropertyType theProtocol;
            theProtocol = this.getProtocol();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"protocol"theProtocol), currentHashCodetheProtocol);
        }
        {
            CharacterStringPropertyType theApplicationProfile;
            theApplicationProfile = this.getApplicationProfile();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"applicationProfile"theApplicationProfile), currentHashCodetheApplicationProfile);
        }
        {
            CharacterStringPropertyType theName;
            theName = this.getName();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"name"theName), currentHashCodetheName);
        }
        {
            CharacterStringPropertyType theDescription;
            theDescription = this.getDescription();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"description"theDescription), currentHashCodetheDescription);
        }
        {
            CIOnLineFunctionCodePropertyType theFunction;
            theFunction = this.getFunction();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"function"theFunction), currentHashCodetheFunction);
        }
        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 CIOnlineResourceType) {
            final CIOnlineResourceType copy = ((CIOnlineResourceTypedraftCopy);
            if (this.!= null) {
                URLPropertyType sourceLinkage;
                sourceLinkage = this.getLinkage();
                URLPropertyType copyLinkage = ((URLPropertyTypestrategy.copy(LocatorUtils.property(locator"linkage"sourceLinkage), sourceLinkage));
                copy.setLinkage(copyLinkage);
            } else {
                copy.linkage = null;
            }
            if (this.!= null) {
                CharacterStringPropertyType sourceProtocol;
                sourceProtocol = this.getProtocol();
                CharacterStringPropertyType copyProtocol = ((CharacterStringPropertyTypestrategy.copy(LocatorUtils.property(locator"protocol"sourceProtocol), sourceProtocol));
                copy.setProtocol(copyProtocol);
            } else {
                copy.protocol = null;
            }
            if (this.!= null) {
                CharacterStringPropertyType sourceApplicationProfile;
                sourceApplicationProfile = this.getApplicationProfile();
                CharacterStringPropertyType copyApplicationProfile = ((CharacterStringPropertyTypestrategy.copy(LocatorUtils.property(locator"applicationProfile"sourceApplicationProfile), sourceApplicationProfile));
                copy.setApplicationProfile(copyApplicationProfile);
            } else {
                copy.applicationProfile = null;
            }
            if (this.!= null) {
                CharacterStringPropertyType sourceName;
                sourceName = this.getName();
                CharacterStringPropertyType copyName = ((CharacterStringPropertyTypestrategy.copy(LocatorUtils.property(locator"name"sourceName), sourceName));
                copy.setName(copyName);
            } else {
                copy.name = null;
            }
            if (this.!= null) {
                CharacterStringPropertyType sourceDescription;
                sourceDescription = this.getDescription();
                CharacterStringPropertyType copyDescription = ((CharacterStringPropertyTypestrategy.copy(LocatorUtils.property(locator"description"sourceDescription), sourceDescription));
                copy.setDescription(copyDescription);
            } else {
                copy.description = null;
            }
            if (this.!= null) {
                CIOnLineFunctionCodePropertyType sourceFunction;
                sourceFunction = this.getFunction();
                CIOnLineFunctionCodePropertyType copyFunction = ((CIOnLineFunctionCodePropertyTypestrategy.copy(LocatorUtils.property(locator"function"sourceFunction), sourceFunction));
                copy.setFunction(copyFunction);
            } else {
                copy.function = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new CIOnlineResourceType();
    }
    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 CIOnlineResourceType) {
            final CIOnlineResourceType target = this;
            final CIOnlineResourceType leftObject = ((CIOnlineResourceTypeleft);
            final CIOnlineResourceType rightObject = ((CIOnlineResourceTyperight);
            {
                URLPropertyType lhsLinkage;
                lhsLinkage = leftObject.getLinkage();
                URLPropertyType rhsLinkage;
                rhsLinkage = rightObject.getLinkage();
                URLPropertyType mergedLinkage = ((URLPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"linkage"lhsLinkage), LocatorUtils.property(rightLocator"linkage"rhsLinkage), lhsLinkagerhsLinkage));
                target.setLinkage(mergedLinkage);
            }
            {
                CharacterStringPropertyType lhsProtocol;
                lhsProtocol = leftObject.getProtocol();
                CharacterStringPropertyType rhsProtocol;
                rhsProtocol = rightObject.getProtocol();
                CharacterStringPropertyType mergedProtocol = ((CharacterStringPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"protocol"lhsProtocol), LocatorUtils.property(rightLocator"protocol"rhsProtocol), lhsProtocolrhsProtocol));
                target.setProtocol(mergedProtocol);
            }
            {
                CharacterStringPropertyType lhsApplicationProfile;
                lhsApplicationProfile = leftObject.getApplicationProfile();
                CharacterStringPropertyType rhsApplicationProfile;
                rhsApplicationProfile = rightObject.getApplicationProfile();
                CharacterStringPropertyType mergedApplicationProfile = ((CharacterStringPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"applicationProfile"lhsApplicationProfile), LocatorUtils.property(rightLocator"applicationProfile"rhsApplicationProfile), lhsApplicationProfilerhsApplicationProfile));
                target.setApplicationProfile(mergedApplicationProfile);
            }
            {
                CharacterStringPropertyType lhsName;
                lhsName = leftObject.getName();
                CharacterStringPropertyType rhsName;
                rhsName = rightObject.getName();
                CharacterStringPropertyType mergedName = ((CharacterStringPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"name"lhsName), LocatorUtils.property(rightLocator"name"rhsName), lhsNamerhsName));
                target.setName(mergedName);
            }
            {
                CharacterStringPropertyType lhsDescription;
                lhsDescription = leftObject.getDescription();
                CharacterStringPropertyType rhsDescription;
                rhsDescription = rightObject.getDescription();
                CharacterStringPropertyType mergedDescription = ((CharacterStringPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"description"lhsDescription), LocatorUtils.property(rightLocator"description"rhsDescription), lhsDescriptionrhsDescription));
                target.setDescription(mergedDescription);
            }
            {
                CIOnLineFunctionCodePropertyType lhsFunction;
                lhsFunction = leftObject.getFunction();
                CIOnLineFunctionCodePropertyType rhsFunction;
                rhsFunction = rightObject.getFunction();
                CIOnLineFunctionCodePropertyType mergedFunction = ((CIOnLineFunctionCodePropertyTypestrategy.merge(LocatorUtils.property(leftLocator"function"lhsFunction), LocatorUtils.property(rightLocator"function"rhsFunction), lhsFunctionrhsFunction));
                target.setFunction(mergedFunction);
            }
        }
    }
        setLinkage(value);
        return this;
    }
        setProtocol(value);
        return this;
    }
        setApplicationProfile(value);
        return this;
    }
        setName(value);
        return this;
    }
        setDescription(value);
        return this;
    }
        setFunction(value);
        return this;
    }
    @Override
    public CIOnlineResourceType withId(String value) {
        setId(value);
        return this;
    }
    @Override
    public CIOnlineResourceType withUuid(String value) {
        setUuid(value);
        return this;
    }
New to GrepCode? Check out our FAQ X