fmeobjects.FMELibrary.hasType

FMELibrary.hasType()

hasType(reference),

Returns the Library Type (FME_LIB_APPEARANCE, FME_LIB_TEXTURE, FME_LIB_RASTER, or FME_LIB_GEOMETRY_DEFINITION) if library has an object with the specified reference number. Throws an exception if the supplied reference refers to an object without a valid object type, or if there is no object within the Library with the supplied reference number. Use hasEntry() to determine if the library contains the specified reference.

Parameters

reference (int) – The reference to search the library for.

Return type

int

Returns

If the library has an object with the specified reference number the Library Type (FME_LIB_APPEARANCE, FME_LIB_TEXTURE, FME_LIB_RASTER, or FME_LIB_GEOMETRY_DEFINITION) is returned, otherwise an exception is thrown.

Raises

FMEException – An exception is raised if an error occurred.