org.codehaus.enunciate.contract.jaxb
Class AccessorFilter

java.lang.Object
  extended by org.codehaus.enunciate.contract.jaxb.AccessorFilter

public class AccessorFilter
extends java.lang.Object

Filter for potential accessors.

Author:
Ryan Heaton

Constructor Summary
AccessorFilter(javax.xml.bind.annotation.XmlAccessType accessType)
           
 
Method Summary
 boolean accept(com.sun.mirror.declaration.MemberDeclaration declaration)
          Whether to accept the given member declaration as an accessor.
protected  boolean explicitlyDeclaredAccessor(com.sun.mirror.declaration.MemberDeclaration declaration)
          Whether the specified member declaration is explicitly declared to be an accessor.
 javax.xml.bind.annotation.XmlAccessType getAccessType()
          The access type for this filter.
protected  boolean isXmlTransient(com.sun.mirror.declaration.Declaration declaration)
          Whether a declaration is xml transient.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessorFilter

public AccessorFilter(javax.xml.bind.annotation.XmlAccessType accessType)
Method Detail

getAccessType

public javax.xml.bind.annotation.XmlAccessType getAccessType()
The access type for this filter.

Returns:
The access type for this filter.

accept

public boolean accept(com.sun.mirror.declaration.MemberDeclaration declaration)
Whether to accept the given member declaration as an accessor.

Parameters:
declaration - The declaration to filter.
Returns:
Whether to accept the given member declaration as an accessor.

explicitlyDeclaredAccessor

protected boolean explicitlyDeclaredAccessor(com.sun.mirror.declaration.MemberDeclaration declaration)
Whether the specified member declaration is explicitly declared to be an accessor.

Parameters:
declaration - The declaration to check whether it is explicitly declared to be an accessor.
Returns:
Whether the specified member declaration is explicitly declared to be an accessor.

isXmlTransient

protected boolean isXmlTransient(com.sun.mirror.declaration.Declaration declaration)
Whether a declaration is xml transient.

Parameters:
declaration - The declaration on which to determine xml transience.
Returns:
Whether a declaration is xml transient.