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

Java class for LI_Lineage_Type complex type.

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

 <complexType name="LI_Lineage_Type">
   <complexContent>
     <extension base="{http://www.isotc211.org/2005/gco}AbstractObject_Type">
       <sequence>
         <element name="statement" type="{http://www.isotc211.org/2005/gco}CharacterString_PropertyType" minOccurs="0"/>
         <element name="processStep" type="{http://www.isotc211.org/2005/gmd}LI_ProcessStep_PropertyType" maxOccurs="unbounded" minOccurs="0"/>
         <element name="source" type="{http://www.isotc211.org/2005/gmd}LI_Source_PropertyType" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "LI_Lineage_Type", propOrder = {
     "statement",
     "processStep",
     "source"
 })
 public class LILineageType
     extends AbstractObjectType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     protected List<LISourcePropertyTypesource;

    
Gets the value of the statement property.

Returns:
possible object is
 
         return ;
     }

    
Sets the value of the statement property.

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

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

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

    getProcessStep().add(newItem);
 

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

        if ( == null) {
             = new ArrayList<LIProcessStepPropertyType>();
        }
        return this.;
    }

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

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

    getSource().add(newItem);
 

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

    public List<LISourcePropertyTypegetSource() {
        if ( == null) {
             = new ArrayList<LISourcePropertyType>();
        }
        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) {
        super.appendFields(locatorbufferstrategy);
        {
            CharacterStringPropertyType theStatement;
            theStatement = this.getStatement();
            strategy.appendField(locatorthis"statement"buffertheStatement);
        }
        {
            List<LIProcessStepPropertyTypetheProcessStep;
            theProcessStep = (((this.!= null)&&(!this..isEmpty()))?this.getProcessStep():null);
            strategy.appendField(locatorthis"processStep"buffertheProcessStep);
        }
        {
            List<LISourcePropertyTypetheSource;
            theSource = (((this.!= null)&&(!this..isEmpty()))?this.getSource():null);
            strategy.appendField(locatorthis"source"buffertheSource);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof LILineageType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final LILineageType that = ((LILineageTypeobject);
        {
            CharacterStringPropertyType lhsStatement;
            lhsStatement = this.getStatement();
            CharacterStringPropertyType rhsStatement;
            rhsStatement = that.getStatement();
            if (!strategy.equals(LocatorUtils.property(thisLocator"statement"lhsStatement), LocatorUtils.property(thatLocator"statement"rhsStatement), lhsStatementrhsStatement)) {
                return false;
            }
        }
        {
            List<LIProcessStepPropertyTypelhsProcessStep;
            lhsProcessStep = (((this.!= null)&&(!this..isEmpty()))?this.getProcessStep():null);
            List<LIProcessStepPropertyTyperhsProcessStep;
            rhsProcessStep = (((that.processStep!= null)&&(!that.processStep.isEmpty()))?that.getProcessStep():null);
            if (!strategy.equals(LocatorUtils.property(thisLocator"processStep"lhsProcessStep), LocatorUtils.property(thatLocator"processStep"rhsProcessStep), lhsProcessSteprhsProcessStep)) {
                return false;
            }
        }
        {
            List<LISourcePropertyTypelhsSource;
            lhsSource = (((this.!= null)&&(!this..isEmpty()))?this.getSource():null);
            List<LISourcePropertyTyperhsSource;
            rhsSource = (((that.source!= null)&&(!that.source.isEmpty()))?that.getSource():null);
            if (!strategy.equals(LocatorUtils.property(thisLocator"source"lhsSource), LocatorUtils.property(thatLocator"source"rhsSource), lhsSourcerhsSource)) {
                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);
        {
            CharacterStringPropertyType theStatement;
            theStatement = this.getStatement();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"statement"theStatement), currentHashCodetheStatement);
        }
        {
            List<LIProcessStepPropertyTypetheProcessStep;
            theProcessStep = (((this.!= null)&&(!this..isEmpty()))?this.getProcessStep():null);
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"processStep"theProcessStep), currentHashCodetheProcessStep);
        }
        {
            List<LISourcePropertyTypetheSource;
            theSource = (((this.!= null)&&(!this..isEmpty()))?this.getSource():null);
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"source"theSource), currentHashCodetheSource);
        }
        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 LILineageType) {
            final LILineageType copy = ((LILineageTypedraftCopy);
            if (this.!= null) {
                CharacterStringPropertyType sourceStatement;
                sourceStatement = this.getStatement();
                CharacterStringPropertyType copyStatement = ((CharacterStringPropertyTypestrategy.copy(LocatorUtils.property(locator"statement"sourceStatement), sourceStatement));
                copy.setStatement(copyStatement);
            } else {
                copy.statement = null;
            }
            if ((this.!= null)&&(!this..isEmpty())) {
                List<LIProcessStepPropertyTypesourceProcessStep;
                sourceProcessStep = (((this.!= null)&&(!this..isEmpty()))?this.getProcessStep():null);
                @SuppressWarnings("unchecked")
                List<LIProcessStepPropertyTypecopyProcessStep = ((List<LIProcessStepPropertyType> ) strategy.copy(LocatorUtils.property(locator"processStep"sourceProcessStep), sourceProcessStep));
                copy.processStep = null;
                if (copyProcessStep!= null) {
                    List<LIProcessStepPropertyTypeuniqueProcessStepl = copy.getProcessStep();
                    uniqueProcessStepl.addAll(copyProcessStep);
                }
            } else {
                copy.processStep = null;
            }
            if ((this.!= null)&&(!this..isEmpty())) {
                List<LISourcePropertyTypesourceSource;
                sourceSource = (((this.!= null)&&(!this..isEmpty()))?this.getSource():null);
                @SuppressWarnings("unchecked")
                List<LISourcePropertyTypecopySource = ((List<LISourcePropertyType> ) strategy.copy(LocatorUtils.property(locator"source"sourceSource), sourceSource));
                copy.source = null;
                if (copySource!= null) {
                    List<LISourcePropertyTypeuniqueSourcel = copy.getSource();
                    uniqueSourcel.addAll(copySource);
                }
            } else {
                copy.source = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new LILineageType();
    }
    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 LILineageType) {
            final LILineageType target = this;
            final LILineageType leftObject = ((LILineageTypeleft);
            final LILineageType rightObject = ((LILineageTyperight);
            {
                CharacterStringPropertyType lhsStatement;
                lhsStatement = leftObject.getStatement();
                CharacterStringPropertyType rhsStatement;
                rhsStatement = rightObject.getStatement();
                CharacterStringPropertyType mergedStatement = ((CharacterStringPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"statement"lhsStatement), LocatorUtils.property(rightLocator"statement"rhsStatement), lhsStatementrhsStatement));
                target.setStatement(mergedStatement);
            }
            {
                List<LIProcessStepPropertyTypelhsProcessStep;
                lhsProcessStep = (((leftObject.processStep!= null)&&(!leftObject.processStep.isEmpty()))?leftObject.getProcessStep():null);
                List<LIProcessStepPropertyTyperhsProcessStep;
                rhsProcessStep = (((rightObject.processStep!= null)&&(!rightObject.processStep.isEmpty()))?rightObject.getProcessStep():null);
                List<LIProcessStepPropertyTypemergedProcessStep = ((List<LIProcessStepPropertyType> ) strategy.merge(LocatorUtils.property(leftLocator"processStep"lhsProcessStep), LocatorUtils.property(rightLocator"processStep"rhsProcessStep), lhsProcessSteprhsProcessStep));
                target.processStep = null;
                if (mergedProcessStep!= null) {
                    List<LIProcessStepPropertyTypeuniqueProcessStepl = target.getProcessStep();
                    uniqueProcessStepl.addAll(mergedProcessStep);
                }
            }
            {
                List<LISourcePropertyTypelhsSource;
                lhsSource = (((leftObject.source!= null)&&(!leftObject.source.isEmpty()))?leftObject.getSource():null);
                List<LISourcePropertyTyperhsSource;
                rhsSource = (((rightObject.source!= null)&&(!rightObject.source.isEmpty()))?rightObject.getSource():null);
                List<LISourcePropertyTypemergedSource = ((List<LISourcePropertyType> ) strategy.merge(LocatorUtils.property(leftLocator"source"lhsSource), LocatorUtils.property(rightLocator"source"rhsSource), lhsSourcerhsSource));
                target.source = null;
                if (mergedSource!= null) {
                    List<LISourcePropertyTypeuniqueSourcel = target.getSource();
                    uniqueSourcel.addAll(mergedSource);
                }
            }
        }
    }
    public void setProcessStep(List<LIProcessStepPropertyTypevalue) {
        this. = null;
        List<LIProcessStepPropertyTypedraftl = this.getProcessStep();
        draftl.addAll(value);
    }
    public void setSource(List<LISourcePropertyTypevalue) {
        this. = null;
        List<LISourcePropertyTypedraftl = this.getSource();
        draftl.addAll(value);
    }
        setStatement(value);
        return this;
    }
        if (values!= null) {
            for (LIProcessStepPropertyType valuevalues) {
                getProcessStep().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getProcessStep().addAll(values);
        }
        return this;
    }
    public LILineageType withSource(LISourcePropertyType... values) {
        if (values!= null) {
            for (LISourcePropertyType valuevalues) {
                getSource().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getSource().addAll(values);
        }
        return this;
    }
        setProcessStep(value);
        return this;
    }
        setSource(value);
        return this;
    }
    @Override
    public LILineageType withId(String value) {
        setId(value);
        return this;
    }
    @Override
    public LILineageType withUuid(String value) {
        setUuid(value);
        return this;
    }
New to GrepCode? Check out our FAQ X