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_ProcessStep_Type complex type.

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

 <complexType name="LI_ProcessStep_Type">
   <complexContent>
     <extension base="{http://www.isotc211.org/2005/gco}AbstractObject_Type">
       <sequence>
         <element name="description" type="{http://www.isotc211.org/2005/gco}CharacterString_PropertyType"/>
         <element name="rationale" type="{http://www.isotc211.org/2005/gco}CharacterString_PropertyType" minOccurs="0"/>
         <element name="dateTime" type="{http://www.isotc211.org/2005/gco}DateTime_PropertyType" minOccurs="0"/>
         <element name="processor" type="{http://www.isotc211.org/2005/gmd}CI_ResponsibleParty_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_ProcessStep_Type", propOrder = {
     "description",
     "rationale",
     "dateTime",
     "processor",
     "source"
 })
 public class LIProcessStepType
     extends AbstractObjectType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(required = true)
     protected DateTimePropertyType dateTime;
     protected List<LISourcePropertyTypesource;

    
Gets the value of the description property.

Returns:
possible object is
 
         return ;
     }

    
Sets the value of the description property.

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

    
Gets the value of the rationale property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the rationale property.

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

    
Gets the value of the dateTime property.

Returns:
possible object is
    public DateTimePropertyType getDateTime() {
        return ;
    }

    
Sets the value of the dateTime property.

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

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

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

    getProcessor().add(newItem);
 

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

        if ( == null) {
             = new ArrayList<CIResponsiblePartyPropertyType>();
        }
        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 theDescription;
            theDescription = this.getDescription();
            strategy.appendField(locatorthis"description"buffertheDescription);
        }
        {
            CharacterStringPropertyType theRationale;
            theRationale = this.getRationale();
            strategy.appendField(locatorthis"rationale"buffertheRationale);
        }
        {
            DateTimePropertyType theDateTime;
            theDateTime = this.getDateTime();
            strategy.appendField(locatorthis"dateTime"buffertheDateTime);
        }
        {
            List<CIResponsiblePartyPropertyTypetheProcessor;
            theProcessor = (((this.!= null)&&(!this..isEmpty()))?this.getProcessor():null);
            strategy.appendField(locatorthis"processor"buffertheProcessor);
        }
        {
            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 LIProcessStepType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final LIProcessStepType that = ((LIProcessStepTypeobject);
        {
            CharacterStringPropertyType lhsDescription;
            lhsDescription = this.getDescription();
            CharacterStringPropertyType rhsDescription;
            rhsDescription = that.getDescription();
            if (!strategy.equals(LocatorUtils.property(thisLocator"description"lhsDescription), LocatorUtils.property(thatLocator"description"rhsDescription), lhsDescriptionrhsDescription)) {
                return false;
            }
        }
        {
            CharacterStringPropertyType lhsRationale;
            lhsRationale = this.getRationale();
            CharacterStringPropertyType rhsRationale;
            rhsRationale = that.getRationale();
            if (!strategy.equals(LocatorUtils.property(thisLocator"rationale"lhsRationale), LocatorUtils.property(thatLocator"rationale"rhsRationale), lhsRationalerhsRationale)) {
                return false;
            }
        }
        {
            DateTimePropertyType lhsDateTime;
            lhsDateTime = this.getDateTime();
            DateTimePropertyType rhsDateTime;
            rhsDateTime = that.getDateTime();
            if (!strategy.equals(LocatorUtils.property(thisLocator"dateTime"lhsDateTime), LocatorUtils.property(thatLocator"dateTime"rhsDateTime), lhsDateTimerhsDateTime)) {
                return false;
            }
        }
        {
            List<CIResponsiblePartyPropertyTypelhsProcessor;
            lhsProcessor = (((this.!= null)&&(!this..isEmpty()))?this.getProcessor():null);
            List<CIResponsiblePartyPropertyTyperhsProcessor;
            rhsProcessor = (((that.processor!= null)&&(!that.processor.isEmpty()))?that.getProcessor():null);
            if (!strategy.equals(LocatorUtils.property(thisLocator"processor"lhsProcessor), LocatorUtils.property(thatLocator"processor"rhsProcessor), lhsProcessorrhsProcessor)) {
                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 theDescription;
            theDescription = this.getDescription();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"description"theDescription), currentHashCodetheDescription);
        }
        {
            CharacterStringPropertyType theRationale;
            theRationale = this.getRationale();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"rationale"theRationale), currentHashCodetheRationale);
        }
        {
            DateTimePropertyType theDateTime;
            theDateTime = this.getDateTime();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"dateTime"theDateTime), currentHashCodetheDateTime);
        }
        {
            List<CIResponsiblePartyPropertyTypetheProcessor;
            theProcessor = (((this.!= null)&&(!this..isEmpty()))?this.getProcessor():null);
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"processor"theProcessor), currentHashCodetheProcessor);
        }
        {
            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 LIProcessStepType) {
            final LIProcessStepType copy = ((LIProcessStepTypedraftCopy);
            if (this.!= null) {
                CharacterStringPropertyType sourceDescription;
                sourceDescription = this.getDescription();
                CharacterStringPropertyType copyDescription = ((CharacterStringPropertyTypestrategy.copy(LocatorUtils.property(locator"description"sourceDescription), sourceDescription));
                copy.setDescription(copyDescription);
            } else {
                copy.description = null;
            }
            if (this.!= null) {
                CharacterStringPropertyType sourceRationale;
                sourceRationale = this.getRationale();
                CharacterStringPropertyType copyRationale = ((CharacterStringPropertyTypestrategy.copy(LocatorUtils.property(locator"rationale"sourceRationale), sourceRationale));
                copy.setRationale(copyRationale);
            } else {
                copy.rationale = null;
            }
            if (this.!= null) {
                DateTimePropertyType sourceDateTime;
                sourceDateTime = this.getDateTime();
                DateTimePropertyType copyDateTime = ((DateTimePropertyTypestrategy.copy(LocatorUtils.property(locator"dateTime"sourceDateTime), sourceDateTime));
                copy.setDateTime(copyDateTime);
            } else {
                copy.dateTime = null;
            }
            if ((this.!= null)&&(!this..isEmpty())) {
                List<CIResponsiblePartyPropertyTypesourceProcessor;
                sourceProcessor = (((this.!= null)&&(!this..isEmpty()))?this.getProcessor():null);
                @SuppressWarnings("unchecked")
                List<CIResponsiblePartyPropertyTypecopyProcessor = ((List<CIResponsiblePartyPropertyType> ) strategy.copy(LocatorUtils.property(locator"processor"sourceProcessor), sourceProcessor));
                copy.processor = null;
                if (copyProcessor!= null) {
                    List<CIResponsiblePartyPropertyTypeuniqueProcessorl = copy.getProcessor();
                    uniqueProcessorl.addAll(copyProcessor);
                }
            } else {
                copy.processor = 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 LIProcessStepType();
    }
    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 LIProcessStepType) {
            final LIProcessStepType target = this;
            final LIProcessStepType leftObject = ((LIProcessStepTypeleft);
            final LIProcessStepType rightObject = ((LIProcessStepTyperight);
            {
                CharacterStringPropertyType lhsDescription;
                lhsDescription = leftObject.getDescription();
                CharacterStringPropertyType rhsDescription;
                rhsDescription = rightObject.getDescription();
                CharacterStringPropertyType mergedDescription = ((CharacterStringPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"description"lhsDescription), LocatorUtils.property(rightLocator"description"rhsDescription), lhsDescriptionrhsDescription));
                target.setDescription(mergedDescription);
            }
            {
                CharacterStringPropertyType lhsRationale;
                lhsRationale = leftObject.getRationale();
                CharacterStringPropertyType rhsRationale;
                rhsRationale = rightObject.getRationale();
                CharacterStringPropertyType mergedRationale = ((CharacterStringPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"rationale"lhsRationale), LocatorUtils.property(rightLocator"rationale"rhsRationale), lhsRationalerhsRationale));
                target.setRationale(mergedRationale);
            }
            {
                DateTimePropertyType lhsDateTime;
                lhsDateTime = leftObject.getDateTime();
                DateTimePropertyType rhsDateTime;
                rhsDateTime = rightObject.getDateTime();
                DateTimePropertyType mergedDateTime = ((DateTimePropertyTypestrategy.merge(LocatorUtils.property(leftLocator"dateTime"lhsDateTime), LocatorUtils.property(rightLocator"dateTime"rhsDateTime), lhsDateTimerhsDateTime));
                target.setDateTime(mergedDateTime);
            }
            {
                List<CIResponsiblePartyPropertyTypelhsProcessor;
                lhsProcessor = (((leftObject.processor!= null)&&(!leftObject.processor.isEmpty()))?leftObject.getProcessor():null);
                List<CIResponsiblePartyPropertyTyperhsProcessor;
                rhsProcessor = (((rightObject.processor!= null)&&(!rightObject.processor.isEmpty()))?rightObject.getProcessor():null);
                List<CIResponsiblePartyPropertyTypemergedProcessor = ((List<CIResponsiblePartyPropertyType> ) strategy.merge(LocatorUtils.property(leftLocator"processor"lhsProcessor), LocatorUtils.property(rightLocator"processor"rhsProcessor), lhsProcessorrhsProcessor));
                target.processor = null;
                if (mergedProcessor!= null) {
                    List<CIResponsiblePartyPropertyTypeuniqueProcessorl = target.getProcessor();
                    uniqueProcessorl.addAll(mergedProcessor);
                }
            }
            {
                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 setProcessor(List<CIResponsiblePartyPropertyTypevalue) {
        this. = null;
        List<CIResponsiblePartyPropertyTypedraftl = this.getProcessor();
        draftl.addAll(value);
    }
    public void setSource(List<LISourcePropertyTypevalue) {
        this. = null;
        List<LISourcePropertyTypedraftl = this.getSource();
        draftl.addAll(value);
    }
        setDescription(value);
        return this;
    }
        setRationale(value);
        return this;
    }
        setDateTime(value);
        return this;
    }
        if (values!= null) {
            for (CIResponsiblePartyPropertyType valuevalues) {
                getProcessor().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getProcessor().addAll(values);
        }
        return this;
    }
    public LIProcessStepType withSource(LISourcePropertyType... values) {
        if (values!= null) {
            for (LISourcePropertyType valuevalues) {
                getSource().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getSource().addAll(values);
        }
        return this;
    }
        setProcessor(value);
        return this;
    }
        setSource(value);
        return this;
    }
    @Override
    public LIProcessStepType withId(String value) {
        setId(value);
        return this;
    }
    @Override
    public LIProcessStepType withUuid(String value) {
        setUuid(value);
        return this;
    }
New to GrepCode? Check out our FAQ X