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.3u2-hudson-jaxb-ri-2.2.3-4- 
  // 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: 2011.05.25 at 10:48:29 PM CEST 
  //
  
  
  package com.hack23.cia.model.external.worldbank.indicators.impl;
 

Java class for IndicatorElement complex type.

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

 <complexType name="IndicatorElement">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" form="qualified"/>
         <element name="source" form="qualified">
           <complexType>
             <simpleContent>
               <extension base="<http://indicators.worldbank.external.model.cia.hack23.com/impl>SourceName">
                 <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
               </extension>
             </simpleContent>
           </complexType>
         </element>
         <element name="sourceNote" type="{http://www.w3.org/2001/XMLSchema}string" form="qualified"/>
         <element name="sourceOrganization" type="{http://www.w3.org/2001/XMLSchema}string" form="qualified"/>
         <element name="topics" form="qualified">
           <complexType>
             <complexContent>
               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
                 <sequence>
                   <element name="topic" maxOccurs="unbounded" minOccurs="0" form="qualified">
                     <complexType>
                       <simpleContent>
                         <extension base="<http://www.w3.org/2001/XMLSchema>NCName">
                           <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
                         </extension>
                       </simpleContent>
                     </complexType>
                   </element>
                 </sequence>
               </restriction>
             </complexContent>
           </complexType>
         </element>
       </sequence>
       <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "IndicatorElement", propOrder = {
     "name",
     "source",
     "sourceNote",
     "sourceOrganization",
     "topics"
})
@Entity(name = "IndicatorElement")
@Table(name = "INDICATORELEMENT")
public class IndicatorElement
    implements SerializableModelObjectEqualsHashCode
    @XmlElement(required = true)
    protected String name;
    @XmlElement(required = true)
    protected Source source;
    @XmlElement(required = true)
    protected String sourceNote;
    @XmlElement(required = true)
    protected String sourceOrganization;
    @XmlElement(required = true)
    protected Topics topics;
    @XmlAttribute(name = "id", required = true)
    protected String id;
    @XmlAttribute(name = "Hjid")
    protected Long hjid;

    
Gets the value of the name property.

Returns:
possible object is
    @Basic
    @Column(name = "NAME_", length = 255)
    public String getName() {
        return ;
    }

    
Sets the value of the name property.

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

    
Gets the value of the source property.

Returns:
possible object is
    @Embedded
        @AttributeOverride(name = "value", column = @Column(name = "SOURCE_VALUE", length = 255)),
        @AttributeOverride(name = "id", column = @Column(name = "SOURCE_ID", length = 255))
    })
    public Source getSource() {
        return ;
    }

    
Sets the value of the source property.

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

    
Gets the value of the sourceNote property.

Returns:
possible object is
    @Basic
    @Column(name = "SOURCENOTE", length = 4096)
    public String getSourceNote() {
        return ;
    }

    
Sets the value of the sourceNote property.

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

    
Gets the value of the sourceOrganization property.

Returns:
possible object is
    @Basic
    @Column(name = "SOURCEORGANIZATION", length = 1024)
    public String getSourceOrganization() {
        return ;
    }

    
Sets the value of the sourceOrganization property.

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

    
Gets the value of the topics property.

Returns:
possible object is
    @ManyToOne(targetEntity = Topics.class, cascade = {
        .
    })
    @JoinColumn(name = "TOPICS_INDICATORELEMENT_HJID")
    public Topics getTopics() {
        return ;
    }

    
Sets the value of the topics property.

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

    
Gets the value of the id property.

Returns:
possible object is
    @Basic
    @Column(name = "ID", length = 255)
    public String getId() {
        return ;
    }

    
Sets the value of the id property.

Parameters:
value allowed object is
    public void setId(String value) {
        this. = value;
    }
    public IndicatorElement withName(String value) {
        setName(value);
        return this;
    }
    public IndicatorElement withSource(Source value) {
        setSource(value);
        return this;
    }
    public IndicatorElement withSourceNote(String value) {
        setSourceNote(value);
        return this;
    }
        setSourceOrganization(value);
        return this;
    }
    public IndicatorElement withTopics(Topics value) {
        setTopics(value);
        return this;
    }
    public IndicatorElement withId(String value) {
        setId(value);
        return this;
    }

    
Gets the value of the hjid property.

Returns:
possible object is
    @Id
    @Column(name = "HJID")
    @GeneratedValue(strategy = .)
    public Long getHjid() {
        return ;
    }

    
Sets the value of the hjid property.

Parameters:
value allowed object is
    public void setHjid(Long value) {
        this. = value;
    }
    public boolean equals(ObjectLocator thisLocatorObjectLocator thatLocatorObject objectEqualsStrategy strategy) {
        if (!(object instanceof IndicatorElement)) {
            return false;
        }
        if (this == object) {
            return true;
        }
        final IndicatorElement that = ((IndicatorElementobject);
        {
            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;
            }
        }
        {
            Source lhsSource;
            lhsSource = this.getSource();
            Source rhsSource;
            rhsSource = that.getSource();
            if (!strategy.equals(LocatorUtils.property(thisLocator"source"lhsSource), LocatorUtils.property(thatLocator"source"rhsSource), lhsSourcerhsSource)) {
                return false;
            }
        }
        {
            String lhsSourceNote;
            lhsSourceNote = this.getSourceNote();
            String rhsSourceNote;
            rhsSourceNote = that.getSourceNote();
            if (!strategy.equals(LocatorUtils.property(thisLocator"sourceNote"lhsSourceNote), LocatorUtils.property(thatLocator"sourceNote"rhsSourceNote), lhsSourceNoterhsSourceNote)) {
                return false;
            }
        }
        {
            String lhsSourceOrganization;
            lhsSourceOrganization = this.getSourceOrganization();
            String rhsSourceOrganization;
            rhsSourceOrganization = that.getSourceOrganization();
            if (!strategy.equals(LocatorUtils.property(thisLocator"sourceOrganization"lhsSourceOrganization), LocatorUtils.property(thatLocator"sourceOrganization"rhsSourceOrganization), lhsSourceOrganizationrhsSourceOrganization)) {
                return false;
            }
        }
        {
            Topics lhsTopics;
            lhsTopics = this.getTopics();
            Topics rhsTopics;
            rhsTopics = that.getTopics();
            if (!strategy.equals(LocatorUtils.property(thisLocator"topics"lhsTopics), LocatorUtils.property(thatLocator"topics"rhsTopics), lhsTopicsrhsTopics)) {
                return false;
            }
        }
        {
            String lhsId;
            lhsId = this.getId();
            String rhsId;
            rhsId = that.getId();
            if (!strategy.equals(LocatorUtils.property(thisLocator"id"lhsId), LocatorUtils.property(thatLocator"id"rhsId), lhsIdrhsId)) {
                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);
        }
        {
            Source theSource;
            theSource = this.getSource();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"source"theSource), currentHashCodetheSource);
        }
        {
            String theSourceNote;
            theSourceNote = this.getSourceNote();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"sourceNote"theSourceNote), currentHashCodetheSourceNote);
        }
        {
            String theSourceOrganization;
            theSourceOrganization = this.getSourceOrganization();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"sourceOrganization"theSourceOrganization), currentHashCodetheSourceOrganization);
        }
        {
            Topics theTopics;
            theTopics = this.getTopics();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"topics"theTopics), currentHashCodetheTopics);
        }
        {
            String theId;
            theId = this.getId();
            currentHashCode = strategy.hashCode(LocatorUtils.property(locator"id"theId), currentHashCodetheId);
        }
        return currentHashCode;
    }
    public int hashCode() {
        final HashCodeStrategy strategy = .;
        return this.hashCode(nullstrategy);
    }
New to GrepCode? Check out our FAQ X