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;
 

Java class for FileName_Type complex type.

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

 <complexType name="FileName_Type">
   <simpleContent>
     <extension base="<http://www.w3.org/2001/XMLSchema>string">
       <attribute name="src" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
     </extension>
   </simpleContent>
 </complexType>
 
 
 @XmlType(name = "FileName_Type", propOrder = {
     "value"
 })
 public class FileNameType implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlValue
     protected String value;
     @XmlAttribute(name = "src")
     @XmlSchemaType(name = "anyURI")
     protected String src;

    
Gets the value of the value property.

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

    
Sets the value of the value property.

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

    
Gets the value of the src property.

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

    
Sets the value of the src property.

Parameters:
value allowed object is
    public void setSrc(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) {
        {
            String theValue;
            theValue = this.getValue();
            strategy.appendField(locatorthis"value"buffertheValue);
        }
        {
            String theSrc;
            theSrc = this.getSrc();
            strategy.appendField(locatorthis"src"buffertheSrc);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof FileNameType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final FileNameType that = ((FileNameTypeobject);
        {
            String lhsValue;
            lhsValue = this.getValue();
            String rhsValue;
            rhsValue = that.getValue();
            if (!strategy.equals(LocatorUtils.property(thisLocator"value"lhsValue), LocatorUtils.property(thatLocator"value"rhsValue), lhsValuerhsValue)) {
                return false;
            }
        }
        {
            String lhsSrc;
            lhsSrc = this.getSrc();
            String rhsSrc;
            rhsSrc = that.getSrc();
            if (!strategy.equals(LocatorUtils.property(thisLocator"src"lhsSrc), LocatorUtils.property(thatLocator"src"rhsSrc), lhsSrcrhsSrc)) {
                return false;
            }
        }
        return true;
    }
    public boolean equals(Object object) {
        final EqualsStrategy strategy = .;
        return equals(nullnullobjectstrategy);
    }
    public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
        int currentHashCode = 1;
        {
            String theValue;
            theValue = this.getValue();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"value"theValue), currentHashCodetheValue);
        }
        {
            String theSrc;
            theSrc = this.getSrc();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"src"theSrc), currentHashCodetheSrc);
        }
        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 FileNameType) {
            final FileNameType copy = ((FileNameTypedraftCopy);
            if (this.!= null) {
                String sourceValue;
                sourceValue = this.getValue();
                String copyValue = ((Stringstrategy.copy(LocatorUtils.property(locator"value"sourceValue), sourceValue));
                copy.setValue(copyValue);
            } else {
                copy.value = null;
            }
            if (this.!= null) {
                String sourceSrc;
                sourceSrc = this.getSrc();
                String copySrc = ((Stringstrategy.copy(LocatorUtils.property(locator"src"sourceSrc), sourceSrc));
                copy.setSrc(copySrc);
            } else {
                copy.src = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new FileNameType();
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        if (right instanceof FileNameType) {
            final FileNameType target = this;
            final FileNameType leftObject = ((FileNameTypeleft);
            final FileNameType rightObject = ((FileNameTyperight);
            {
                String lhsValue;
                lhsValue = leftObject.getValue();
                String rhsValue;
                rhsValue = rightObject.getValue();
                String mergedValue = ((Stringstrategy.merge(LocatorUtils.property(leftLocator"value"lhsValue), LocatorUtils.property(rightLocator"value"rhsValue), lhsValuerhsValue));
                target.setValue(mergedValue);
            }
            {
                String lhsSrc;
                lhsSrc = leftObject.getSrc();
                String rhsSrc;
                rhsSrc = rightObject.getSrc();
                String mergedSrc = ((Stringstrategy.merge(LocatorUtils.property(leftLocator"src"lhsSrc), LocatorUtils.property(rightLocator"src"rhsSrc), lhsSrcrhsSrc));
                target.setSrc(mergedSrc);
            }
        }
    }
    public FileNameType withValue(String value) {
        setValue(value);
        return this;
    }
    public FileNameType withSrc(String value) {
        setSrc(value);
        return this;
    }
New to GrepCode? Check out our FAQ X