beanface.el.functor
Class FullyQualifiedJavaName

java.lang.Object
  extended by beanface.el.functor.FullyQualifiedJavaName

public class FullyQualifiedJavaName
extends java.lang.Object

This is a place holder object so the resolver can build up fully-qualified-java-names for reference to static class methods.


Constructor Summary
FullyQualifiedJavaName()
          Construct an empty FullyQualifiedJavaName with no name components.
FullyQualifiedJavaName(java.lang.String base, java.lang.String part)
          Construct a FullyQualifiedJavaName from an option base part and an additional name part.
 
Method Summary
 java.lang.String getName()
          The string representation of the fully qualified package or class name.
 java.lang.Object resolve(javax.el.ELContext context, FunctorIdentification functorIdent, java.lang.String partName)
          Applies the next identifier to this FQJN.
 java.lang.String toString()
          A string representation of this object for debuging purposes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FullyQualifiedJavaName

public FullyQualifiedJavaName()
Construct an empty FullyQualifiedJavaName with no name components.


FullyQualifiedJavaName

public FullyQualifiedJavaName(java.lang.String base,
                              java.lang.String part)
Construct a FullyQualifiedJavaName from an option base part and an additional name part.

Parameters:
base - The base part of the name that is being built up (may be null).
part - The addition package or class name part to add to the base.
Method Detail

getName

public java.lang.String getName()
The string representation of the fully qualified package or class name.


resolve

public java.lang.Object resolve(javax.el.ELContext context,
                                FunctorIdentification functorIdent,
                                java.lang.String partName)
                         throws javax.el.ELException
Applies the next identifier to this FQJN. If the partName parameter is a reference to a functor, the current FQJN is expected to be a class name. Otherwise a new FQJN is returned with the addition partName added.

Parameters:
context - the EL Context (which may be needed for error messages).
functorIdent - the configuration used to identify functor references.
partName - the property value to apply.
Returns:
a new FQJN or a Functor object.
Throws:
javax.el.ELException

toString

public java.lang.String toString()
A string representation of this object for debuging purposes.

Overrides:
toString in class java.lang.Object