public DatasetTypeId datasetType(String type) { return new DatasetTypeId(namespace, type); }
public DatasetTypeId datasetType(String type) { return new DatasetTypeId(namespace, type); }
static DatasetTypeId toDatasetTypeId(String namespace, String typeName) throws BadRequestException { try { return new DatasetTypeId(namespace, typeName); } catch (IllegalArgumentException | NullPointerException e) { throw new BadRequestException(e.getMessage()); } }
static DatasetTypeId toDatasetTypeId(String namespace, String typeName) throws BadRequestException { try { return new DatasetTypeId(namespace, typeName); } catch (IllegalArgumentException | NullPointerException e) { throw new BadRequestException(e.getMessage()); } }
@Override public DatasetTypeId toEntityId() { return new DatasetTypeId(namespace.getId(), typeName); } }
static DatasetTypeId toDatasetTypeId(NamespaceId namespace, String typeName) throws BadRequestException { try { return new DatasetTypeId(namespace.getNamespace(), typeName); } catch (IllegalArgumentException | NullPointerException e) { throw new BadRequestException(e.getMessage()); } }
@SuppressWarnings("unused") public static DatasetTypeId fromIdParts(Iterable<String> idString) { Iterator<String> iterator = idString.iterator(); return new DatasetTypeId(next(iterator, "namespace"), nextAndEnd(iterator, "type")); }
@SuppressWarnings("unused") public static DatasetTypeId fromIdParts(Iterable<String> idString) { Iterator<String> iterator = idString.iterator(); return new DatasetTypeId(next(iterator, "namespace"), nextAndEnd(iterator, "type")); }
static DatasetTypeId toDatasetTypeId(NamespaceId namespace, String typeName) throws BadRequestException { try { return new DatasetTypeId(namespace.getNamespace(), typeName); } catch (IllegalArgumentException | NullPointerException e) { throw new BadRequestException(e.getMessage()); } }