|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.schema.Extensions
public class Extensions
Bean for an extension found in a schema element.
| Field Summary | |
|---|---|
protected static Pattern |
DEFINITION_PATTERN
Pattern to match attribute type definitions. |
| Constructor Summary | |
|---|---|
Extensions()
Creates a new extensions. |
|
Extensions(String name,
List<String> values)
Creates a new extensions. |
|
| Method Summary | |
|---|---|
void |
addExtension(String name)
Adds an extension. |
void |
addExtension(String name,
List<String> values)
Adds an extension. |
String |
format()
Returns this extension as formatted string per RFC 4512. |
Map<String,List<String>> |
getAllValues()
Returns all the values in this extensions. |
Set<String> |
getNames()
Returns the name. |
String |
getValue(String name)
Returns a single string value for the extension with the supplied name. |
List<String> |
getValues(String name)
Returns the values for the extension with the supplied name. |
int |
hashCode()
|
static Extensions |
parse(String definition)
Parses the supplied definition string and creates an initialized extension. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final Pattern DEFINITION_PATTERN
| Constructor Detail |
|---|
public Extensions()
public Extensions(String name,
List<String> values)
name - of a single extensionvalues - for that extension| Method Detail |
|---|
public Set<String> getNames()
public List<String> getValues(String name)
name - of the extension
public String getValue(String name)
getValues(String).
name - of the extension
public Map<String,List<String>> getAllValues()
public void addExtension(String name)
name - of the extension
public void addExtension(String name,
List<String> values)
name - of the extensionvalues - in the extensionpublic static Extensions parse(String definition)
definition - to parse
public String format()
public int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||