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

Java class for SV_ServiceSpecification_Type complex type.

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

 <complexType name="SV_ServiceSpecification_Type">
   <complexContent>
     <extension base="{http://www.isotc211.org/2005/gco}AbstractObject_Type">
       <sequence>
         <element name="name" type="{http://www.isotc211.org/2005/gco}CharacterString_PropertyType"/>
         <element name="opModel" type="{http://www.isotc211.org/2005/srv}SV_OperationModel_PropertyType"/>
         <element name="typeSpec" type="{http://www.isotc211.org/2005/srv}SV_PlatformNeutralServiceSpecification_PropertyType"/>
         <element name="theSV_Interface" type="{http://www.isotc211.org/2005/srv}SV_Interface_PropertyType" maxOccurs="unbounded"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "SV_ServiceSpecification_Type", propOrder = {
     "name",
     "opModel",
     "typeSpec",
     "theSVInterface"
 })
 })
     extends AbstractObjectType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(required = true)
     protected CharacterStringPropertyType name;
     @XmlElement(required = true)
     @XmlElement(required = true)
     @XmlElement(name = "theSV_Interface", required = true)
     protected List<SVInterfacePropertyTypetheSVInterface;

    
Gets the value of the name property.

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

    
Sets the value of the name property.

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

    
Gets the value of the opModel property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the opModel property.

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

    
Gets the value of the typeSpec property.

Returns:
possible object is
        return ;
    }

    
Sets the value of the typeSpec property.

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

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

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

    getTheSVInterface().add(newItem);
 

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

        if ( == null) {
             = new ArrayList<SVInterfacePropertyType>();
        }
        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 theName;
            theName = this.getName();
            strategy.appendField(locatorthis"name"buffertheName);
        }
        {
            SVOperationModelPropertyType theOpModel;
            theOpModel = this.getOpModel();
            strategy.appendField(locatorthis"opModel"buffertheOpModel);
        }
        {
            SVPlatformNeutralServiceSpecificationPropertyType theTypeSpec;
            theTypeSpec = this.getTypeSpec();
            strategy.appendField(locatorthis"typeSpec"buffertheTypeSpec);
        }
        {
            List<SVInterfacePropertyTypetheTheSVInterface;
            theTheSVInterface = (((this.!= null)&&(!this..isEmpty()))?this.getTheSVInterface():null);
            strategy.appendField(locatorthis"theSVInterface"buffertheTheSVInterface);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof SVServiceSpecificationType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        if (!super.equals(thisLocatorthatLocatorobjectstrategy)) {
            return false;
        }
        final SVServiceSpecificationType that = ((SVServiceSpecificationTypeobject);
        {
            CharacterStringPropertyType lhsName;
            lhsName = this.getName();
            CharacterStringPropertyType rhsName;
            rhsName = that.getName();
            if (!strategy.equals(LocatorUtils.property(thisLocator"name"lhsName), LocatorUtils.property(thatLocator"name"rhsName), lhsNamerhsName)) {
                return false;
            }
        }
        {
            SVOperationModelPropertyType lhsOpModel;
            lhsOpModel = this.getOpModel();
            SVOperationModelPropertyType rhsOpModel;
            rhsOpModel = that.getOpModel();
            if (!strategy.equals(LocatorUtils.property(thisLocator"opModel"lhsOpModel), LocatorUtils.property(thatLocator"opModel"rhsOpModel), lhsOpModelrhsOpModel)) {
                return false;
            }
        }
        {
            SVPlatformNeutralServiceSpecificationPropertyType lhsTypeSpec;
            lhsTypeSpec = this.getTypeSpec();
            SVPlatformNeutralServiceSpecificationPropertyType rhsTypeSpec;
            rhsTypeSpec = that.getTypeSpec();
            if (!strategy.equals(LocatorUtils.property(thisLocator"typeSpec"lhsTypeSpec), LocatorUtils.property(thatLocator"typeSpec"rhsTypeSpec), lhsTypeSpecrhsTypeSpec)) {
                return false;
            }
        }
        {
            List<SVInterfacePropertyTypelhsTheSVInterface;
            lhsTheSVInterface = (((this.!= null)&&(!this..isEmpty()))?this.getTheSVInterface():null);
            List<SVInterfacePropertyTyperhsTheSVInterface;
            rhsTheSVInterface = (((that.theSVInterface!= null)&&(!that.theSVInterface.isEmpty()))?that.getTheSVInterface():null);
            if (!strategy.equals(LocatorUtils.property(thisLocator"theSVInterface"lhsTheSVInterface), LocatorUtils.property(thatLocator"theSVInterface"rhsTheSVInterface), lhsTheSVInterfacerhsTheSVInterface)) {
                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 theName;
            theName = this.getName();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"name"theName), currentHashCodetheName);
        }
        {
            SVOperationModelPropertyType theOpModel;
            theOpModel = this.getOpModel();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"opModel"theOpModel), currentHashCodetheOpModel);
        }
        {
            SVPlatformNeutralServiceSpecificationPropertyType theTypeSpec;
            theTypeSpec = this.getTypeSpec();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"typeSpec"theTypeSpec), currentHashCodetheTypeSpec);
        }
        {
            List<SVInterfacePropertyTypetheTheSVInterface;
            theTheSVInterface = (((this.!= null)&&(!this..isEmpty()))?this.getTheSVInterface():null);
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"theSVInterface"theTheSVInterface), currentHashCodetheTheSVInterface);
        }
        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 SVServiceSpecificationType) {
            final SVServiceSpecificationType copy = ((SVServiceSpecificationTypedraftCopy);
            if (this.!= null) {
                CharacterStringPropertyType sourceName;
                sourceName = this.getName();
                CharacterStringPropertyType copyName = ((CharacterStringPropertyTypestrategy.copy(LocatorUtils.property(locator"name"sourceName), sourceName));
                copy.setName(copyName);
            } else {
                copy.name = null;
            }
            if (this.!= null) {
                SVOperationModelPropertyType sourceOpModel;
                sourceOpModel = this.getOpModel();
                SVOperationModelPropertyType copyOpModel = ((SVOperationModelPropertyTypestrategy.copy(LocatorUtils.property(locator"opModel"sourceOpModel), sourceOpModel));
                copy.setOpModel(copyOpModel);
            } else {
                copy.opModel = null;
            }
            if (this.!= null) {
                SVPlatformNeutralServiceSpecificationPropertyType sourceTypeSpec;
                sourceTypeSpec = this.getTypeSpec();
                SVPlatformNeutralServiceSpecificationPropertyType copyTypeSpec = ((SVPlatformNeutralServiceSpecificationPropertyTypestrategy.copy(LocatorUtils.property(locator"typeSpec"sourceTypeSpec), sourceTypeSpec));
                copy.setTypeSpec(copyTypeSpec);
            } else {
                copy.typeSpec = null;
            }
            if ((this.!= null)&&(!this..isEmpty())) {
                List<SVInterfacePropertyTypesourceTheSVInterface;
                sourceTheSVInterface = (((this.!= null)&&(!this..isEmpty()))?this.getTheSVInterface():null);
                @SuppressWarnings("unchecked")
                List<SVInterfacePropertyTypecopyTheSVInterface = ((List<SVInterfacePropertyType> ) strategy.copy(LocatorUtils.property(locator"theSVInterface"sourceTheSVInterface), sourceTheSVInterface));
                copy.theSVInterface = null;
                if (copyTheSVInterface!= null) {
                    List<SVInterfacePropertyTypeuniqueTheSVInterfacel = copy.getTheSVInterface();
                    uniqueTheSVInterfacel.addAll(copyTheSVInterface);
                }
            } else {
                copy.theSVInterface = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new SVServiceSpecificationType();
    }
    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 SVServiceSpecificationType) {
            final SVServiceSpecificationType target = this;
            final SVServiceSpecificationType leftObject = ((SVServiceSpecificationTypeleft);
            final SVServiceSpecificationType rightObject = ((SVServiceSpecificationTyperight);
            {
                CharacterStringPropertyType lhsName;
                lhsName = leftObject.getName();
                CharacterStringPropertyType rhsName;
                rhsName = rightObject.getName();
                CharacterStringPropertyType mergedName = ((CharacterStringPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"name"lhsName), LocatorUtils.property(rightLocator"name"rhsName), lhsNamerhsName));
                target.setName(mergedName);
            }
            {
                SVOperationModelPropertyType lhsOpModel;
                lhsOpModel = leftObject.getOpModel();
                SVOperationModelPropertyType rhsOpModel;
                rhsOpModel = rightObject.getOpModel();
                SVOperationModelPropertyType mergedOpModel = ((SVOperationModelPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"opModel"lhsOpModel), LocatorUtils.property(rightLocator"opModel"rhsOpModel), lhsOpModelrhsOpModel));
                target.setOpModel(mergedOpModel);
            }
            {
                SVPlatformNeutralServiceSpecificationPropertyType lhsTypeSpec;
                lhsTypeSpec = leftObject.getTypeSpec();
                SVPlatformNeutralServiceSpecificationPropertyType rhsTypeSpec;
                rhsTypeSpec = rightObject.getTypeSpec();
                SVPlatformNeutralServiceSpecificationPropertyType mergedTypeSpec = ((SVPlatformNeutralServiceSpecificationPropertyTypestrategy.merge(LocatorUtils.property(leftLocator"typeSpec"lhsTypeSpec), LocatorUtils.property(rightLocator"typeSpec"rhsTypeSpec), lhsTypeSpecrhsTypeSpec));
                target.setTypeSpec(mergedTypeSpec);
            }
            {
                List<SVInterfacePropertyTypelhsTheSVInterface;
                lhsTheSVInterface = (((leftObject.theSVInterface!= null)&&(!leftObject.theSVInterface.isEmpty()))?leftObject.getTheSVInterface():null);
                List<SVInterfacePropertyTyperhsTheSVInterface;
                rhsTheSVInterface = (((rightObject.theSVInterface!= null)&&(!rightObject.theSVInterface.isEmpty()))?rightObject.getTheSVInterface():null);
                List<SVInterfacePropertyTypemergedTheSVInterface = ((List<SVInterfacePropertyType> ) strategy.merge(LocatorUtils.property(leftLocator"theSVInterface"lhsTheSVInterface), LocatorUtils.property(rightLocator"theSVInterface"rhsTheSVInterface), lhsTheSVInterfacerhsTheSVInterface));
                target.theSVInterface = null;
                if (mergedTheSVInterface!= null) {
                    List<SVInterfacePropertyTypeuniqueTheSVInterfacel = target.getTheSVInterface();
                    uniqueTheSVInterfacel.addAll(mergedTheSVInterface);
                }
            }
        }
    }
    public void setTheSVInterface(List<SVInterfacePropertyTypevalue) {
        this. = null;
        List<SVInterfacePropertyTypedraftl = this.getTheSVInterface();
        draftl.addAll(value);
    }
        setName(value);
        return this;
    }
        setOpModel(value);
        return this;
    }
        setTypeSpec(value);
        return this;
    }
        if (values!= null) {
            for (SVInterfacePropertyType valuevalues) {
                getTheSVInterface().add(value);
            }
        }
        return this;
    }
        if (values!= null) {
            getTheSVInterface().addAll(values);
        }
        return this;
    }
        setTheSVInterface(value);
        return this;
    }
    @Override
    public SVServiceSpecificationType withId(String value) {
        setId(value);
        return this;
    }
    @Override
    public SVServiceSpecificationType withUuid(String value) {
        setUuid(value);
        return this;
    }
New to GrepCode? Check out our FAQ X