@Test public void getMetadataTypeById() { Assert.assertNotNull(service.getMetadataTypeById( "http: "platformNumber")); }
public MetadataType getMetadataTypeById(final String item_class_uri, final String type_identifier) { if (item_class_uri == null) { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Cannot get a metadata type with a null item class" + " URI."); } return null; } if (type_identifier == null) { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Cannot get a metadata type with a null type" + " identifier."); } return null; } final ItemClassMetadataTypes item_class_index = this.mapItemClassByUri.get(item_class_uri); if (item_class_index == null) { return null; } return item_class_index.getTypeById(type_identifier); }
MetadataTypeService { public MetadataType getMetadataTypeById(final String item_class_uri, final String type_identifier) { if (item_class_uri == null) { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Cannot get a metadata type with a null item class" + " URI."); } return null; } if (type_identifier == null) { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Cannot get a metadata type with a null type" + " identifier."); } return null; } final ItemClassMetadataTypes item_class_index = this.mapItemClassByUri.get(item_class_uri); if (item_class_index == null) { return null; } return item_class_index.getTypeById(type_identifier); } }
MetadataTypeService { public MetadataType getMetadataTypeById(final String item_class_uri, final String type_identifier) { if (item_class_uri == null) { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Cannot get a metadata type with a null item class" + " URI."); } return null; } if (type_identifier == null) { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Cannot get a metadata type with a null type" + " identifier."); } return null; } final ItemClassMetadataTypes item_class_index = this.mapItemClassByUri.get(item_class_uri); if (item_class_index == null) { return null; } return item_class_index.getTypeById(type_identifier); } MetadataTypeService(); }
MetadataTypeService { public MetadataType getMetadataTypeById(final String item_class_uri, final String type_identifier) { if (item_class_uri == null) { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Cannot get a metadata type with a null item class" + " URI."); } return null; } if (type_identifier == null) { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Cannot get a metadata type with a null type" + " identifier."); } return null; } final ItemClassMetadataTypes item_class_index = this.mapItemClassByUri.get(item_class_uri); if (item_class_index == null) { return null; } return item_class_index.getTypeById(type_identifier); } MetadataTypeService(); MetadataType getMetadataTypeById(final String item_class_uri,
         final String type_identifier); MetadataType getMetadataTypeByName(final String item_class_uri,
         final String type_name); Map<String, SolrField> getSolrFields(); }
MetadataTypeService { public MetadataType getMetadataTypeById(final String item_class_uri, final String type_identifier) { if (item_class_uri == null) { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Cannot get a metadata type with a null item class" + " URI."); } return null; } if (type_identifier == null) { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Cannot get a metadata type with a null type" + " identifier."); } return null; } final ItemClassMetadataTypes item_class_index = this.mapItemClassByUri.get(item_class_uri); if (item_class_index == null) { return null; } return item_class_index.getTypeById(type_identifier); } MetadataTypeService(); MetadataType getMetadataTypeById(final String item_class_uri,
         final String type_identifier); MetadataType getMetadataTypeByName(final String item_class_uri,
         final String type_name); Map<String, SolrField> getSolrFields(); final static String DHUS_NAMESPACE; final static String METADATA_TYPES_PROPERTY; final static String METADATA_TYPES_ELEMENT_NAME; }