com.sun.xml.bind.v2.model.impl

Class GetterSetterPropertySeed<TypeT,ClassDeclT,FieldT,MethodT>

class GetterSetterPropertySeed<TypeT,ClassDeclT,FieldT,MethodT> extends Object implements PropertySeed<TypeT,ClassDeclT,FieldT,MethodT>

PropertyInfo implementation backed by a getter and a setter. We allow the getter or setter to be null, in which case the bean can only participate in unmarshalling (or marshalling)
Field Summary
protected MethodTgetter
protected MethodTsetter
Constructor Summary
GetterSetterPropertySeed(ClassInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> parent, MethodT getter, MethodT setter)
Method Summary
LocationgetLocation()
StringgetName()
TypeTgetRawType()
LocatablegetUpstream()
Use the enclosing class as the upsream Location.
booleanhasAnnotation(Class<? extends Annotation> annotationType)
<A extends Annotation> AreadAnnotation(Class<A> annotation)

Field Detail

getter

protected final MethodT getter

setter

protected final MethodT setter

Constructor Detail

GetterSetterPropertySeed

GetterSetterPropertySeed(ClassInfoImpl<TypeT,ClassDeclT,FieldT,MethodT> parent, MethodT getter, MethodT setter)

Method Detail

getLocation

public Location getLocation()

getName

public String getName()

getRawType

public TypeT getRawType()

getUpstream

public Locatable getUpstream()
Use the enclosing class as the upsream Location.

hasAnnotation

public boolean hasAnnotation(Class<? extends Annotation> annotationType)

readAnnotation

public <A extends Annotation> A readAnnotation(Class<A> annotation)