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, vhudson-jaxb-ri-2.1-2 
  // 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: 2011.02.20 at 01:29:24 PM MEZ 
  //
  
  
  package net.opengis.xls.v_1_1_0;
 

Java class for NAICSType complex type.

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

 <complexType name="NAICSType">
   <complexContent>
     <extension base="{http://www.opengis.net/xls}AbstractNamedReferenceSystem">
       <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="subType" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="category" type="{http://www.w3.org/2001/XMLSchema}string" />
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "NAICSType")
 public class NAICSType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlAttribute(name = "type")
     protected String type;
     @XmlAttribute(name = "subType")
     protected String subType;
     @XmlAttribute(name = "category")
     protected String category;

    
Gets the value of the type property.

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

    
Sets the value of the type property.

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

    
Gets the value of the subType property.

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

    
Sets the value of the subType property.

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

    
Gets the value of the category property.

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

    
Sets the value of the category property.

Parameters:
value allowed object is
    public void setCategory(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);
        {
            String theType;
            theType = this.getType();
            strategy.appendField(locatorthis"type"buffertheType);
        }
        {
            String theSubType;
            theSubType = this.getSubType();
            strategy.appendField(locatorthis"subType"buffertheSubType);
        }
        {
            String theCategory;
            theCategory = this.getCategory();
            strategy.appendField(locatorthis"category"buffertheCategory);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof NAICSType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final NAICSType that = ((NAICSTypeobject);
        {
            String lhsType;
            lhsType = this.getType();
            String rhsType;
            rhsType = that.getType();
            if (!strategy.equals(LocatorUtils.property(thisLocator"type"lhsType), LocatorUtils.property(thatLocator"type"rhsType), lhsTyperhsType)) {
                return false;
            }
        }
        {
            String lhsSubType;
            lhsSubType = this.getSubType();
            String rhsSubType;
            rhsSubType = that.getSubType();
            if (!strategy.equals(LocatorUtils.property(thisLocator"subType"lhsSubType), LocatorUtils.property(thatLocator"subType"rhsSubType), lhsSubTyperhsSubType)) {
                return false;
            }
        }
        {
            String lhsCategory;
            lhsCategory = this.getCategory();
            String rhsCategory;
            rhsCategory = that.getCategory();
            if (!strategy.equals(LocatorUtils.property(thisLocator"category"lhsCategory), LocatorUtils.property(thatLocator"category"rhsCategory), lhsCategoryrhsCategory)) {
                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 theType;
            theType = this.getType();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"type"theType), currentHashCodetheType);
        }
        {
            String theSubType;
            theSubType = this.getSubType();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"subType"theSubType), currentHashCodetheSubType);
        }
        {
            String theCategory;
            theCategory = this.getCategory();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"category"theCategory), currentHashCodetheCategory);
        }
        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 NAICSType) {
            final NAICSType copy = ((NAICSTypedraftCopy);
            if (this.!= null) {
                String sourceType;
                sourceType = this.getType();
                String copyType = ((Stringstrategy.copy(LocatorUtils.property(locator"type"sourceType), sourceType));
                copy.setType(copyType);
            } else {
                copy.type = null;
            }
            if (this.!= null) {
                String sourceSubType;
                sourceSubType = this.getSubType();
                String copySubType = ((Stringstrategy.copy(LocatorUtils.property(locator"subType"sourceSubType), sourceSubType));
                copy.setSubType(copySubType);
            } else {
                copy.subType = null;
            }
            if (this.!= null) {
                String sourceCategory;
                sourceCategory = this.getCategory();
                String copyCategory = ((Stringstrategy.copy(LocatorUtils.property(locator"category"sourceCategory), sourceCategory));
                copy.setCategory(copyCategory);
            } else {
                copy.category = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new NAICSType();
    }
    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 NAICSType) {
            final NAICSType target = this;
            final NAICSType leftObject = ((NAICSTypeleft);
            final NAICSType rightObject = ((NAICSTyperight);
            {
                String lhsType;
                lhsType = leftObject.getType();
                String rhsType;
                rhsType = rightObject.getType();
                target.setType(((Stringstrategy.merge(LocatorUtils.property(leftLocator"type"lhsType), LocatorUtils.property(rightLocator"type"rhsType), lhsTyperhsType)));
            }
            {
                String lhsSubType;
                lhsSubType = leftObject.getSubType();
                String rhsSubType;
                rhsSubType = rightObject.getSubType();
                target.setSubType(((Stringstrategy.merge(LocatorUtils.property(leftLocator"subType"lhsSubType), LocatorUtils.property(rightLocator"subType"rhsSubType), lhsSubTyperhsSubType)));
            }
            {
                String lhsCategory;
                lhsCategory = leftObject.getCategory();
                String rhsCategory;
                rhsCategory = rightObject.getCategory();
                target.setCategory(((Stringstrategy.merge(LocatorUtils.property(leftLocator"category"lhsCategory), LocatorUtils.property(rightLocator"category"rhsCategory), lhsCategoryrhsCategory)));
            }
        }
    }
New to GrepCode? Check out our FAQ X