org.hibernate.property

Class Dom4jAccessor

Implemented Interfaces:
PropertyAccessor

public class Dom4jAccessor
extends java.lang.Object
implements PropertyAccessor

Responsible for accessing property values represented as a dom4j Element or Attribute.
Author:
Steve Ebersole

Nested Class Summary

static class
Dom4jAccessor.AttributeGetter
For nodes like "@bar"
static class
Dom4jAccessor.AttributeSetter
For nodes like "@bar"
static class
Dom4jAccessor.Dom4jGetter
Defines the strategy for getting property values out of a dom4j Node.
static class
Dom4jAccessor.Dom4jSetter
static class
Dom4jAccessor.ElementAttributeGetter
For nodes like "foo/@bar"
static class
Dom4jAccessor.ElementAttributeSetter
For nodes like "foo/@bar"
static class
Dom4jAccessor.ElementGetter
For nodes like "foo"
static class
Dom4jAccessor.ElementSetter
For nodes like "foo"
static class
Dom4jAccessor.TextGetter
For nodes like "."
static class
Dom4jAccessor.TextSetter
For nodes like "."

Constructor Summary

Dom4jAccessor(String nodeName, Type propertyType, SessionFactoryImplementor factory)

Method Summary

Getter
getGetter(Class theClass, String propertyName)
Create a "getter" for the named attribute
Setter
getSetter(Class theClass, String propertyName)
Create a "setter" for the named attribute

Constructor Details

Dom4jAccessor

public Dom4jAccessor(String nodeName,
                     Type propertyType,
                     SessionFactoryImplementor factory)

Method Details

getGetter

public Getter getGetter(Class theClass,
                        String propertyName)
            throws PropertyNotFoundException
Create a "getter" for the named attribute
Specified by:
getGetter in interface PropertyAccessor

getSetter

public Setter getSetter(Class theClass,
                        String propertyName)
            throws PropertyNotFoundException
Create a "setter" for the named attribute
Specified by:
getSetter in interface PropertyAccessor