ArtifactId.@Deprecated public static class Id.Artifact extends Id.NamespacedId implements Comparable<Id.Artifact>
Id.Application, Id.Artifact, Id.DatasetInstance, Id.DatasetModule, Id.DatasetType, Id.Flow, Id.Namespace, Id.NamespacedId, Id.NotificationFeed, Id.Program, Id.QueryHandle, Id.Run, Id.Schedule, Id.Service, Id.Stream, Id.SystemService, Id.Worker, Id.Workflow| Constructor and Description |
|---|
Id.Artifact(Id.Namespace namespace,
String name,
ArtifactVersion version)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Id.Artifact o)
Deprecated.
|
static Id.Artifact |
from(Id.Namespace namespace,
ArtifactId id)
Deprecated.
|
static Id.Artifact |
from(Id.Namespace namespace,
String name,
ArtifactVersion version)
Deprecated.
|
static Id.Artifact |
from(Id.Namespace namespace,
String name,
String version)
Deprecated.
|
String |
getId()
Deprecated.
|
String |
getName()
Deprecated.
|
Id.Namespace |
getNamespace()
Deprecated.
|
ArtifactVersion |
getVersion()
Deprecated.
|
static boolean |
isValidName(String name)
Deprecated.
|
static Id.Artifact |
parse(Id.Namespace namespace,
String fileName)
Deprecated.
Parses a string expected to be of the form {name}-{version}.jar into an
Id.Artifact,
where name is a valid id and version is of the form expected by ArtifactVersion. |
ArtifactId |
toArtifactId()
Deprecated.
|
ArtifactId |
toEntityId()
Deprecated.
|
public Id.Artifact(Id.Namespace namespace, String name, ArtifactVersion version)
public Id.Namespace getNamespace()
getNamespace in class Id.NamespacedIdpublic String getName()
public ArtifactVersion getVersion()
public ArtifactId toArtifactId()
public static Id.Artifact from(Id.Namespace namespace, String name, String version)
public static Id.Artifact from(Id.Namespace namespace, String name, ArtifactVersion version)
public static Id.Artifact from(Id.Namespace namespace, ArtifactId id)
public static Id.Artifact parse(Id.Namespace namespace, String fileName)
Id.Artifact,
where name is a valid id and version is of the form expected by ArtifactVersion.namespace - the namespace to usefileName - the string to parseId.ArtifactIllegalArgumentException - if the string is not in the expected formatpublic static boolean isValidName(String name)
public int compareTo(Id.Artifact o)
compareTo in interface Comparable<Id.Artifact>public ArtifactId toEntityId()
toEntityId in interface EntityIdCompatibleEntityId corresponding to thisCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.