public static final class Syntax.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
SchemaBuilder |
addToSchema()
Adds this syntax to the schema, throwing a
ConflictingSchemaElementException if there is an existing
syntax with the same numeric OID. |
SchemaBuilder |
addToSchemaOverwrite()
Adds this syntax to the schema overwriting any existing syntax with the same numeric OID.
|
Syntax.Builder |
description(String description)
Sets the description.
|
Syntax.Builder |
extraProperties(Map<String,List<String>> extraProperties)
Adds the provided collection of extended properties.
|
T |
extraProperties(String extensionName,
List<String> extensionValues)
Adds the provided extended property.
|
Syntax.Builder |
extraProperties(String extensionName,
String... extensionValues)
Adds the provided extended property.
|
Syntax.Builder |
implementation(SyntaxImpl implementation)
Sets the syntax implementation.
|
Syntax.Builder |
oid(String oid)
Sets the numeric OID which uniquely identifies this syntax.
|
Syntax.Builder |
removeAllExtraProperties()
Removes all extra properties.
|
Syntax.Builder |
removeExtraProperty(String extensionName,
String... extensionValues)
Removes the specified extended property.
|
public SchemaBuilder addToSchema()
ConflictingSchemaElementException if there is an existing
syntax with the same numeric OID.ConflictingSchemaElementException - If there is an existing syntax with the same numeric OID.public SchemaBuilder addToSchemaOverwrite()
public Syntax.Builder description(String description)
description - The description, which may be null in which case
the empty string will be used.public Syntax.Builder extraProperties(Map<String,List<String>> extraProperties)
extraProperties - The collection of extended properties.public Syntax.Builder extraProperties(String extensionName, String... extensionValues)
extensionName - The name of the extended property.extensionValues - The optional list of values for the extended property.public Syntax.Builder oid(String oid)
oid - The numeric OID.public Syntax.Builder removeAllExtraProperties()
public Syntax.Builder removeExtraProperty(String extensionName, String... extensionValues)
extensionName - The name of the extended property.extensionValues - The optional list of values for the extended property,
which may be empty indicating that the entire property
should be removed.public Syntax.Builder implementation(SyntaxImpl implementation)
implementation - The syntax implementation.public T extraProperties(String extensionName, List<String> extensionValues)
extensionName - The name of the extended property.extensionValues - The optional list of values for the extended property.Copyright © 2011-2015 ForgeRock AS. All Rights Reserved.