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;
Handling restrictions imposed on the dataset because of national security, privacy, or other concerns

Java class for MD_SecurityConstraints_Type complex type.

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

 <complexType name="MD_SecurityConstraints_Type">
   <complexContent>
     <extension base="{http://www.isotc211.org/2005/gmd}MD_Constraints_Type">
       <sequence>
         <element name="classification" type="{http://www.isotc211.org/2005/gmd}MD_ClassificationCode_PropertyType"/>
         <element name="userNote" type="{http://www.isotc211.org/2005/gco}CharacterString_PropertyType" minOccurs="0"/>
         <element name="classificationSystem" type="{http://www.isotc211.org/2005/gco}CharacterString_PropertyType" minOccurs="0"/>
         <element name="handlingDescription" type="{http://www.isotc211.org/2005/gco}CharacterString_PropertyType" minOccurs="0"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "MD_SecurityConstraints_Type", propOrder = {
     "classification",
     "userNote",
     "classificationSystem",
     "handlingDescription"
 })
     extends MDConstraintsType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(required = true)
     protected CharacterStringPropertyType handlingDescription;

    
Gets the value of the classification property.

Returns:
possible object is
 
         return ;
     }

    
Sets the value of the classification property.

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

    
Gets the value of the userNote property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the userNote property.

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

    
Gets the value of the classificationSystem property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the classificationSystem property.

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

    
Gets the value of the handlingDescription property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the handlingDescription property.

Parameters:
value allowed object is
        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);
        {
            MDClassificationCodePropertyType theClassification;
            theClassification = this.getClassification();
            strategy.appendField(locatorthis"classification"buffertheClassification);
        }
        {
            CharacterStringPropertyType theUserNote;
            theUserNote = this.getUserNote();
            strategy.appendField(locatorthis"userNote"buffertheUserNote);
        }
        {
            CharacterStringPropertyType theClassificationSystem;
            theClassificationSystem = this.getClassificationSystem();
            strategy.appendField(locatorthis"classificationSystem"buffertheClassificationSystem);
        }
        {
            CharacterStringPropertyType theHandlingDescription;
            theHandlingDescription = this.getHandlingDescription();
            strategy.appendField(locatorthis"handlingDescription"buffertheHandlingDescription);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof MDSecurityConstraintsType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final MDSecurityConstraintsType that = ((MDSecurityConstraintsTypeobject);
        {
            MDClassificationCodePropertyType lhsClassification;
            lhsClassification = this.getClassification();
            MDClassificationCodePropertyType rhsClassification;
            rhsClassification = that.getClassification();
            if (!strategy.equals(LocatorUtils.property(thisLocator"classification"lhsClassification), LocatorUtils.property(thatLocator"classification"rhsClassification), lhsClassificationrhsClassification)) {
                return false;
            }
        }
        {
            CharacterStringPropertyType lhsUserNote;
            lhsUserNote = this.getUserNote();
            CharacterStringPropertyType rhsUserNote;
            rhsUserNote = that.getUserNote();
            if (!strategy.equals(LocatorUtils.property(thisLocator"userNote"lhsUserNote), LocatorUtils.property(thatLocator"userNote"rhsUserNote), lhsUserNoterhsUserNote)) {
                return false;
            }
        }
        {
            CharacterStringPropertyType lhsClassificationSystem;
            lhsClassificationSystem = this.getClassificationSystem();
            CharacterStringPropertyType rhsClassificationSystem;
            rhsClassificationSystem = that.getClassificationSystem();
            if (!strategy.equals(LocatorUtils.property(thisLocator"classificationSystem"lhsClassificationSystem), LocatorUtils.property(thatLocator"classificationSystem"rhsClassificationSystem), lhsClassificationSystemrhsClassificationSystem)) {
                return false;
            }
        }
        {
            CharacterStringPropertyType lhsHandlingDescription;
            lhsHandlingDescription = this.getHandlingDescription();
            CharacterStringPropertyType rhsHandlingDescription;
            rhsHandlingDescription = that.getHandlingDescription();
            if (!strategy.equals(LocatorUtils.property(thisLocator"handlingDescription"lhsHandlingDescription), LocatorUtils.property(thatLocator"handlingDescription"rhsHandlingDescription), lhsHandlingDescriptionrhsHandlingDescription)) {
                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);
        {
            MDClassificationCodePropertyType theClassification;
            theClassification = this.getClassification();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"classification"theClassification), currentHashCodetheClassification);
        }
        {
            CharacterStringPropertyType theUserNote;
            theUserNote = this.getUserNote();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"userNote"theUserNote), currentHashCodetheUserNote);
        }
        {
            CharacterStringPropertyType theClassificationSystem;
            theClassificationSystem = this.getClassificationSystem();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"classificationSystem"theClassificationSystem), currentHashCodetheClassificationSystem);
        }
        {
            CharacterStringPropertyType theHandlingDescription;
            theHandlingDescription = this.getHandlingDescription();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"handlingDescription"theHandlingDescription), currentHashCodetheHandlingDescription);
        }
        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 MDSecurityConstraintsType) {
            final MDSecurityConstraintsType copy = ((MDSecurityConstraintsTypedraftCopy);
            if (this.!= null) {
                MDClassificationCodePropertyType sourceClassification;
                sourceClassification = this.getClassification();
                MDClassificationCodePropertyType copyClassification = ((MDClassificationCodePropertyTypestrategy.copy(LocatorUtils.property(locator"classification"sourceClassification), sourceClassification));
                copy.setClassification(copyClassification);
            } else {
                copy.classification = null;
            }
            if (this.!= null) {
                CharacterStringPropertyType sourceUserNote;
                sourceUserNote = this.getUserNote();
                CharacterStringPropertyType copyUserNote = ((CharacterStringPropertyTypestrategy.copy(LocatorUtils.property(locator"userNote"sourceUserNote), sourceUserNote));
                copy.setUserNote(copyUserNote);
            } else {
                copy.userNote = null;
            }
            if (this.!= null) {
                CharacterStringPropertyType sourceClassificationSystem;
                sourceClassificationSystem = this.getClassificationSystem();
                CharacterStringPropertyType copyClassificationSystem = ((CharacterStringPropertyTypestrategy.copy(LocatorUtils.property(locator"classificationSystem"sourceClassificationSystem), sourceClassificationSystem));
                copy.setClassificationSystem(copyClassificationSystem);
            } else {
                copy.classificationSystem = null;
            }
            if (this.!= null) {
                CharacterStringPropertyType sourceHandlingDescription;
                sourceHandlingDescription = this.getHandlingDescription();
                CharacterStringPropertyType copyHandlingDescription = ((CharacterStringPropertyTypestrategy.copy(LocatorUtils.property(locator"handlingDescription"sourceHandlingDescription), sourceHandlingDescription));
                copy.setHandlingDescription(copyHandlingDescription);
            } else {
                copy.handlingDescription = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new MDSecurityConstraintsType();
    }
    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 MDSecurityConstraintsType) {
            final MDSecurityConstraintsType target = this;
            final MDSecurityConstraintsType leftObject = ((MDSecurityConstraintsTypeleft);
            final MDSecurityConstraintsType rightObject = ((MDSecurityConstraintsTyperight);
            {
                MDClassificationCodePropertyType lhsClassification;
                lhsClassification = leftObject.getClassification();
                MDClassificationCodePropertyType rhsClassification;
                rhsClassification = rightObject.getClassification();
                MDClassificationCodePropertyType mergedClassification = ((MDClassificationCodePropertyTypestrategy.merge(LocatorUtils.property(leftLocator"classification"lhsClassification), LocatorUtils.property(rightLocator"classification"rhsClassification), lhsClassificationrhsClassification));
                target.setClassification(mergedClassification);
            }
            {
                CharacterStringPropertyType lhsUserNote;
                lhsUserNote = leftObject.getUserNote();
                CharacterStringPropertyType rhsUserNote;
                rhsUserNote = rightObject.getUserNote();
                CharacterStringPropertyType mergedUserNote = ((CharacterStringPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"userNote"lhsUserNote), LocatorUtils.property(rightLocator"userNote"rhsUserNote), lhsUserNoterhsUserNote));
                target.setUserNote(mergedUserNote);
            }
            {
                CharacterStringPropertyType lhsClassificationSystem;
                lhsClassificationSystem = leftObject.getClassificationSystem();
                CharacterStringPropertyType rhsClassificationSystem;
                rhsClassificationSystem = rightObject.getClassificationSystem();
                CharacterStringPropertyType mergedClassificationSystem = ((CharacterStringPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"classificationSystem"lhsClassificationSystem), LocatorUtils.property(rightLocator"classificationSystem"rhsClassificationSystem), lhsClassificationSystemrhsClassificationSystem));
                target.setClassificationSystem(mergedClassificationSystem);
            }
            {
                CharacterStringPropertyType lhsHandlingDescription;
                lhsHandlingDescription = leftObject.getHandlingDescription();
                CharacterStringPropertyType rhsHandlingDescription;
                rhsHandlingDescription = rightObject.getHandlingDescription();
                CharacterStringPropertyType mergedHandlingDescription = ((CharacterStringPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"handlingDescription"lhsHandlingDescription), LocatorUtils.property(rightLocator"handlingDescription"rhsHandlingDescription), lhsHandlingDescriptionrhsHandlingDescription));
                target.setHandlingDescription(mergedHandlingDescription);
            }
        }
    }
        setClassification(value);
        return this;
    }
        setUserNote(value);
        return this;
    }
        setClassificationSystem(value);
        return this;
    }
        setHandlingDescription(value);
        return this;
    }
    @Override
        if (values!= null) {
            for (CharacterStringPropertyType valuevalues) {
                getUseLimitation().add(value);
            }
        }
        return this;
    }
    @Override
        if (values!= null) {
            getUseLimitation().addAll(values);
        }
        return this;
    }
    @Override
        setUseLimitation(value);
        return this;
    }
    @Override
    public MDSecurityConstraintsType withId(String value) {
        setId(value);
        return this;
    }
    @Override
    public MDSecurityConstraintsType withUuid(String value) {
        setUuid(value);
        return this;
    }
New to GrepCode? Check out our FAQ X