private AttributeType(final String name,final Syntax syntax,final MatchingRule equalityMatchingRule){
  final StringBuilder builder=new StringBuilder(name.length() + 4);
  StaticUtils.toLowerCase(name,builder);
  builder.append("-oid");
  this.oid=builder.toString();
  this.names=Collections.singletonList(name);
  this.isObsolete=false;
  this.superiorTypeOID=null;
  this.superiorType=null;
  this.equalityMatchingRule=equalityMatchingRule;
  this.equalityMatchingRuleOID=equalityMatchingRule.getOID();
  this.orderingMatchingRuleOID=null;
  this.substringMatchingRuleOID=null;
  this.approximateMatchingRuleOID=null;
  this.syntax=syntax;
  this.syntaxOID=syntax.getOID();
  this.isSingleValue=false;
  this.isCollective=false;
  this.isNoUserModification=false;
  this.attributeUsage=null;
  this.isObjectClassType=false;
  this.isPlaceHolder=true;
  this.normalizedName=StaticUtils.toLowerCase(getNameOrOID());
}

private AttributeType ( final String name , final Syntax syntax , final MatchingRule equalityMatchingRule ) { final StringBuilder builder = new StringBuilder ( name . length ( ) + 4 ) ; StaticUtils . toLowerCase ( name , builder ) ; builder . append ( "-oid" ) ; this . oid = builder . toString ( ) ; this . names = Collections . singletonList ( name ) ; this . isObsolete = false ; this . superiorTypeOID = null ; this . superiorType = null ; this . equalityMatchingRule = equalityMatchingRule ; this . equalityMatchingRuleOID = equalityMatchingRule . getOID ( ) ; this . orderingMatchingRuleOID = null ; this . substringMatchingRuleOID = null ; this . approximateMatchingRuleOID = null ; this . syntax = syntax ; this . syntaxOID = syntax . getOID ( ) ; this . isSingleValue = false ; this . isCollective = false ; this . isNoUserModification = false ; this . attributeUsage = null ; this . isObjectClassType = false ; this . isPlaceHolder = true ; this . normalizedName = StaticUtils . toLowerCase ( getNameOrOID ( ) ) ; }
creates a new place - holder attribute type having the specified name , default syntax , and default matching rule .
