1 20 21 package org.apache.directory.ldapstudio.browser.core.model.schema; 22 23 24 public class MatchingRuleUseDescription extends SchemaPart2 25 { 26 27 private static final long serialVersionUID = 2768563387519504369L; 28 29 private String [] appliesAttributeTypeDescriptionOIDs; 30 31 32 public MatchingRuleUseDescription() 33 { 34 super(); 35 this.appliesAttributeTypeDescriptionOIDs = new String [0]; 36 } 37 38 39 public int compareTo( Object o ) 40 { 41 if ( o instanceof MatchingRuleUseDescription ) 42 { 43 return this.toString().compareTo( o.toString() ); 44 } 45 else 46 { 47 throw new ClassCastException ( "Object of type " + this.getClass().getName() + " required." ); 48 } 49 } 50 51 52 56 public String [] getNames() 57 { 58 return names; 59 } 60 61 62 public void setNames( String [] names ) 63 { 64 this.names = names; 65 } 66 67 68 72 public boolean isObsolete() 73 { 74 return isObsolete; 75 } 76 77 78 public void setObsolete( boolean isObsolete ) 79 { 80 this.isObsolete = isObsolete; 81 } 82 83 84 88 public String [] getAppliesAttributeTypeDescriptionOIDs() 89 { 90 return appliesAttributeTypeDescriptionOIDs; 91 } 92 93 94 public void setAppliesAttributeTypeDescriptionOIDs( String [] appliesAttributeTypeDescriptionOIDs ) 95 { 96 this.appliesAttributeTypeDescriptionOIDs = appliesAttributeTypeDescriptionOIDs; 97 } 98 99 } 100 | Popular Tags |