1 20 package org.apache.directory.ldapstudio.schemas.view.editors.attributeType; 21 22 23 import org.apache.directory.ldapstudio.schemas.Messages; 24 25 26 32 public class NonExistingMatchingRule 33 { 34 public static final String NONE = Messages.getString( "NonExistingMatchingRule.(None)" ); 36 37 private String name; 38 39 40 46 public NonExistingMatchingRule( 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( "NonExistingMatchingRule.(This_matching_rule_doesnt_exist)" ); } 80 } 81 82 83 86 public boolean equals( Object obj ) 87 { 88 if ( obj instanceof NonExistingMatchingRule ) 89 { 90 return name.equalsIgnoreCase( ( ( NonExistingMatchingRule ) obj ).getName() ); 91 } 92 93 return false; 94 } 95 } 96 | Popular Tags |