|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.api.config.domain.PropertyLocation
public final class PropertyLocation
Identifies the location of a property.
Constructor Summary | |
---|---|
PropertyLocation(ApplicationId applicationId, String path) Default constructor. |
|
PropertyLocation(String path) Convenience constructor if no application identifier is available. |
Method Summary | |
---|---|
int |
compareTo(PropertyLocation o) |
boolean |
equals(Object object) Returns true if the given object is semantically equal to the given object, false otherwise. |
ApplicationId |
getApplicationId() Returns the identifier of the application archive that contains the property. |
String |
getPath() Returns the identifier of the property location within the application. |
int |
hashCode() Returns the hash code of the object. |
String |
toString() Returns the string representation of the object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PropertyLocation(String path) throws IllegalArgumentException
path
- the identifier of the property location within the application.
IllegalArgumentException
- if
path
is
null
.
public PropertyLocation(ApplicationId applicationId, String path) throws IllegalArgumentException
applicationId
- the identifier of the application archive that contains the property.
path
- the identifier of the property location within the application.
IllegalArgumentException
- if
path
is
null
.
Method Detail |
---|
@CheckForNull public ApplicationId getApplicationId()
null
if no archive contains the information. This is e.g. the case if the property is provided by a data source or other external information system.
null
.
public String getPath()
archive
.
This value must not be null
.
public int compareTo(PropertyLocation o)
compareTo
in interface
Comparable<PropertyLocation>
public int hashCode()
hashCode
in class
Object
public boolean equals(Object object)
true
if the given object is semantically equal to the given object,
false
otherwise.
equals
in class
Object
object
- the instance to compare to.
true
if the given object is semantically equal to the given object,
false
otherwise.
public String toString()
toString
in class
Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |