|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.irm.engine.content.schema.ContentSchemaCollectionFactory
public final class ContentSchemaCollectionFactory
Content Schema collection factory and utilities. This class provides methods for creating new instances of ContentSchema
collections as well as providing a number of collection based utility methods and fields. These methods are provided mainly for convenience and to provide a consistent way to create Content Schema collections. Methods that take collection parameters make no assumptions about what collection implementation is used, so the use of these factory style methods is at the developers discretion.
Field Summary | |
---|---|
static Collection<ContentSchema> |
EMPTY_CONTENT_SCHEMAS An empty Content Schema collection. |
Method Summary | |
---|---|
static Map<SchemaVersion,ContentSchema> |
contentSchemasAsMap(Collection<ContentSchema> collection) Create a map keyed on SchemaVersion from a collection of Content Schema elements. |
static Set<ContentSchema> |
contentSchemasAsSet(Collection<ContentSchema> collection) Create a set of Content Schema elements from a collection. |
static Collection<ContentSchema> |
copyContentSchemas(Collection<ContentSchema> collection) Create a shallow copy of a Content Schema collection. |
static Collection<ContentSchema> |
createContentSchemas(ContentSchema... elements) Create a Content Schema collection containing zero or more elements. |
static Collection<ContentSchema> |
createContentSchemas(int capacity) Create an empty Content Schema collection with a capacity specified. |
static ContentSchema |
getContentSchemaBySchemaVersion(Collection<ContentSchema> collection, SchemaVersion key) Get an element from a Content Schema collection by SchemaVersion. |
static Collection<ContentSchema> |
unmodifiableContentSchemas(Collection<ContentSchema> value) Create an immutable shallow copy of a Content Schema collection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Collection<ContentSchema> EMPTY_CONTENT_SCHEMAS
Method Detail |
---|
public static Collection<ContentSchema> createContentSchemas(ContentSchema... elements)
elements
- The elements to add into the collection.public static Collection<ContentSchema> createContentSchemas(int capacity)
capacity
- The initial collection capacity.public static Collection<ContentSchema> copyContentSchemas(Collection<ContentSchema> collection)
collection
- The collection to copy.public static Set<ContentSchema> contentSchemasAsSet(Collection<ContentSchema> collection)
collection
- The collection to copy.public static Collection<ContentSchema> unmodifiableContentSchemas(Collection<ContentSchema> value)
value
- The collection to copy.public static Map<SchemaVersion,ContentSchema> contentSchemasAsMap(Collection<ContentSchema> collection)
collection
- The collection to convert to a map.public static ContentSchema getContentSchemaBySchemaVersion(Collection<ContentSchema> collection, SchemaVersion key)
collection
- The collection.key
- The key.
|
Oracle® Information Rights Management Server Java API Reference 11g Release 1 (11.1.1) E12907-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |