public class Extension extends Object
For more detailed information please look at the SCIM core schema 2.0, section 4
| Modifier and Type | Class and Description |
|---|---|
static class |
Extension.Builder
Builder class that is used to build
Extension instances |
static class |
Extension.Field
This class represents a field of an extension with its type and value.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Extension()
Default constructor for Jackson
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
<T> T |
getField(String field,
ExtensionFieldType<T> extensionFieldType)
Return the value for the field with a given name and type.
|
boolean |
getFieldAsBoolean(String field)
Return the value for the field with a given name as boolean.
|
ByteBuffer |
getFieldAsByteBuffer(String field)
Return the value for the field with a given name as ByteBuffer.
|
Date |
getFieldAsDate(String field)
Return the value for the field with a given name as Date.
|
BigDecimal |
getFieldAsDecimal(String field)
Return the value for the field with a given name as BigDecimal.
|
BigInteger |
getFieldAsInteger(String field)
Return the value for the field with a given name as BigInteger.
|
URI |
getFieldAsReference(String field)
Return the value for the field with a given name as URI.
|
String |
getFieldAsString(String field)
Return the value for the field with a given name as String.
|
Map<String,Extension.Field> |
getFields()
Provides a
Map containing the entries of the extension. |
String |
getUrn()
Returns the URN of this extension.
|
int |
hashCode() |
boolean |
isFieldPresent(String field)
Checks if the given field is present in this extension because not every field is mandatory (according to scim
2.0 spec).
|
String |
toString() |
public String getUrn()
public <T> T getField(String field, ExtensionFieldType<T> extensionFieldType)
field - The name of the field to retrieve the value of.extensionFieldType - The type of the field.NoSuchElementException - if this schema does not contain a field of the given name.IllegalArgumentException - if the given field is null or an empty string or if the extensionFieldType is null.public String getFieldAsString(String field)
field - The name of the field to retrieve the value of.NoSuchElementException - if this schema does not contain a field of the given name.IllegalArgumentException - if the given field is null or an empty string or if the extensionFieldType is null.public boolean getFieldAsBoolean(String field)
field - The name of the field to retrieve the value of.NoSuchElementException - if this schema does not contain a field of the given name.IllegalArgumentException - if the given field is null or an empty string or if the extensionFieldType is null.public ByteBuffer getFieldAsByteBuffer(String field)
field - The name of the field to retrieve the value of.NoSuchElementException - if this schema does not contain a field of the given name.IllegalArgumentException - if the given field is null or an empty string or if the extensionFieldType is null.public Date getFieldAsDate(String field)
field - The name of the field to retrieve the value of.NoSuchElementException - if this schema does not contain a field of the given name.IllegalArgumentException - if the given field is null or an empty string or if the extensionFieldType is null.public BigDecimal getFieldAsDecimal(String field)
field - The name of the field to retrieve the value of.NoSuchElementException - if this schema does not contain a field of the given name.IllegalArgumentException - if the given field is null or an empty string or if the extensionFieldType is null.public BigInteger getFieldAsInteger(String field)
field - The name of the field to retrieve the value of.NoSuchElementException - if this schema does not contain a field of the given name.IllegalArgumentException - if the given field is null or an empty string or if the extensionFieldType is null.public URI getFieldAsReference(String field)
field - The name of the field to retrieve the value of.NoSuchElementException - if this schema does not contain a field of the given name.IllegalArgumentException - if the given field is null or an empty string or if the extensionFieldType is null.public Map<String,Extension.Field> getFields()
public boolean isFieldPresent(String field)
field - Name of the field to checkCopyright © 2014. All Rights Reserved.