pl.slawas.diffs
Class PropertyAnnotationFactory

java.lang.Object
  extended by pl.slawas.diffs.PropertyAnnotationFactory
All Implemented Interfaces:
AnnotationFactory

public class PropertyAnnotationFactory
extends java.lang.Object
implements AnnotationFactory

PropertyAnnotationFactory - fabryka obslugujaca annotacje Property.class

Version:
$Revision: 1.1 $
Author:
Slawomir Cichy <slawas@slawas.pl>
See Also:
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

DEFAULT_KEY

public static final java.lang.String DEFAULT_KEY
domyslna wartosc dla atrybutu nazwy klucza w annotacji Property.class.

See Also:
Property.key(), Constant Field Values
Constructor Detail

PropertyAnnotationFactory

public PropertyAnnotationFactory()
Method Detail

getAnnotation

public java.lang.Class<? extends java.lang.annotation.Annotation> getAnnotation()
Description copied from interface: AnnotationFactory
Zwraca klase annotacji, dla ktorej zdefiniowano bean-a spelniajacego ten interfejs.

Specified by:
getAnnotation in interface AnnotationFactory
Returns:
klasa annotacji

getLabel

public java.lang.String getLabel(java.lang.reflect.Field field)
Description copied from interface: AnnotationFactory
Zwraca etykiete pola na potrzeby porownania pol roznych obiektow.

Specified by:
getLabel in interface AnnotationFactory
Parameters:
field - pole obiektu z annotacja
Returns:
etykieta

getLabel

public java.lang.String getLabel(java.util.Hashtable<java.lang.String,java.lang.String> labelList,
                                 java.lang.String parentLabel,
                                 java.lang.reflect.Field field)
Description copied from interface: AnnotationFactory
Zwraca etykiete pola na potrzeby porownania pol roznych obiektow.

Specified by:
getLabel in interface AnnotationFactory
Parameters:
labelList - dynamiczna lista etykiet dla pol
parentLabel - etykieta pola nadrzednego
field - pole obiektu z annotacja
Returns:
etykieta pola

getReferencedFieldName

public java.lang.String getReferencedFieldName(java.lang.reflect.Field field)
Description copied from interface: AnnotationFactory
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). Jezeli taki atrybut nie bedzie zdefiniowany, klasa sledzaca nie bedzie mogla poprawnie porownac list (wektorow) ze wzgledu na mozliwa ROZNA kolejnosc takich samych elementow.

Specified by:
getReferencedFieldName in interface AnnotationFactory
Parameters:
field - pole obiektu z annotacja
Returns:
nazw pola charakteryzujacego unikalnosc obiektu


Copyright © 2014 Sci Software. All Rights Reserved.