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;
Brief description of ways in which the dataset is currently used.

Java class for MD_Usage_Type complex type.

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

 <complexType name="MD_Usage_Type">
   <complexContent>
     <extension base="{http://www.isotc211.org/2005/gco}AbstractObject_Type">
       <sequence>
         <element name="specificUsage" type="{http://www.isotc211.org/2005/gco}CharacterString_PropertyType"/>
         <element name="usageDateTime" type="{http://www.isotc211.org/2005/gco}DateTime_PropertyType" minOccurs="0"/>
         <element name="userDeterminedLimitations" type="{http://www.isotc211.org/2005/gco}CharacterString_PropertyType" minOccurs="0"/>
         <element name="userContactInfo" type="{http://www.isotc211.org/2005/gmd}CI_ResponsibleParty_PropertyType" maxOccurs="unbounded"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "MD_Usage_Type", propOrder = {
     "specificUsage",
     "usageDateTime",
     "userDeterminedLimitations",
     "userContactInfo"
 })
 public class MDUsageType
     extends AbstractObjectType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(required = true)
     protected DateTimePropertyType usageDateTime;
     @XmlElement(required = true)
     protected List<CIResponsiblePartyPropertyTypeuserContactInfo;

    
Gets the value of the specificUsage property.

Returns:
possible object is
 
         return ;
     }

    
Sets the value of the specificUsage property.

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

    
Gets the value of the usageDateTime property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the usageDateTime property.

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

    
Gets the value of the userDeterminedLimitations property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the userDeterminedLimitations property.

Parameters:
value allowed object is
        this. = value;
    }

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

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

    getUserContactInfo().add(newItem);
 

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

        if ( == null) {
             = new ArrayList<CIResponsiblePartyPropertyType>();
        }
        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 theSpecificUsage;
            theSpecificUsage = this.getSpecificUsage();
            strategy.appendField(locatorthis"specificUsage"buffertheSpecificUsage);
        }
        {
            DateTimePropertyType theUsageDateTime;
            theUsageDateTime = this.getUsageDateTime();
            strategy.appendField(locatorthis"usageDateTime"buffertheUsageDateTime);
        }
        {
            CharacterStringPropertyType theUserDeterminedLimitations;
            theUserDeterminedLimitations = this.getUserDeterminedLimitations();
            strategy.appendField(locatorthis"userDeterminedLimitations"buffertheUserDeterminedLimitations);
        }
        {
            List<CIResponsiblePartyPropertyTypetheUserContactInfo;
            theUserContactInfo = (((this.!= null)&&(!this..isEmpty()))?this.getUserContactInfo():null);
            strategy.appendField(locatorthis"userContactInfo"buffertheUserContactInfo);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof MDUsageType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final MDUsageType that = ((MDUsageTypeobject);
        {
            CharacterStringPropertyType lhsSpecificUsage;
            lhsSpecificUsage = this.getSpecificUsage();
            CharacterStringPropertyType rhsSpecificUsage;
            rhsSpecificUsage = that.getSpecificUsage();
            if (!strategy.equals(LocatorUtils.property(thisLocator"specificUsage"lhsSpecificUsage), LocatorUtils.property(thatLocator"specificUsage"rhsSpecificUsage), lhsSpecificUsagerhsSpecificUsage)) {
                return false;
            }
        }
        {
            DateTimePropertyType lhsUsageDateTime;
            lhsUsageDateTime = this.getUsageDateTime();
            DateTimePropertyType rhsUsageDateTime;
            rhsUsageDateTime = that.getUsageDateTime();
            if (!strategy.equals(LocatorUtils.property(thisLocator"usageDateTime"lhsUsageDateTime), LocatorUtils.property(thatLocator"usageDateTime"rhsUsageDateTime), lhsUsageDateTimerhsUsageDateTime)) {
                return false;
            }
        }
        {
            CharacterStringPropertyType lhsUserDeterminedLimitations;
            lhsUserDeterminedLimitations = this.getUserDeterminedLimitations();
            CharacterStringPropertyType rhsUserDeterminedLimitations;
            rhsUserDeterminedLimitations = that.getUserDeterminedLimitations();
            if (!strategy.equals(LocatorUtils.property(thisLocator"userDeterminedLimitations"lhsUserDeterminedLimitations), LocatorUtils.property(thatLocator"userDeterminedLimitations"rhsUserDeterminedLimitations), lhsUserDeterminedLimitationsrhsUserDeterminedLimitations)) {
                return false;
            }
        }
        {
            List<CIResponsiblePartyPropertyTypelhsUserContactInfo;
            lhsUserContactInfo = (((this.!= null)&&(!this..isEmpty()))?this.getUserContactInfo():null);
            List<CIResponsiblePartyPropertyTyperhsUserContactInfo;
            rhsUserContactInfo = (((that.userContactInfo!= null)&&(!that.userContactInfo.isEmpty()))?that.getUserContactInfo():null);
            if (!strategy.equals(LocatorUtils.property(thisLocator"userContactInfo"lhsUserContactInfo), LocatorUtils.property(thatLocator"userContactInfo"rhsUserContactInfo), lhsUserContactInforhsUserContactInfo)) {
                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 theSpecificUsage;
            theSpecificUsage = this.getSpecificUsage();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"specificUsage"theSpecificUsage), currentHashCodetheSpecificUsage);
        }
        {
            DateTimePropertyType theUsageDateTime;
            theUsageDateTime = this.getUsageDateTime();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"usageDateTime"theUsageDateTime), currentHashCodetheUsageDateTime);
        }
        {
            CharacterStringPropertyType theUserDeterminedLimitations;
            theUserDeterminedLimitations = this.getUserDeterminedLimitations();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"userDeterminedLimitations"theUserDeterminedLimitations), currentHashCodetheUserDeterminedLimitations);
        }
        {
            List<CIResponsiblePartyPropertyTypetheUserContactInfo;
            theUserContactInfo = (((this.!= null)&&(!this..isEmpty()))?this.getUserContactInfo():null);
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"userContactInfo"theUserContactInfo), currentHashCodetheUserContactInfo);
        }
        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 MDUsageType) {
            final MDUsageType copy = ((MDUsageTypedraftCopy);
            if (this.!= null) {
                CharacterStringPropertyType sourceSpecificUsage;
                sourceSpecificUsage = this.getSpecificUsage();
                CharacterStringPropertyType copySpecificUsage = ((CharacterStringPropertyTypestrategy.copy(LocatorUtils.property(locator"specificUsage"sourceSpecificUsage), sourceSpecificUsage));
                copy.setSpecificUsage(copySpecificUsage);
            } else {
                copy.specificUsage = null;
            }
            if (this.!= null) {
                DateTimePropertyType sourceUsageDateTime;
                sourceUsageDateTime = this.getUsageDateTime();
                DateTimePropertyType copyUsageDateTime = ((DateTimePropertyTypestrategy.copy(LocatorUtils.property(locator"usageDateTime"sourceUsageDateTime), sourceUsageDateTime));
                copy.setUsageDateTime(copyUsageDateTime);
            } else {
                copy.usageDateTime = null;
            }
            if (this.!= null) {
                CharacterStringPropertyType sourceUserDeterminedLimitations;
                sourceUserDeterminedLimitations = this.getUserDeterminedLimitations();
                CharacterStringPropertyType copyUserDeterminedLimitations = ((CharacterStringPropertyTypestrategy.copy(LocatorUtils.property(locator"userDeterminedLimitations"sourceUserDeterminedLimitations), sourceUserDeterminedLimitations));
                copy.setUserDeterminedLimitations(copyUserDeterminedLimitations);
            } else {
                copy.userDeterminedLimitations = null;
            }
            if ((this.!= null)&&(!this..isEmpty())) {
                List<CIResponsiblePartyPropertyTypesourceUserContactInfo;
                sourceUserContactInfo = (((this.!= null)&&(!this..isEmpty()))?this.getUserContactInfo():null);
                @SuppressWarnings("unchecked")
                List<CIResponsiblePartyPropertyTypecopyUserContactInfo = ((List<CIResponsiblePartyPropertyType> ) strategy.copy(LocatorUtils.property(locator"userContactInfo"sourceUserContactInfo), sourceUserContactInfo));
                copy.userContactInfo = null;
                if (copyUserContactInfo!= null) {
                    List<CIResponsiblePartyPropertyTypeuniqueUserContactInfol = copy.getUserContactInfo();
                    uniqueUserContactInfol.addAll(copyUserContactInfo);
                }
            } else {
                copy.userContactInfo = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new MDUsageType();
    }
    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 MDUsageType) {
            final MDUsageType target = this;
            final MDUsageType leftObject = ((MDUsageTypeleft);
            final MDUsageType rightObject = ((MDUsageTyperight);
            {
                CharacterStringPropertyType lhsSpecificUsage;
                lhsSpecificUsage = leftObject.getSpecificUsage();
                CharacterStringPropertyType rhsSpecificUsage;
                rhsSpecificUsage = rightObject.getSpecificUsage();
                CharacterStringPropertyType mergedSpecificUsage = ((CharacterStringPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"specificUsage"lhsSpecificUsage), LocatorUtils.property(rightLocator"specificUsage"rhsSpecificUsage), lhsSpecificUsagerhsSpecificUsage));
                target.setSpecificUsage(mergedSpecificUsage);
            }
            {
                DateTimePropertyType lhsUsageDateTime;
                lhsUsageDateTime = leftObject.getUsageDateTime();
                DateTimePropertyType rhsUsageDateTime;
                rhsUsageDateTime = rightObject.getUsageDateTime();
                DateTimePropertyType mergedUsageDateTime = ((DateTimePropertyTypestrategy.merge(LocatorUtils.property(leftLocator"usageDateTime"lhsUsageDateTime), LocatorUtils.property(rightLocator"usageDateTime"rhsUsageDateTime), lhsUsageDateTimerhsUsageDateTime));
                target.setUsageDateTime(mergedUsageDateTime);
            }
            {
                CharacterStringPropertyType lhsUserDeterminedLimitations;
                lhsUserDeterminedLimitations = leftObject.getUserDeterminedLimitations();
                CharacterStringPropertyType rhsUserDeterminedLimitations;
                rhsUserDeterminedLimitations = rightObject.getUserDeterminedLimitations();
                CharacterStringPropertyType mergedUserDeterminedLimitations = ((CharacterStringPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"userDeterminedLimitations"lhsUserDeterminedLimitations), LocatorUtils.property(rightLocator"userDeterminedLimitations"rhsUserDeterminedLimitations), lhsUserDeterminedLimitationsrhsUserDeterminedLimitations));
                target.setUserDeterminedLimitations(mergedUserDeterminedLimitations);
            }
            {
                List<CIResponsiblePartyPropertyTypelhsUserContactInfo;
                lhsUserContactInfo = (((leftObject.userContactInfo!= null)&&(!leftObject.userContactInfo.isEmpty()))?leftObject.getUserContactInfo():null);
                List<CIResponsiblePartyPropertyTyperhsUserContactInfo;
                rhsUserContactInfo = (((rightObject.userContactInfo!= null)&&(!rightObject.userContactInfo.isEmpty()))?rightObject.getUserContactInfo():null);
                List<CIResponsiblePartyPropertyTypemergedUserContactInfo = ((List<CIResponsiblePartyPropertyType> ) strategy.merge(LocatorUtils.property(leftLocator"userContactInfo"lhsUserContactInfo), LocatorUtils.property(rightLocator"userContactInfo"rhsUserContactInfo), lhsUserContactInforhsUserContactInfo));
                target.userContactInfo = null;
                if (mergedUserContactInfo!= null) {
                    List<CIResponsiblePartyPropertyTypeuniqueUserContactInfol = target.getUserContactInfo();
                    uniqueUserContactInfol.addAll(mergedUserContactInfo);
                }
            }
        }
    }
        this. = null;
        List<CIResponsiblePartyPropertyTypedraftl = this.getUserContactInfo();
        draftl.addAll(value);
    }
        setSpecificUsage(value);
        return this;
    }
        setUsageDateTime(value);
        return this;
    }
        setUserDeterminedLimitations(value);
        return this;
    }
        if (values!= null) {
            for (CIResponsiblePartyPropertyType valuevalues) {
                getUserContactInfo().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getUserContactInfo().addAll(values);
        }
        return this;
    }
        setUserContactInfo(value);
        return this;
    }
    @Override
    public MDUsageType withId(String value) {
        setId(value);
        return this;
    }
    @Override
    public MDUsageType withUuid(String value) {
        setUuid(value);
        return this;
    }
New to GrepCode? Check out our FAQ X