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.gmx.v_20060504;
 
XML attributes contraints: - 1) Id is mandatory - 2) codeSpace (type xsd:anyURI) is mandatory

Java class for CoordinateSystemAxisAlt_Type complex type.

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

 <complexType name="CoordinateSystemAxisAlt_Type">
   <complexContent>
     <extension base="{http://www.opengis.net/gml}CoordinateSystemAxisType">
       <sequence>
         <element name="locale" type="{http://www.isotc211.org/2005/gmd}PT_Locale_PropertyType"/>
       </sequence>
       <attribute name="codeSpace" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "CoordinateSystemAxisAlt_Type", propOrder = {
     "locale"
 })
     extends CoordinateSystemAxisType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(required = true)
     protected PTLocalePropertyType locale;
     @XmlAttribute(name = "codeSpace", required = true)
     @XmlSchemaType(name = "anyURI")
     protected String codeSpace;

    
Gets the value of the locale property.

Returns:
possible object is
 
     public PTLocalePropertyType getLocale() {
         return ;
     }

    
Sets the value of the locale property.

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

    
Gets the value of the codeSpace property.

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

    
Sets the value of the codeSpace property.

Parameters:
value allowed object is
    public void setCodeSpace(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) {
        super.appendFields(locatorbufferstrategy);
        {
            PTLocalePropertyType theLocale;
            theLocale = this.getLocale();
            strategy.appendField(locatorthis"locale"buffertheLocale);
        }
        {
            String theCodeSpace;
            theCodeSpace = this.getCodeSpace();
            strategy.appendField(locatorthis"codeSpace"buffertheCodeSpace);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof CoordinateSystemAxisAltType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final CoordinateSystemAxisAltType that = ((CoordinateSystemAxisAltTypeobject);
        {
            PTLocalePropertyType lhsLocale;
            lhsLocale = this.getLocale();
            PTLocalePropertyType rhsLocale;
            rhsLocale = that.getLocale();
            if (!strategy.equals(LocatorUtils.property(thisLocator"locale"lhsLocale), LocatorUtils.property(thatLocator"locale"rhsLocale), lhsLocalerhsLocale)) {
                return false;
            }
        }
        {
            String lhsCodeSpace;
            lhsCodeSpace = this.getCodeSpace();
            String rhsCodeSpace;
            rhsCodeSpace = that.getCodeSpace();
            if (!strategy.equals(LocatorUtils.property(thisLocator"codeSpace"lhsCodeSpace), LocatorUtils.property(thatLocator"codeSpace"rhsCodeSpace), lhsCodeSpacerhsCodeSpace)) {
                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);
        {
            PTLocalePropertyType theLocale;
            theLocale = this.getLocale();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"locale"theLocale), currentHashCodetheLocale);
        }
        {
            String theCodeSpace;
            theCodeSpace = this.getCodeSpace();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"codeSpace"theCodeSpace), currentHashCodetheCodeSpace);
        }
        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 CoordinateSystemAxisAltType) {
            final CoordinateSystemAxisAltType copy = ((CoordinateSystemAxisAltTypedraftCopy);
            if (this.!= null) {
                PTLocalePropertyType sourceLocale;
                sourceLocale = this.getLocale();
                PTLocalePropertyType copyLocale = ((PTLocalePropertyTypestrategy.copy(LocatorUtils.property(locator"locale"sourceLocale), sourceLocale));
                copy.setLocale(copyLocale);
            } else {
                copy.locale = null;
            }
            if (this.!= null) {
                String sourceCodeSpace;
                sourceCodeSpace = this.getCodeSpace();
                String copyCodeSpace = ((Stringstrategy.copy(LocatorUtils.property(locator"codeSpace"sourceCodeSpace), sourceCodeSpace));
                copy.setCodeSpace(copyCodeSpace);
            } else {
                copy.codeSpace = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new CoordinateSystemAxisAltType();
    }
    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 CoordinateSystemAxisAltType) {
            final CoordinateSystemAxisAltType target = this;
            final CoordinateSystemAxisAltType leftObject = ((CoordinateSystemAxisAltTypeleft);
            final CoordinateSystemAxisAltType rightObject = ((CoordinateSystemAxisAltTyperight);
            {
                PTLocalePropertyType lhsLocale;
                lhsLocale = leftObject.getLocale();
                PTLocalePropertyType rhsLocale;
                rhsLocale = rightObject.getLocale();
                PTLocalePropertyType mergedLocale = ((PTLocalePropertyTypestrategy.merge(LocatorUtils.property(leftLocator"locale"lhsLocale), LocatorUtils.property(rightLocator"locale"rhsLocale), lhsLocalerhsLocale));
                target.setLocale(mergedLocale);
            }
            {
                String lhsCodeSpace;
                lhsCodeSpace = leftObject.getCodeSpace();
                String rhsCodeSpace;
                rhsCodeSpace = rightObject.getCodeSpace();
                String mergedCodeSpace = ((Stringstrategy.merge(LocatorUtils.property(leftLocator"codeSpace"lhsCodeSpace), LocatorUtils.property(rightLocator"codeSpace"rhsCodeSpace), lhsCodeSpacerhsCodeSpace));
                target.setCodeSpace(mergedCodeSpace);
            }
        }
    }
        setLocale(value);
        return this;
    }
        setCodeSpace(value);
        return this;
    }
New to GrepCode? Check out our FAQ X