Class MetadataRepositoryImpl

java.lang.Object
org.kuali.rice.krad.data.metadata.impl.MetadataRepositoryImpl
All Implemented Interfaces:
MetadataRepository

public class MetadataRepositoryImpl extends Object implements MetadataRepository
MetadataRepository implementation backed by the ProviderRegistry
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Constructor Details

    • MetadataRepositoryImpl

      public MetadataRepositoryImpl()
  • Method Details

    • setProviderRegistry

      public void setProviderRegistry(ProviderRegistry registry)
    • getMetadata

      public DataObjectMetadata getMetadata(Class<?> type)
      Description copied from interface: MetadataRepository
      Obtain metadata for specified data object type.
      Specified by:
      getMetadata in interface MetadataRepository
      Parameters:
      type - the data object type for which to return metadata
      Returns:
      DataObjectMetadata for the type or null if none is known
    • getAllMetadata

      public Map<Class<?>,DataObjectMetadata> getAllMetadata()
      Description copied from interface: MetadataRepository
      Returns all metadata for all known data object types.
      Specified by:
      getAllMetadata in interface MetadataRepository
      Returns:
      all metadata for all known data object types
    • contains

      public boolean contains(Class<?> type)
      Description copied from interface: MetadataRepository
      Indicates whether or not the repository contains metadata for the given type.
      Specified by:
      contains in interface MetadataRepository
      Parameters:
      type - the type to check metadata for
      Returns:
      true if the repository contains metadata for the given type, false otherwise