public class ClassPropertyKey
extends java.lang.Object
Class describes the "point of access" to an object property. It means that this class itself doesn't have any restrictions, it just contains the link to the class and the "id of a property". Which exactly property is described is decided by the specific performed. Note again: the same key might describe different "properties" depending on the specific performer!
Class is created to underline the fact that all "properties" of an object cannot be directly pointed only by an id (or name), the class declared the "property" is also required.
Note: The keys have single resctriction: declaring class cannot be primitive. Primitives cannot declare any properties, so it is completely pointless to have a key for one.
| Constructor and Description |
|---|
ClassPropertyKey(java.lang.Object id,
java.lang.Class<?> declaringClass) |
ClassPropertyKey(java.lang.String name)
Declaring class set as
null. |
ClassPropertyKey(java.lang.String name,
java.lang.Class<?> declaringClass) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object object) |
java.lang.Class<?> |
getDeclaringClass() |
java.lang.Object |
getId() |
int |
hashCode() |
java.lang.String |
toString() |
public ClassPropertyKey(java.lang.String name)
null. Basically this is means: "any property of this name".public ClassPropertyKey(java.lang.String name,
java.lang.Class<?> declaringClass)
public ClassPropertyKey(java.lang.Object id,
java.lang.Class<?> declaringClass)
public java.lang.Object getId()
public java.lang.Class<?> getDeclaringClass()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object