public interface IMetaDataService
Gateway to Metadata information pertaining to an OpenPages model.
Modifier and Type | Method and Description |
---|---|
IFieldDefinition |
getField(Id id)
Returns a Field Definition by propertyid.
|
IFieldDefinition |
getField(java.lang.String systemName)
Returns the field definition with the specified system name.
|
IFileTypeDefinition |
getFileType(Id id)
Return a supported file type based on it's Id.
|
IFileTypeDefinition |
getFileType(java.lang.String extension)
Return a supported file type based on the file extension.
|
IFileTypeDefinition |
getFileType(java.lang.String extension,
java.lang.String mimeType)
Gets a file type from the set of all
possible file types defined in the OpenPages instance for a given mime type and extension combination.
|
IFileTypeDefinition |
getFileTypeByMimeType(java.lang.String mimeType)
Return a supported file type based on mime type.
|
ITypeDefinition |
getType(Id id)
Returns a type definition by id.
|
ITypeDefinition |
getType(java.lang.String systemName)
Returns the type definition with the specified system name.
|
java.util.List<ITypeDefinition> |
getTypes()
Gives access to a list of type definitions supported by the system.
|
java.util.List<ITypeDefinition> getTypes()
Gives access to a list of type definitions supported by the system.
ITypeDefinition getType(Id id)
Returns a type definition by id.
id
- of the type definition to return.IFieldDefinition getField(Id id)
Returns a Field Definition by propertyid.
propety
- idITypeDefinition getType(java.lang.String systemName)
Returns the type definition with the specified system name.
systemName
- of the type definition.IFieldDefinition getField(java.lang.String systemName)
Returns the field definition with the specified system name.
systemName
- the system name of the field definitionIFileTypeDefinition getFileType(java.lang.String extension)
Return a supported file type based on the file extension.
extension
- the file extensionIFileTypeDefinition getFileTypeByMimeType(java.lang.String mimeType)
Return a supported file type based on mime type.
mimeType
- the mime type to find.IFileTypeDefinition getFileType(Id id)
Return a supported file type based on it's Id.
id
- the id of the file type.IFileTypeDefinition getFileType(java.lang.String extension, java.lang.String mimeType)
Gets a file type from the set of all
possible file types defined in the OpenPages instance for a given mime type and extension combination.
May not be supported by a particular type that supports attachment. See the ITypeDefinition.getFileTypes()
for the list of file types that an object type supports attaching.
Examples of some common file types (format extension (mime type)):
Mime types are not unique, and there may be multiple instances of file types with the same mime type.
extension
- the file extension to find. e.g. "html", "xls" or "pdf". Note: The dot separator "." should not be included in the extension.mimeType
- the mime type to find. e.g. "image/jpeg", "application/msword", "text/html"ObjectNotFoundException
- if no file type found for the extension or mime type
Licensed Materials - Property of IBM
OpenPages with Watson (PID: 5725-D51)
© Copyright IBM Corporation 2013, 2020. All Rights Reserved.
US Government Users Restricted Rights -
Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.