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;
 
 import java.util.List;

Java class for DQ_DataQuality_Type complex type.

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

 <complexType name="DQ_DataQuality_Type">
   <complexContent>
     <extension base="{http://www.isotc211.org/2005/gco}AbstractObject_Type">
       <sequence>
         <element name="scope" type="{http://www.isotc211.org/2005/gmd}DQ_Scope_PropertyType"/>
         <element name="report" type="{http://www.isotc211.org/2005/gmd}DQ_Element_PropertyType" maxOccurs="unbounded" minOccurs="0"/>
         <element name="lineage" type="{http://www.isotc211.org/2005/gmd}LI_Lineage_PropertyType" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "DQ_DataQuality_Type", propOrder = {
     "scope",
     "report",
     "lineage"
 })
 public class DQDataQualityType
     extends AbstractObjectType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(required = true)
     protected DQScopePropertyType scope;
     protected List<DQElementPropertyTypereport;
     protected LILineagePropertyType lineage;

    
Gets the value of the scope property.

Returns:
possible object is
 
     public DQScopePropertyType getScope() {
         return ;
     }

    
Sets the value of the scope property.

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

    
Gets the value of the report 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 report property.

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

    getReport().add(newItem);
 

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

    public List<DQElementPropertyTypegetReport() {
        if ( == null) {
             = new ArrayList<DQElementPropertyType>();
        }
        return this.;
    }

    
Gets the value of the lineage property.

Returns:
possible object is
    public LILineagePropertyType getLineage() {
        return ;
    }

    
Sets the value of the lineage property.

Parameters:
value allowed object is
    public void setLineage(LILineagePropertyType 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);
        {
            DQScopePropertyType theScope;
            theScope = this.getScope();
            strategy.appendField(locatorthis"scope"buffertheScope);
        }
        {
            List<DQElementPropertyTypetheReport;
            theReport = (((this.!= null)&&(!this..isEmpty()))?this.getReport():null);
            strategy.appendField(locatorthis"report"buffertheReport);
        }
        {
            LILineagePropertyType theLineage;
            theLineage = this.getLineage();
            strategy.appendField(locatorthis"lineage"buffertheLineage);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof DQDataQualityType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final DQDataQualityType that = ((DQDataQualityTypeobject);
        {
            DQScopePropertyType lhsScope;
            lhsScope = this.getScope();
            DQScopePropertyType rhsScope;
            rhsScope = that.getScope();
            if (!strategy.equals(LocatorUtils.property(thisLocator"scope"lhsScope), LocatorUtils.property(thatLocator"scope"rhsScope), lhsScoperhsScope)) {
                return false;
            }
        }
        {
            List<DQElementPropertyTypelhsReport;
            lhsReport = (((this.!= null)&&(!this..isEmpty()))?this.getReport():null);
            List<DQElementPropertyTyperhsReport;
            rhsReport = (((that.report!= null)&&(!that.report.isEmpty()))?that.getReport():null);
            if (!strategy.equals(LocatorUtils.property(thisLocator"report"lhsReport), LocatorUtils.property(thatLocator"report"rhsReport), lhsReportrhsReport)) {
                return false;
            }
        }
        {
            LILineagePropertyType lhsLineage;
            lhsLineage = this.getLineage();
            LILineagePropertyType rhsLineage;
            rhsLineage = that.getLineage();
            if (!strategy.equals(LocatorUtils.property(thisLocator"lineage"lhsLineage), LocatorUtils.property(thatLocator"lineage"rhsLineage), lhsLineagerhsLineage)) {
                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);
        {
            DQScopePropertyType theScope;
            theScope = this.getScope();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"scope"theScope), currentHashCodetheScope);
        }
        {
            List<DQElementPropertyTypetheReport;
            theReport = (((this.!= null)&&(!this..isEmpty()))?this.getReport():null);
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"report"theReport), currentHashCodetheReport);
        }
        {
            LILineagePropertyType theLineage;
            theLineage = this.getLineage();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"lineage"theLineage), currentHashCodetheLineage);
        }
        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 DQDataQualityType) {
            final DQDataQualityType copy = ((DQDataQualityTypedraftCopy);
            if (this.!= null) {
                DQScopePropertyType sourceScope;
                sourceScope = this.getScope();
                DQScopePropertyType copyScope = ((DQScopePropertyTypestrategy.copy(LocatorUtils.property(locator"scope"sourceScope), sourceScope));
                copy.setScope(copyScope);
            } else {
                copy.scope = null;
            }
            if ((this.!= null)&&(!this..isEmpty())) {
                List<DQElementPropertyTypesourceReport;
                sourceReport = (((this.!= null)&&(!this..isEmpty()))?this.getReport():null);
                @SuppressWarnings("unchecked")
                List<DQElementPropertyTypecopyReport = ((List<DQElementPropertyType> ) strategy.copy(LocatorUtils.property(locator"report"sourceReport), sourceReport));
                copy.report = null;
                if (copyReport!= null) {
                    List<DQElementPropertyTypeuniqueReportl = copy.getReport();
                    uniqueReportl.addAll(copyReport);
                }
            } else {
                copy.report = null;
            }
            if (this.!= null) {
                LILineagePropertyType sourceLineage;
                sourceLineage = this.getLineage();
                LILineagePropertyType copyLineage = ((LILineagePropertyTypestrategy.copy(LocatorUtils.property(locator"lineage"sourceLineage), sourceLineage));
                copy.setLineage(copyLineage);
            } else {
                copy.lineage = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new DQDataQualityType();
    }
    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 DQDataQualityType) {
            final DQDataQualityType target = this;
            final DQDataQualityType leftObject = ((DQDataQualityTypeleft);
            final DQDataQualityType rightObject = ((DQDataQualityTyperight);
            {
                DQScopePropertyType lhsScope;
                lhsScope = leftObject.getScope();
                DQScopePropertyType rhsScope;
                rhsScope = rightObject.getScope();
                DQScopePropertyType mergedScope = ((DQScopePropertyTypestrategy.merge(LocatorUtils.property(leftLocator"scope"lhsScope), LocatorUtils.property(rightLocator"scope"rhsScope), lhsScoperhsScope));
                target.setScope(mergedScope);
            }
            {
                List<DQElementPropertyTypelhsReport;
                lhsReport = (((leftObject.report!= null)&&(!leftObject.report.isEmpty()))?leftObject.getReport():null);
                List<DQElementPropertyTyperhsReport;
                rhsReport = (((rightObject.report!= null)&&(!rightObject.report.isEmpty()))?rightObject.getReport():null);
                List<DQElementPropertyTypemergedReport = ((List<DQElementPropertyType> ) strategy.merge(LocatorUtils.property(leftLocator"report"lhsReport), LocatorUtils.property(rightLocator"report"rhsReport), lhsReportrhsReport));
                target.report = null;
                if (mergedReport!= null) {
                    List<DQElementPropertyTypeuniqueReportl = target.getReport();
                    uniqueReportl.addAll(mergedReport);
                }
            }
            {
                LILineagePropertyType lhsLineage;
                lhsLineage = leftObject.getLineage();
                LILineagePropertyType rhsLineage;
                rhsLineage = rightObject.getLineage();
                LILineagePropertyType mergedLineage = ((LILineagePropertyTypestrategy.merge(LocatorUtils.property(leftLocator"lineage"lhsLineage), LocatorUtils.property(rightLocator"lineage"rhsLineage), lhsLineagerhsLineage));
                target.setLineage(mergedLineage);
            }
        }
    }
    public void setReport(List<DQElementPropertyTypevalue) {
        this. = null;
        List<DQElementPropertyTypedraftl = this.getReport();
        draftl.addAll(value);
    }
        setScope(value);
        return this;
    }
    public DQDataQualityType withReport(DQElementPropertyType... values) {
        if (values!= null) {
            for (DQElementPropertyType valuevalues) {
                getReport().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getReport().addAll(values);
        }
        return this;
    }
        setLineage(value);
        return this;
    }
        setReport(value);
        return this;
    }
    @Override
    public DQDataQualityType withId(String value) {
        setId(value);
        return this;
    }
    @Override
    public DQDataQualityType withUuid(String value) {
        setUuid(value);
        return this;
    }
New to GrepCode? Check out our FAQ X