Package org.ldaptive.schema
Class Extensions
java.lang.Object
org.ldaptive.schema.Extensions
Bean for an extension found in a schema element.
-
Field Summary
FieldsModifier and TypeFieldDescriptionExtensions.private static final int
hash code seed. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new extensions.Extensions
(String name, List<String> values) Creates a new extensions. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addExtension
(String name) Adds an extension.void
addExtension
(String name, List<String> values) Adds an extension.boolean
format()
Returns this extension as formatted string per RFC 4512.Returns all the values in this extensions.getNames()
Returns the name.Returns a single string value for the extension with the supplied name.Returns the values for the extension with the supplied name.int
hashCode()
boolean
isEmpty()
Returns whether the number of extensions is zero.int
size()
Returns the number of extensions in the underlying map.toString()
-
Field Details
-
HASH_CODE_SEED
private static final int HASH_CODE_SEEDhash code seed.- See Also:
-
extensions
Extensions.
-
-
Constructor Details
-
Extensions
public Extensions()Creates a new extensions. -
Extensions
Creates a new extensions.- Parameters:
name
- of a single extensionvalues
- for that extension
-
-
Method Details
-
getNames
Returns the name.- Returns:
- name
-
getValues
Returns the values for the extension with the supplied name.- Parameters:
name
- of the extension- Returns:
- values
-
getValue
Returns a single string value for the extension with the supplied name. SeegetValues(String)
.- Parameters:
name
- of the extension- Returns:
- single string extension value
-
getAllValues
Returns all the values in this extensions.- Returns:
- map of name to values for every extension
-
addExtension
Adds an extension.- Parameters:
name
- of the extension
-
addExtension
Adds an extension.- Parameters:
name
- of the extensionvalues
- in the extension
-
size
public int size()Returns the number of extensions in the underlying map.- Returns:
- number of extensions
-
isEmpty
public boolean isEmpty()Returns whether the number of extensions is zero.- Returns:
- whether the number of extensions is zero
-
format
Returns this extension as formatted string per RFC 4512.- Returns:
- formatted string
-
equals
-
hashCode
public int hashCode() -
toString
-