org.apache.abdera.ext.serializer
Class AbstractConventions

java.lang.Object
  extended by org.apache.abdera.ext.serializer.AbstractConventions
All Implemented Interfaces:
Serializable, Cloneable, Iterable<Class<? extends Annotation>>, Conventions
Direct Known Subclasses:
DefaultConventions

public abstract class AbstractConventions
extends Object
implements Conventions, Cloneable, Serializable

See Also:
Serialized Form

Constructor Summary
protected AbstractConventions()
           
protected AbstractConventions(boolean isCaseSensitive)
           
 
Method Summary
 Conventions clone()
           
protected  Conventions copy()
           
 boolean equals(Object obj)
           
 int hashCode()
           
 boolean isMatch(AccessibleObject accessor, Class<? extends Annotation> expect)
           
 Iterator<Class<? extends Annotation>> iterator()
           
 Class<? extends Annotation> matchConvention(AccessibleObject accessor)
           
 Class<? extends Annotation> matchConvention(AccessibleObject accessor, Class<? extends Annotation> expect)
           
 void setConvention(Class<? extends Annotation> annotationType)
           
 void setConvention(String pattern, Class<? extends Annotation> annotationType)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractConventions

protected AbstractConventions()

AbstractConventions

protected AbstractConventions(boolean isCaseSensitive)
Method Detail

iterator

public Iterator<Class<? extends Annotation>> iterator()
Specified by:
iterator in interface Iterable<Class<? extends Annotation>>

setConvention

public void setConvention(String pattern,
                          Class<? extends Annotation> annotationType)
Specified by:
setConvention in interface Conventions

setConvention

public void setConvention(Class<? extends Annotation> annotationType)
Specified by:
setConvention in interface Conventions

matchConvention

public Class<? extends Annotation> matchConvention(AccessibleObject accessor)
Specified by:
matchConvention in interface Conventions

matchConvention

public Class<? extends Annotation> matchConvention(AccessibleObject accessor,
                                                   Class<? extends Annotation> expect)
Specified by:
matchConvention in interface Conventions

isMatch

public boolean isMatch(AccessibleObject accessor,
                       Class<? extends Annotation> expect)
Specified by:
isMatch in interface Conventions

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

clone

public Conventions clone()
Specified by:
clone in interface Conventions
Overrides:
clone in class Object

copy

protected Conventions copy()


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.