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.03.28 at 10:20:34 AM CET 
  //
  
  
  package net.opengis.iso19139.gmx.v_20060504;
 
 import java.util.List;

Java class for FileName_PropertyType complex type.

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

 <complexType name="FileName_PropertyType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence minOccurs="0">
         <element ref="{http://www.isotc211.org/2005/gmx}FileName"/>
       </sequence>
       <attribute ref="{http://www.isotc211.org/2005/gco}nilReason"/>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "FileName_PropertyType", propOrder = {
     "fileName"
 })
 public class FileNamePropertyType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(name = "FileName")
     protected FileNameType fileName;
     @XmlAttribute(name = "nilReason", namespace = "http://www.isotc211.org/2005/gco")
     protected List<StringnilReason;

    
Gets the value of the fileName property.

Returns:
possible object is
 
     public FileNameType getFileName() {
         return ;
     }

    
Sets the value of the fileName property.

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

    
Gets the value of the nilReason property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the nilReason property.

For example, to add a new item, do as follows:

    getNilReason().add(newItem);
 

Objects of the following type(s) are allowed in the list

    public List<StringgetNilReason() {
        if ( == null) {
             = new ArrayList<String>();
        }
        return this.;
    }
    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) {
        {
            FileNameType theFileName;
            theFileName = this.getFileName();
            strategy.appendField(locatorthis"fileName"buffertheFileName);
        }
        {
            List<StringtheNilReason;
            theNilReason = (((this.!= null)&&(!this..isEmpty()))?this.getNilReason():null);
            strategy.appendField(locatorthis"nilReason"buffertheNilReason);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof FileNamePropertyType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final FileNamePropertyType that = ((FileNamePropertyTypeobject);
        {
            FileNameType lhsFileName;
            lhsFileName = this.getFileName();
            FileNameType rhsFileName;
            rhsFileName = that.getFileName();
            if (!strategy.equals(LocatorUtils.property(thisLocator"fileName"lhsFileName), LocatorUtils.property(thatLocator"fileName"rhsFileName), lhsFileNamerhsFileName)) {
                return false;
            }
        }
        {
            List<StringlhsNilReason;
            lhsNilReason = (((this.!= null)&&(!this..isEmpty()))?this.getNilReason():null);
            List<StringrhsNilReason;
            rhsNilReason = (((that.nilReason!= null)&&(!that.nilReason.isEmpty()))?that.getNilReason():null);
            if (!strategy.equals(LocatorUtils.property(thisLocator"nilReason"lhsNilReason), LocatorUtils.property(thatLocator"nilReason"rhsNilReason), lhsNilReasonrhsNilReason)) {
                return false;
            }
        }
        return true;
    }
    public boolean equals(Object object) {
        final EqualsStrategy strategy = .;
        return equals(nullnullobjectstrategy);
    }
    public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
        int currentHashCode = 1;
        {
            FileNameType theFileName;
            theFileName = this.getFileName();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"fileName"theFileName), currentHashCodetheFileName);
        }
        {
            List<StringtheNilReason;
            theNilReason = (((this.!= null)&&(!this..isEmpty()))?this.getNilReason():null);
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"nilReason"theNilReason), currentHashCodetheNilReason);
        }
        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);
        if (draftCopy instanceof FileNamePropertyType) {
            final FileNamePropertyType copy = ((FileNamePropertyTypedraftCopy);
            if (this.!= null) {
                FileNameType sourceFileName;
                sourceFileName = this.getFileName();
                FileNameType copyFileName = ((FileNameTypestrategy.copy(LocatorUtils.property(locator"fileName"sourceFileName), sourceFileName));
                copy.setFileName(copyFileName);
            } else {
                copy.fileName = null;
            }
            if ((this.!= null)&&(!this..isEmpty())) {
                List<StringsourceNilReason;
                sourceNilReason = (((this.!= null)&&(!this..isEmpty()))?this.getNilReason():null);
                @SuppressWarnings("unchecked")
                List<StringcopyNilReason = ((List<String> ) strategy.copy(LocatorUtils.property(locator"nilReason"sourceNilReason), sourceNilReason));
                copy.nilReason = null;
                if (copyNilReason!= null) {
                    List<StringuniqueNilReasonl = copy.getNilReason();
                    uniqueNilReasonl.addAll(copyNilReason);
                }
            } else {
                copy.nilReason = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new FileNamePropertyType();
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        if (right instanceof FileNamePropertyType) {
            final FileNamePropertyType target = this;
            final FileNamePropertyType leftObject = ((FileNamePropertyTypeleft);
            final FileNamePropertyType rightObject = ((FileNamePropertyTyperight);
            {
                FileNameType lhsFileName;
                lhsFileName = leftObject.getFileName();
                FileNameType rhsFileName;
                rhsFileName = rightObject.getFileName();
                FileNameType mergedFileName = ((FileNameTypestrategy.merge(LocatorUtils.property(leftLocator"fileName"lhsFileName), LocatorUtils.property(rightLocator"fileName"rhsFileName), lhsFileNamerhsFileName));
                target.setFileName(mergedFileName);
            }
            {
                List<StringlhsNilReason;
                lhsNilReason = (((leftObject.nilReason!= null)&&(!leftObject.nilReason.isEmpty()))?leftObject.getNilReason():null);
                List<StringrhsNilReason;
                rhsNilReason = (((rightObject.nilReason!= null)&&(!rightObject.nilReason.isEmpty()))?rightObject.getNilReason():null);
                List<StringmergedNilReason = ((List<String> ) strategy.merge(LocatorUtils.property(leftLocator"nilReason"lhsNilReason), LocatorUtils.property(rightLocator"nilReason"rhsNilReason), lhsNilReasonrhsNilReason));
                target.nilReason = null;
                if (mergedNilReason!= null) {
                    List<StringuniqueNilReasonl = target.getNilReason();
                    uniqueNilReasonl.addAll(mergedNilReason);
                }
            }
        }
    }
    public void setNilReason(List<Stringvalue) {
        this. = null;
        List<Stringdraftl = this.getNilReason();
        draftl.addAll(value);
    }
        setFileName(value);
        return this;
    }
    public FileNamePropertyType withNilReason(String... values) {
        if (values!= null) {
            for (String valuevalues) {
                getNilReason().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getNilReason().addAll(values);
        }
        return this;
    }
    public FileNamePropertyType withNilReason(List<Stringvalue) {
        setNilReason(value);
        return this;
    }
New to GrepCode? Check out our FAQ X