public AttributeType lookup( final String id ) throws NamingException
{
if( returnOperational )
{
return new AttributeType()
{
public boolean isSingleValue()
{
return false;
}
public boolean isCanUserModify()
{
return false;
}
public boolean isCollective()
{
return false;
}
public UsageEnum getUsage()
{
return null;
}
public AttributeType getSuperior() throws NamingException
{
return null;
}
public Syntax getSyntax() throws NamingException
{
return null;
}
public int getLength()
{
return 0;
}
public MatchingRule getEquality() throws NamingException
{
return null;
}
public MatchingRule getOrdering() throws NamingException
{
return null;
}
public MatchingRule getSubstr() throws NamingException
{
return null;
}
public boolean isObsolete()
{
return false;
}
public String getOid()
{
return String.valueOf( id.hashCode() );
}
public String[] getNames()
{
return new String[] { id };
}
public String getName()
{
return id;
}
public String getDescription()
{
return id;
}
};
}
else
{
return new AttributeType()
{
public boolean isSingleValue()
{
return false;
}