pl.slawas.diffs
Class TraceAnnotationFactory

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

public class TraceAnnotationFactory
extends java.lang.Object
implements AnnotationFactory

TraceAnnotationFactory - fabryka przetwarzajaca annotacje Trace.class

Version:
$Revision: 1.1 $
Author:
Slawomir Cichy <slawas@slawas.pl>
See Also:
Trace, AnnotationFactory

Field Summary
static java.lang.String DEFAULT_FIELD_NAME
          domyslna wartosc dla atrybutu nazwy pola w annotacji Trace.class, bedacej wskaznikiem na w dynamicznej liscie etykiet.
 
Fields inherited from interface pl.slawas.diffs.AnnotationFactory
DEFAULT_LABEL, DEFAULT_REFERENCED_FIELD_NAME
 
Constructor Summary
TraceAnnotationFactory()
           
 
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_FIELD_NAME

public static final java.lang.String DEFAULT_FIELD_NAME
domyslna wartosc dla atrybutu nazwy pola w annotacji Trace.class, bedacej wskaznikiem na w dynamicznej liscie etykiet.

See Also:
Trace.labelKey(), Constant Field Values
Constructor Detail

TraceAnnotationFactory

public TraceAnnotationFactory()
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.