1 package org.splat.service.dto;
6 * @author <a href="mailto:roman.kozlov@opencascade.com">Roman Kozlov (RKV)</a>
8 public class KnowledgeElementTypeDTO {
15 * Persistent id of the type.
19 // ==============================================================================================================================
20 // Public member functions
21 // ==============================================================================================================================
26 * @see java.lang.Object#equals(java.lang.Object)
28 public boolean equals(Object entity) {
31 if (entity instanceof String) {
32 return this.name.equals((String) entity); // Names are unique
33 } else if (entity instanceof KnowledgeElementTypeDTO) {
34 KnowledgeElementTypeDTO object = (KnowledgeElementTypeDTO) entity;
35 long he = object.getIndex();
36 long me = this.getIndex();
40 return this.getName().equals(object.getName());
48 * Get the name of the knowledge type.
50 * @return the type name
52 public String getName() {
61 public long getIndex() {
71 public void setIndex(long rid) {
77 * @param name the name to set
79 public void setName(String name) {