public interface MetadataProvider
MetadataFilter
, implementation may make changes to the retrieved metadata
that make it unusable for marshalling. For example, by removing elements required by the schema but not by the user
of the provider as a way of saving on memory.Modifier and Type | Method and Description |
---|---|
EntitiesDescriptor |
getEntitiesDescriptor(String name)
Gets a valid named EntitiesDescriptor from the metadata.
|
EntityDescriptor |
getEntityDescriptor(String entityID)
Gets the valid metadata for a given entity.
|
XMLObject |
getMetadata()
Gets the valid metadata tree, after the registered filter has been applied.
|
MetadataFilter |
getMetadataFilter()
Gets the metadata filter applied to the metadata.
|
List<RoleDescriptor> |
getRole(String entityID,
QName roleName)
Gets the valid role descriptors of a given type for a given entity.
|
RoleDescriptor |
getRole(String entityID,
QName roleName,
String supportedProtocol)
Gets the valid role descriptors of a given type for a given entity that support the given protocol.
|
boolean |
requireValidMetadata()
Gets whether the metadata returned by queries must be valid.
|
void |
setMetadataFilter(MetadataFilter newFilter)
Sets the metadata filter applied to the metadata.
|
void |
setRequireValidMetadata(boolean requireValidMetadata)
Sets whether the metadata returned by queries must be valid.
|
boolean requireValidMetadata()
void setRequireValidMetadata(boolean requireValidMetadata)
requireValidMetadata
- whether the metadata returned by queries must be validMetadataFilter getMetadataFilter()
void setMetadataFilter(MetadataFilter newFilter) throws MetadataProviderException
newFilter
- the metadata filter applied to the metadataMetadataProviderException
- thrown if the provider can not apply the filter to the metadataXMLObject getMetadata() throws MetadataProviderException
MetadataProviderException
- thrown if the provider can not fetch the metadata, must not be thrown simply if
there is no metadata to fetchEntitiesDescriptor getEntitiesDescriptor(String name) throws MetadataProviderException
name
- the name of the EntitiesDescriptorMetadataProviderException
- thrown if the provider can not fetch the metadata, must not be thrown if there
is simply no EntitiesDescriptor with the given nameEntityDescriptor getEntityDescriptor(String entityID) throws MetadataProviderException
entityID
- the ID of the entityMetadataProviderException
- thrown if the provider can not fetch the metadata, must not be thrown if there
is simply no EntityDescriptor with the given IDList<RoleDescriptor> getRole(String entityID, QName roleName) throws MetadataProviderException
entityID
- the ID of the entityroleName
- the role typeMetadataProviderException
- thrown if the provider can not fetch the metadata, must not be thrown if there
is simply no such entity with the given rolesRoleDescriptor getRole(String entityID, QName roleName, String supportedProtocol) throws MetadataProviderException
entityID
- the ID of the entityroleName
- the role typesupportedProtocol
- the protocol supported by the roleMetadataProviderException
- thrown if the provider can not fetch the metadata, must not be thrown if there
is simply no such entity with the given role supporting the given protocolCopyright © 2018 JBoss by Red Hat. All rights reserved.