com.taggercat
Class DSPropertyResolver

java.lang.Object
  extended by javax.el.ELResolver
      extended by com.taggercat.DSPropertyResolver

public class DSPropertyResolver
extends javax.el.ELResolver

This is an EL resolver for data source properties. Where the property is referenced using dsn.propertyName. If the dsn is found in the model, and the ds is not empty, then dsn is resolved to the current entity on that DS.

 

Field Summary
 
Fields inherited from class javax.el.ELResolver
RESOLVABLE_AT_DESIGN_TIME, TYPE
 
Constructor Summary
DSPropertyResolver()
           
 
Method Summary
 java.lang.Class<?> getCommonPropertyType(javax.el.ELContext context, java.lang.Object base)
          
 java.util.Iterator<java.beans.FeatureDescriptor> getFeatureDescriptors(javax.el.ELContext context, java.lang.Object base)
          
 java.lang.Class<?> getType(javax.el.ELContext context, java.lang.Object base, java.lang.Object property)
          
 java.lang.Object getValue(javax.el.ELContext context, java.lang.Object base, java.lang.Object property)
          
 boolean isReadOnly(javax.el.ELContext context, java.lang.Object base, java.lang.Object property)
          
 void setValue(javax.el.ELContext context, java.lang.Object base, java.lang.Object property, java.lang.Object value)
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DSPropertyResolver

public DSPropertyResolver()
Method Detail

getCommonPropertyType

public java.lang.Class<?> getCommonPropertyType(javax.el.ELContext context,
                                                java.lang.Object base)

Specified by:
getCommonPropertyType in class javax.el.ELResolver

getFeatureDescriptors

public java.util.Iterator<java.beans.FeatureDescriptor> getFeatureDescriptors(javax.el.ELContext context,
                                                                              java.lang.Object base)

Specified by:
getFeatureDescriptors in class javax.el.ELResolver

getType

public java.lang.Class<?> getType(javax.el.ELContext context,
                                  java.lang.Object base,
                                  java.lang.Object property)
                           throws java.lang.NullPointerException,
                                  javax.el.PropertyNotFoundException,
                                  javax.el.ELException

Specified by:
getType in class javax.el.ELResolver
Throws:
java.lang.NullPointerException
javax.el.PropertyNotFoundException
javax.el.ELException

getValue

public java.lang.Object getValue(javax.el.ELContext context,
                                 java.lang.Object base,
                                 java.lang.Object property)
                          throws java.lang.NullPointerException,
                                 javax.el.PropertyNotFoundException,
                                 javax.el.ELException

Specified by:
getValue in class javax.el.ELResolver
Throws:
java.lang.NullPointerException
javax.el.PropertyNotFoundException
javax.el.ELException

isReadOnly

public boolean isReadOnly(javax.el.ELContext context,
                          java.lang.Object base,
                          java.lang.Object property)
                   throws java.lang.NullPointerException,
                          javax.el.PropertyNotFoundException,
                          javax.el.ELException

Specified by:
isReadOnly in class javax.el.ELResolver
Throws:
java.lang.NullPointerException
javax.el.PropertyNotFoundException
javax.el.ELException

setValue

public void setValue(javax.el.ELContext context,
                     java.lang.Object base,
                     java.lang.Object property,
                     java.lang.Object value)
              throws java.lang.NullPointerException,
                     javax.el.PropertyNotFoundException,
                     javax.el.PropertyNotWritableException,
                     javax.el.ELException

Specified by:
setValue in class javax.el.ELResolver
Throws:
java.lang.NullPointerException
javax.el.PropertyNotFoundException
javax.el.PropertyNotWritableException
javax.el.ELException