|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.unboundid.scim.data.BaseResource
com.unboundid.scim.schema.ResourceDescriptor
public class ResourceDescriptor
This class provides methods that describe the schema for a SCIM resource. It may be used to help read and write SCIM objects in their external XML and JSON representation, and to convert SCIM objects to and from LDAP entries.
| Field Summary | |
|---|---|
static ResourceFactory<ResourceDescriptor> |
RESOURCE_DESCRIPTOR_FACTORY
A ResourceFactory for creating ResourceDescriptor
instances. |
| Fields inherited from class com.unboundid.scim.data.BaseResource |
|---|
BASE_RESOURCE_FACTORY |
| Method Summary | |
|---|---|
static ResourceDescriptor |
create(String name,
String description,
String schema,
String endpoint,
AttributeDescriptor... attributes)
Construct a new resource descriptor with the provided information. |
boolean |
equals(Object obj)
|
AttributeDescriptor |
getAttribute(String schema,
String name)
Retrieves the attribute descriptor for a specified attribute. |
Collection<AttributeDescriptor> |
getAttributes()
Retrieves the list of all attribute descriptors defined in the resource. |
Collection<AttributeDescriptor> |
getAttributes(String schema)
Retrieves all the attribute descriptors of the provided schema defined in the resource. |
Set<String> |
getAttributeSchemas()
Retrieves the set of unique schemas for the attribute descriptors defined in the resource. |
String |
getDescription()
Retrieves the resource's human readable description. |
String |
getEndpoint()
Retrieves the Resource's HTTP addressable endpoint relative to the Base URL. |
String |
getName()
Retrieve the name of the resource to be used in any external representation of the resource. |
String |
getSchema()
Returns the resource's XML schema (namespace) name. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class com.unboundid.scim.data.BaseResource |
|---|
getAttributeValues, getExternalId, getId, getMeta, getResourceDescriptor, getScimObject, getSingularAttributeValue, marshal, setAttributeValues, setExternalId, setId, setMeta, setSingularAttributeValue |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final ResourceFactory<ResourceDescriptor> RESOURCE_DESCRIPTOR_FACTORY
ResourceFactory for creating ResourceDescriptor
instances.
| Method Detail |
|---|
public AttributeDescriptor getAttribute(String schema,
String name)
throws InvalidResourceException
schema - The attribute descriptor's associated schema URN.name - The name of the attribute whose descriptor is to be retrieved.
InvalidResourceException - if there is no such attribute.public Collection<AttributeDescriptor> getAttributes(String schema)
schema - The name of the schema.
public Set<String> getAttributeSchemas()
public String getName()
null.public Collection<AttributeDescriptor> getAttributes()
null.public String getSchema()
public String getDescription()
public String getEndpoint()
public int hashCode()
hashCode in class BaseResourcepublic boolean equals(Object obj)
equals in class BaseResourcepublic String toString()
BaseResource
toString in class BaseResource
public static ResourceDescriptor create(String name,
String description,
String schema,
String endpoint,
AttributeDescriptor... attributes)
name - The addressable Resource endpoint name.description - The Resource's human readable description.schema - The Resource's associated schema URNendpoint - The Resource's HTTP addressable endpoint relative
to the Base URL.attributes - Specifies the set of associated Resource attributes.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||