|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.slawas.diffs.PropertyAnnotationFactory
public class PropertyAnnotationFactory
PropertyAnnotationFactory - fabryka obslugujaca annotacje Property.class
Property
,
AnnotationFactory
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_KEY
domyslna wartosc dla atrybutu nazwy klucza w annotacji Property.class. |
Fields inherited from interface pl.slawas.diffs.AnnotationFactory |
---|
DEFAULT_LABEL, DEFAULT_REFERENCED_FIELD_NAME |
Constructor Summary | |
---|---|
PropertyAnnotationFactory()
|
Method Summary | |
---|---|
java.lang.Class<? extends java.lang.annotation.Annotation> |
getAnnotation()
Zwraca klase annotacji, dla ktorej zdefiniowano bean-a spelniajacego ten interfejs. |
java.lang.String |
getLabel(java.lang.reflect.Field field)
Zwraca etykiete pola na potrzeby porownania pol roznych obiektow. |
java.lang.String |
getLabel(java.util.Hashtable<java.lang.String,java.lang.String> labelList,
java.lang.String parentLabel,
java.lang.reflect.Field field)
Zwraca etykiete pola na potrzeby porownania pol roznych obiektow. |
java.lang.String |
getReferencedFieldName(java.lang.reflect.Field field)
Zwraca nazwe pola w obiekcie definiujacym pole, ktora wskazuje na pole z unikalna wartosa charakteryzujaca obiekt znajdujacy sie w liscie (java.util.List) lub wektorze (java.util.Vector). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_KEY
Property.key()
,
Constant Field ValuesConstructor Detail |
---|
public PropertyAnnotationFactory()
Method Detail |
---|
public java.lang.Class<? extends java.lang.annotation.Annotation> getAnnotation()
AnnotationFactory
getAnnotation
in interface AnnotationFactory
public java.lang.String getLabel(java.lang.reflect.Field field)
AnnotationFactory
getLabel
in interface AnnotationFactory
field
- pole obiektu z annotacja
public java.lang.String getLabel(java.util.Hashtable<java.lang.String,java.lang.String> labelList, java.lang.String parentLabel, java.lang.reflect.Field field)
AnnotationFactory
getLabel
in interface AnnotationFactory
labelList
- dynamiczna lista etykiet dla polparentLabel
- etykieta pola nadrzednegofield
- pole obiektu z annotacja
public java.lang.String getReferencedFieldName(java.lang.reflect.Field field)
AnnotationFactory
getReferencedFieldName
in interface AnnotationFactory
field
- pole obiektu z annotacja
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |