Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  //
  // Diese Datei wurde mit der JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6 generiert 
  // Siehe <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
  // Änderungen an dieser Datei gehen bei einer Neukompilierung des Quellschemas verloren. 
  // Generiert: 2013.01.31 um 01:29:25 AM CET 
  //
  
  
  package net.opengis.xls.v_1_1_0;
 

Java-Klasse für StyleType complex type.

Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist.

 <complexType name="StyleType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <choice>
         <element name="Name" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="StyleContent" type="{http://www.w3.org/2001/XMLSchema}string"/>
       </choice>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "StyleType", propOrder = {
     "name",
     "styleContent"
 })
 public class StyleType
     implements CloneableCopyToEqualsHashCodeMergeFromToString
 {
 
     @XmlElement(name = "Name")
     protected String name;
     @XmlElement(name = "StyleContent")
     protected String styleContent;

    
Ruft den Wert der name-Eigenschaft ab.

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

    
Legt den Wert der name-Eigenschaft fest.

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

    
Ruft den Wert der styleContent-Eigenschaft ab.

Returns:
possible object is
 
    public String getStyleContent() {
        return ;
    }

    
Legt den Wert der styleContent-Eigenschaft fest.

Parameters:
value allowed object is
    public void setStyleContent(String 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) {
        {
            String theName;
            theName = this.getName();
            strategy.appendField(locatorthis"name"buffertheName);
        }
        {
            String theStyleContent;
            theStyleContent = this.getStyleContent();
            strategy.appendField(locatorthis"styleContent"buffertheStyleContent);
        }
        return buffer;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof StyleType)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final StyleType that = ((StyleTypeobject);
        {
            String lhsName;
            lhsName = this.getName();
            String rhsName;
            rhsName = that.getName();
            if (!strategy.equals(LocatorUtils.property(thisLocator"name"lhsName), LocatorUtils.property(thatLocator"name"rhsName), lhsNamerhsName)) {
                return false;
            }
        }
        {
            String lhsStyleContent;
            lhsStyleContent = this.getStyleContent();
            String rhsStyleContent;
            rhsStyleContent = that.getStyleContent();
            if (!strategy.equals(LocatorUtils.property(thisLocator"styleContent"lhsStyleContent), LocatorUtils.property(thatLocator"styleContent"rhsStyleContent), lhsStyleContentrhsStyleContent)) {
                return false;
            }
        }
        return true;
    }
    public boolean equals(Object object) {
        final EqualsStrategy strategy = .;
        return equals(nullnullobjectstrategy);
    }
    public int hashCode(ObjectLocator locatorHashCodeStrategy strategy) {
        int currentHashCode = 1;
        {
            String theName;
            theName = this.getName();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"name"theName), currentHashCodetheName);
        }
        {
            String theStyleContent;
            theStyleContent = this.getStyleContent();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"styleContent"theStyleContent), currentHashCodetheStyleContent);
        }
        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);
        if (draftCopy instanceof StyleType) {
            final StyleType copy = ((StyleTypedraftCopy);
            if (this.!= null) {
                String sourceName;
                sourceName = this.getName();
                String copyName = ((Stringstrategy.copy(LocatorUtils.property(locator"name"sourceName), sourceName));
                copy.setName(copyName);
            } else {
                copy.name = null;
            }
            if (this.!= null) {
                String sourceStyleContent;
                sourceStyleContent = this.getStyleContent();
                String copyStyleContent = ((Stringstrategy.copy(LocatorUtils.property(locator"styleContent"sourceStyleContent), sourceStyleContent));
                copy.setStyleContent(copyStyleContent);
            } else {
                copy.styleContent = null;
            }
        }
        return draftCopy;
    }
    public Object createNewInstance() {
        return new StyleType();
    }
    public void mergeFrom(Object leftObject right) {
        final MergeStrategy strategy = .;
        mergeFrom(nullnullleftrightstrategy);
    }
    public void mergeFrom(ObjectLocator leftLocatorObjectLocator rightLocatorObject leftObject rightMergeStrategy strategy) {
        if (right instanceof StyleType) {
            final StyleType target = this;
            final StyleType leftObject = ((StyleTypeleft);
            final StyleType rightObject = ((StyleTyperight);
            {
                String lhsName;
                lhsName = leftObject.getName();
                String rhsName;
                rhsName = rightObject.getName();
                target.setName(((Stringstrategy.merge(LocatorUtils.property(leftLocator"name"lhsName), LocatorUtils.property(rightLocator"name"rhsName), lhsNamerhsName)));
            }
            {
                String lhsStyleContent;
                lhsStyleContent = leftObject.getStyleContent();
                String rhsStyleContent;
                rhsStyleContent = rightObject.getStyleContent();
                target.setStyleContent(((Stringstrategy.merge(LocatorUtils.property(leftLocator"styleContent"lhsStyleContent), LocatorUtils.property(rightLocator"styleContent"rhsStyleContent), lhsStyleContentrhsStyleContent)));
            }
        }
    }
New to GrepCode? Check out our FAQ X