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.srv.v_20060504;
 

Java class for SV_Parameter_Type complex type.

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

 <complexType name="SV_Parameter_Type">
   <complexContent>
     <extension base="{http://www.isotc211.org/2005/gco}AbstractObject_Type">
       <sequence>
         <element name="name" type="{http://www.isotc211.org/2005/gco}MemberName_Type"/>
         <element name="direction" type="{http://www.isotc211.org/2005/srv}SV_ParameterDirection_PropertyType" minOccurs="0"/>
         <element name="description" type="{http://www.isotc211.org/2005/gco}CharacterString_PropertyType" minOccurs="0"/>
         <element name="optionality" type="{http://www.isotc211.org/2005/gco}CharacterString_PropertyType"/>
         <element name="repeatability" type="{http://www.isotc211.org/2005/gco}Boolean_PropertyType"/>
         <element name="valueType" type="{http://www.isotc211.org/2005/gco}TypeName_PropertyType"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "SV_Parameter_Type", propOrder = {
     "name",
     "direction",
     "description",
     "optionality",
     "repeatability",
     "valueType"
 })
 public class SVParameterType
     extends AbstractObjectType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(required = true)
     protected MemberNameType name;
     @XmlElement(required = true)
     @XmlElement(required = true)
     protected BooleanPropertyType repeatability;
     @XmlElement(required = true)
     protected TypeNamePropertyType valueType;

    
Gets the value of the name property.

Returns:
possible object is
 
     public MemberNameType getName() {
         return ;
     }

    
Sets the value of the name property.

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

    
Gets the value of the direction property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the direction property.

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

    
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 optionality property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the optionality property.

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

    
Gets the value of the repeatability property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the repeatability property.

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

    
Gets the value of the valueType property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the valueType property.

Parameters:
value allowed object is
    public void setValueType(TypeNamePropertyType 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);
        {
            MemberNameType theName;
            theName = this.getName();
            strategy.appendField(locatorthis"name"buffertheName);
        }
        {
            SVParameterDirectionPropertyType theDirection;
            theDirection = this.getDirection();
            strategy.appendField(locatorthis"direction"buffertheDirection);
        }
        {
            CharacterStringPropertyType theDescription;
            theDescription = this.getDescription();
            strategy.appendField(locatorthis"description"buffertheDescription);
        }
        {
            CharacterStringPropertyType theOptionality;
            theOptionality = this.getOptionality();
            strategy.appendField(locatorthis"optionality"buffertheOptionality);
        }
        {
            BooleanPropertyType theRepeatability;
            theRepeatability = this.getRepeatability();
            strategy.appendField(locatorthis"repeatability"buffertheRepeatability);
        }
        {
            TypeNamePropertyType theValueType;
            theValueType = this.getValueType();
            strategy.appendField(locatorthis"valueType"buffertheValueType);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof SVParameterType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final SVParameterType that = ((SVParameterTypeobject);
        {
            MemberNameType lhsName;
            lhsName = this.getName();
            MemberNameType rhsName;
            rhsName = that.getName();
            if (!strategy.equals(LocatorUtils.property(thisLocator"name"lhsName), LocatorUtils.property(thatLocator"name"rhsName), lhsNamerhsName)) {
                return false;
            }
        }
        {
            SVParameterDirectionPropertyType lhsDirection;
            lhsDirection = this.getDirection();
            SVParameterDirectionPropertyType rhsDirection;
            rhsDirection = that.getDirection();
            if (!strategy.equals(LocatorUtils.property(thisLocator"direction"lhsDirection), LocatorUtils.property(thatLocator"direction"rhsDirection), lhsDirectionrhsDirection)) {
                return false;
            }
        }
        {
            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 lhsOptionality;
            lhsOptionality = this.getOptionality();
            CharacterStringPropertyType rhsOptionality;
            rhsOptionality = that.getOptionality();
            if (!strategy.equals(LocatorUtils.property(thisLocator"optionality"lhsOptionality), LocatorUtils.property(thatLocator"optionality"rhsOptionality), lhsOptionalityrhsOptionality)) {
                return false;
            }
        }
        {
            BooleanPropertyType lhsRepeatability;
            lhsRepeatability = this.getRepeatability();
            BooleanPropertyType rhsRepeatability;
            rhsRepeatability = that.getRepeatability();
            if (!strategy.equals(LocatorUtils.property(thisLocator"repeatability"lhsRepeatability), LocatorUtils.property(thatLocator"repeatability"rhsRepeatability), lhsRepeatabilityrhsRepeatability)) {
                return false;
            }
        }
        {
            TypeNamePropertyType lhsValueType;
            lhsValueType = this.getValueType();
            TypeNamePropertyType rhsValueType;
            rhsValueType = that.getValueType();
            if (!strategy.equals(LocatorUtils.property(thisLocator"valueType"lhsValueType), LocatorUtils.property(thatLocator"valueType"rhsValueType), lhsValueTyperhsValueType)) {
                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);
        {
            MemberNameType theName;
            theName = this.getName();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"name"theName), currentHashCodetheName);
        }
        {
            SVParameterDirectionPropertyType theDirection;
            theDirection = this.getDirection();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"direction"theDirection), currentHashCodetheDirection);
        }
        {
            CharacterStringPropertyType theDescription;
            theDescription = this.getDescription();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"description"theDescription), currentHashCodetheDescription);
        }
        {
            CharacterStringPropertyType theOptionality;
            theOptionality = this.getOptionality();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"optionality"theOptionality), currentHashCodetheOptionality);
        }
        {
            BooleanPropertyType theRepeatability;
            theRepeatability = this.getRepeatability();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"repeatability"theRepeatability), currentHashCodetheRepeatability);
        }
        {
            TypeNamePropertyType theValueType;
            theValueType = this.getValueType();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"valueType"theValueType), currentHashCodetheValueType);
        }
        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 SVParameterType) {
            final SVParameterType copy = ((SVParameterTypedraftCopy);
            if (this.!= null) {
                MemberNameType sourceName;
                sourceName = this.getName();
                MemberNameType copyName = ((MemberNameTypestrategy.copy(LocatorUtils.property(locator"name"sourceName), sourceName));
                copy.setName(copyName);
            } else {
                copy.name = null;
            }
            if (this.!= null) {
                SVParameterDirectionPropertyType sourceDirection;
                sourceDirection = this.getDirection();
                SVParameterDirectionPropertyType copyDirection = ((SVParameterDirectionPropertyTypestrategy.copy(LocatorUtils.property(locator"direction"sourceDirection), sourceDirection));
                copy.setDirection(copyDirection);
            } else {
                copy.direction = null;
            }
            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 sourceOptionality;
                sourceOptionality = this.getOptionality();
                CharacterStringPropertyType copyOptionality = ((CharacterStringPropertyTypestrategy.copy(LocatorUtils.property(locator"optionality"sourceOptionality), sourceOptionality));
                copy.setOptionality(copyOptionality);
            } else {
                copy.optionality = null;
            }
            if (this.!= null) {
                BooleanPropertyType sourceRepeatability;
                sourceRepeatability = this.getRepeatability();
                BooleanPropertyType copyRepeatability = ((BooleanPropertyTypestrategy.copy(LocatorUtils.property(locator"repeatability"sourceRepeatability), sourceRepeatability));
                copy.setRepeatability(copyRepeatability);
            } else {
                copy.repeatability = null;
            }
            if (this.!= null) {
                TypeNamePropertyType sourceValueType;
                sourceValueType = this.getValueType();
                TypeNamePropertyType copyValueType = ((TypeNamePropertyTypestrategy.copy(LocatorUtils.property(locator"valueType"sourceValueType), sourceValueType));
                copy.setValueType(copyValueType);
            } else {
                copy.valueType = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new SVParameterType();
    }
    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 SVParameterType) {
            final SVParameterType target = this;
            final SVParameterType leftObject = ((SVParameterTypeleft);
            final SVParameterType rightObject = ((SVParameterTyperight);
            {
                MemberNameType lhsName;
                lhsName = leftObject.getName();
                MemberNameType rhsName;
                rhsName = rightObject.getName();
                MemberNameType mergedName = ((MemberNameTypestrategy.merge(LocatorUtils.property(leftLocator"name"lhsName), LocatorUtils.property(rightLocator"name"rhsName), lhsNamerhsName));
                target.setName(mergedName);
            }
            {
                SVParameterDirectionPropertyType lhsDirection;
                lhsDirection = leftObject.getDirection();
                SVParameterDirectionPropertyType rhsDirection;
                rhsDirection = rightObject.getDirection();
                SVParameterDirectionPropertyType mergedDirection = ((SVParameterDirectionPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"direction"lhsDirection), LocatorUtils.property(rightLocator"direction"rhsDirection), lhsDirectionrhsDirection));
                target.setDirection(mergedDirection);
            }
            {
                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 lhsOptionality;
                lhsOptionality = leftObject.getOptionality();
                CharacterStringPropertyType rhsOptionality;
                rhsOptionality = rightObject.getOptionality();
                CharacterStringPropertyType mergedOptionality = ((CharacterStringPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"optionality"lhsOptionality), LocatorUtils.property(rightLocator"optionality"rhsOptionality), lhsOptionalityrhsOptionality));
                target.setOptionality(mergedOptionality);
            }
            {
                BooleanPropertyType lhsRepeatability;
                lhsRepeatability = leftObject.getRepeatability();
                BooleanPropertyType rhsRepeatability;
                rhsRepeatability = rightObject.getRepeatability();
                BooleanPropertyType mergedRepeatability = ((BooleanPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"repeatability"lhsRepeatability), LocatorUtils.property(rightLocator"repeatability"rhsRepeatability), lhsRepeatabilityrhsRepeatability));
                target.setRepeatability(mergedRepeatability);
            }
            {
                TypeNamePropertyType lhsValueType;
                lhsValueType = leftObject.getValueType();
                TypeNamePropertyType rhsValueType;
                rhsValueType = rightObject.getValueType();
                TypeNamePropertyType mergedValueType = ((TypeNamePropertyTypestrategy.merge(LocatorUtils.property(leftLocator"valueType"lhsValueType), LocatorUtils.property(rightLocator"valueType"rhsValueType), lhsValueTyperhsValueType));
                target.setValueType(mergedValueType);
            }
        }
    }
    public SVParameterType withName(MemberNameType value) {
        setName(value);
        return this;
    }
        setDirection(value);
        return this;
    }
        setDescription(value);
        return this;
    }
        setOptionality(value);
        return this;
    }
        setRepeatability(value);
        return this;
    }
        setValueType(value);
        return this;
    }
    @Override
    public SVParameterType withId(String value) {
        setId(value);
        return this;
    }
    @Override
    public SVParameterType withUuid(String value) {
        setUuid(value);
        return this;
    }
New to GrepCode? Check out our FAQ X