public class ODataLinkDefaultImpl extends java.lang.Object implements ODataLink
ODataLink
.ODataPayload.Type
Constructor and Description |
---|
ODataLinkDefaultImpl(java.lang.String path)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAnnotation(AnnotationName name)
Returns the annotation value specified by the given fully qualified local annotation name.
|
java.lang.String |
getAnnotation(java.lang.String namespace,
java.lang.String name)
Returns the annotation value specified by the given local annotation namespace and localname.
|
java.util.Set<AnnotationName> |
getAnnotationNames()
Returns a set of fully qualified local annotation names.
|
java.lang.String |
getResourcePath()
Returns the relative path of the resource which is to be interpreted relative to the base URL of the service.
|
int |
hashCode() |
public ODataLinkDefaultImpl(java.lang.String path)
path
- public java.lang.String getResourcePath()
ODataLink
getResourcePath
in interface ODataLink
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.util.Set<AnnotationName> getAnnotationNames()
ODataLink
getAnnotationNames
in interface ODataLink
public java.lang.String getAnnotation(AnnotationName name)
ODataLink
getAnnotation
in interface ODataLink
name
- fully qualified local annotation namepublic java.lang.String getAnnotation(java.lang.String namespace, java.lang.String name)
ODataLink
getAnnotation
in interface ODataLink
namespace
- annotation namespace, can be nullname
- annotation local name. It MUST be non-null, otherwise NullPointerException is thrown