com.atlassian.jira.rest.client.domain
Class AddressableNamedEntity

java.lang.Object
  extended by com.atlassian.jira.rest.client.domain.AddressableNamedEntity
All Implemented Interfaces:
AddressableEntity
Direct Known Subclasses:
BasicPriority, BasicResolution, BasicStatus

public class AddressableNamedEntity
extends Object
implements AddressableEntity

Any resource which is addressable (has "self" URI) and has a name.

Since:
v0.1

Field Summary
protected  String name
           
protected  URI self
           
 
Constructor Summary
AddressableNamedEntity(URI self, String name)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getName()
           
 URI getSelf()
           
protected  com.google.common.base.Objects.ToStringHelper getToStringHelper()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

self

protected final URI self

name

protected final String name
Constructor Detail

AddressableNamedEntity

public AddressableNamedEntity(URI self,
                              String name)
Method Detail

getSelf

public URI getSelf()
Specified by:
getSelf in interface AddressableEntity
Returns:
URI to this resource or (usually) its complete version - when partial representation is embedded in other resources

getName

public String getName()

toString

public String toString()
Overrides:
toString in class Object

getToStringHelper

protected com.google.common.base.Objects.ToStringHelper getToStringHelper()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2011 Atlassian Pty Ltd. All Rights Reserved.