Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register
Show
Ignore:
Timestamp:
05/24/08 14:37:02 (8 months ago)
Author:
bwolfe
Message:

Merging api-refactoring to trunk [3595]:[4355]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs/trunk/src/api/org/openmrs/ConceptName.java

    r4230 r4358  
    2727        // Fields 
    2828 
     29        private Integer conceptNameId; 
    2930        private Concept concept; 
    3031        private String name; 
     
    4142        } 
    4243         
     44        /** 
     45         * Convenience constructor to create a ConceptName object by primary key 
     46         *  
     47         * @param conceptNameId 
     48         */ 
     49        public ConceptName(Integer conceptNameId) { 
     50                this.conceptNameId = conceptNameId; 
     51        } 
     52         
     53        /** 
     54         * Convenience constructor taking in the required properties 
     55         *  
     56         * @param name 
     57         * @param shortName 
     58         * @param description 
     59         * @param locale 
     60         */ 
    4361        public ConceptName(String name, String shortName, String description, Locale locale) { 
    4462                setName(name); 
     
    4866        } 
    4967 
     68        /** 
     69         * @see java.lang.Object#equals(java.lang.Object) 
     70         */ 
    5071        public boolean equals(Object obj) { 
    5172                if (obj instanceof ConceptName) { 
     
    5879        } 
    5980 
     81        /** 
     82         * @see java.lang.Object#hashCode() 
     83         */ 
    6084        public int hashCode() { 
    6185                if (this.getConcept() == null || this.getName() == null 
     
    6993        } 
    7094         
     95        /** 
     96         * Auto generated method comment 
     97         *  
     98         * @return 
     99         */ 
    71100        public String getShortestName() { 
    72101                String ret = getShortName(); 
     
    78107        } 
    79108 
    80         // Property accessors 
    81  
     109        /** 
     110     * @return the conceptNameId 
     111     */ 
     112    public Integer getConceptNameId() { 
     113        return conceptNameId; 
     114    } 
     115 
     116        /** 
     117     * @param conceptNameId the conceptNameId to set 
     118     */ 
     119    public void setConceptNameId(Integer conceptNameId) { 
     120        this.conceptNameId = conceptNameId; 
     121    } 
     122         
    82123        /** 
    83124         *  
     
    172213        } 
    173214 
     215        /** 
     216         * @see java.lang.Object#toString() 
     217         */ 
    174218        public String toString() { 
    175219                return this.name;