public interface CollectionElementDefinition
Represents a collection element.
| Modifier and Type | Method and Description |
|---|---|
CollectionDefinition |
getCollectionDefinition()
Returns the collection definition.
|
Type |
getType()
Returns the collection element type.
|
AnyMappingDefinition |
toAnyMappingDefinition()
|
CompositeCollectionElementDefinition |
toCompositeElementDefinition()
If the element type returned by
getType() is a
CompositeType, then the composite
element definition for the collection element is returned;
otherwise, IllegalStateException is thrown. |
EntityDefinition |
toEntityDefinition()
If the element type returned by
getType() is an
EntityType, then the entity
definition for the collection element is returned;
otherwise, IllegalStateException is thrown. |
CollectionDefinition getCollectionDefinition()
Returns the collection definition.
Type getType()
Returns the collection element type.
AnyMappingDefinition toAnyMappingDefinition()
If the element type returned by getType() is an
AnyType, then the any mapping
definition for the collection element is returned;
otherwise, IllegalStateException is thrown.
IllegalStateException - if the collection element type
returned by getType() is not of type
AnyType.EntityDefinition toEntityDefinition()
If the element type returned by getType() is an
EntityType, then the entity
definition for the collection element is returned;
otherwise, IllegalStateException is thrown.
IllegalStateException - if the collection element type
returned by getType() is not of type
EntityType.CompositeCollectionElementDefinition toCompositeElementDefinition()
If the element type returned by getType() is a
CompositeType, then the composite
element definition for the collection element is returned;
otherwise, IllegalStateException is thrown.
IllegalStateException - if the collection element type
returned by getType() is not of type
CompositeType.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.