1 20 package org.apache.directory.ldapstudio.schemas.view.editors; 21 22 23 import org.apache.directory.ldapstudio.schemas.Messages; 24 25 26 32 public class NonExistingObjectClass 33 { 34 public static final String NONE = Messages.getString( "NonExistingObjectClass.(None)" ); 36 37 private String name; 38 39 40 46 public NonExistingObjectClass( String name ) 47 { 48 this.name = name; 49 } 50 51 52 58 public String getName() 59 { 60 return name; 61 } 62 63 64 70 public String getDisplayName() 71 { 72 if ( name.equals( NONE ) ) 73 { 74 return NONE; 75 } 76 else 77 { 78 return name + " " + Messages.getString( "NonExistingObjectClass.(This_object_class_doesnt_exist)" ); } 80 } 81 82 83 86 public boolean equals( Object obj ) 87 { 88 if ( obj instanceof NonExistingObjectClass ) 89 { 90 return name.equalsIgnoreCase( ( ( NonExistingObjectClass ) obj ).getName() ); 91 } 92 93 return false; 94 } 95 } 96 | Popular Tags |