| | |
| | | || attrValue instanceof Double) |
| | | { |
| | | // coming first because they are the most common types |
| | | syntax = getDefaultStringSyntax(); |
| | | syntax = CoreSchema.getDirectoryStringSyntax(); |
| | | } |
| | | else if (attrValue instanceof Number) |
| | | { |
| | | syntax = getDefaultIntegerSyntax(); |
| | | syntax = CoreSchema.getIntegerSyntax(); |
| | | } |
| | | else if (attrValue instanceof Boolean) |
| | | { |
| | | syntax = getDefaultBooleanSyntax(); |
| | | syntax = CoreSchema.getBooleanSyntax(); |
| | | } |
| | | else if (attrValue instanceof DN) |
| | | { |
| | | syntax = getDefaultDNSyntax(); |
| | | syntax = CoreSchema.getDNSyntax(); |
| | | } |
| | | else if (attrValue instanceof Date) |
| | | { |
| | |
| | | } |
| | | else |
| | | { |
| | | syntax = getDefaultStringSyntax(); |
| | | syntax = CoreSchema.getDirectoryStringSyntax(); |
| | | } |
| | | add(attrName, syntax, attrValue); |
| | | } |