Uses of Class
org.webmacro.PropertyException

Packages that use PropertyException
org.webmacro   
org.webmacro.directive   
org.webmacro.engine   
org.webmacro.servlet   
org.webmacro.util   
 

Uses of PropertyException in org.webmacro
 

Subclasses of PropertyException in org.webmacro
 class InvalidContextException
          The context supplied to a macro did not contain information that the macro required in order to write or evaluate itself.
static class PropertyException.InvalidTypeException
          Exception thrown when a Variable isn't of the specified class type.
static class PropertyException.NoSuchMethodException
          NoSuchMethodException indicates that the variable did not have the requested method.
static class PropertyException.NoSuchMethodWithArgumentsException
          NoSuchMethodWithArgumentsException indicates that the variable did not have the a method with the request name and argument list
static class PropertyException.NoSuchPropertyException
          NoSuchPropertyException indicates that the variable did not have the requested property.
static class PropertyException.NoSuchVariableException
          NoSuchVariableException indicates that a variable did not exist in the context against which it was being evaluated.
static class PropertyException.NullToStringException
          NullStringException indicates that a variable exists but its .toString() method returns null
static class PropertyException.NullValueException
          NullValueException indicates that a variable or property exists, but evaluated to null in the context against which it was being evaluated.
static class PropertyException.RestrictedMethodException
          RestrictedMethodException indicates that the requested method may not be invoked from a template due to security constraints
static class PropertyException.RestrictedPropertyException
          RestrictedPropertyException indicates that the requested property may not be invoked from a template due to security constraints
static class PropertyException.VoidValueException
          VoidValueException indicates that someone tried to use the return value of a void method
 

Methods in org.webmacro that throw PropertyException
 void Macro.write(FastWriter out, Context context)
          Interpret the directive and write it out, using the values in the supplied context as appropriate.
 java.lang.Object Macro.evaluate(Context context)
          same as out but returns a String
 java.lang.Object ContextTool.init(Context c)
          A new tool object will be instantiated per-request by calling this method.
 void WM.writeTemplate(java.lang.String templateName, java.io.OutputStream out, Context context)
          Convenience method for writing a template to an OutputStream.
 void WM.writeTemplate(java.lang.String templateName, java.io.OutputStream out, java.lang.String encoding, Context context)
          Convienence method for writing a template to an OutputStream.
 java.lang.Object Context.internalGet(java.lang.Object name)
          Get the named object/property from the Context.
 java.lang.Object Context.internalGet(java.lang.Object[] names)
          Get the named object from the Context.
 boolean Context.set(java.lang.Object[] names, java.lang.Object value)
          Set the named property in the Context.
 java.lang.Object Context.getProperty(java.lang.Object name)
          Same as get(name) but can be overridden by subclasses to do something different
 boolean Context.setProperty(java.lang.Object name, java.lang.Object value)
          Same as put(name,value) but can be overridden by subclasses to do something different
 java.lang.Object Context.getProperty(java.lang.Object[] names)
          Same as get(Object names[]) but can be overridden by subclasses to behave differently
 boolean Context.setProperty(java.lang.Object[] names, java.lang.Object value)
          Same as set(Object names[], Object value) but can be overridden by subclasses to behave differently
 void WebMacro.writeTemplate(java.lang.String templateName, java.io.OutputStream out, Context context)
          Convienence method for writing a template to an OutputStream.
 void WebMacro.writeTemplate(java.lang.String templateName, java.io.OutputStream out, java.lang.String encoding, Context context)
          Convienence method for writing a template to an OutputStream.
 

Uses of PropertyException in org.webmacro.directive
 

Methods in org.webmacro.directive that throw PropertyException
 java.lang.Object Directive.evaluate(Context context)
           
protected static java.lang.String Directive.getWarningText(java.lang.String warning, Context context)
          Convenience method for directives to write HTML warnings into the output stream.
protected static void Directive.writeWarning(java.lang.String warning, Context context, FastWriter writer)
          Convenience method for directives to write HTML warnings into the output stream.
 void ForeachDirective.write(FastWriter out, Context context)
           
 void PropertyDirective.write(FastWriter out, Context context)
           
 void EscapeDirective.write(FastWriter out, Context context)
           
 void SetblockDirective.write(FastWriter out, Context context)
           
 void ParamDirective.write(FastWriter out, Context context)
           
 void AttributeDirective.write(FastWriter out, Context context)
           
 void SilenceDirective.write(FastWriter out, Context context)
           
 void TextDirective.write(FastWriter out, Context context)
           
 void IncludeDirective.write(FastWriter out, Context context)
          Write out the included file to the specified FastWriter.
protected  java.lang.Object IncludeDirective.getThingToInclude(Broker b, int type, java.lang.String filename)
          get the template or file that the user wants to include, based on the specified type
protected  Template IncludeDirective.getTemplate(Broker b, java.lang.String name)
          get a Template via the "template" provider known by the specified broker
protected  java.lang.String IncludeDirective.getFile(Broker b, java.lang.String name)
          get the contents of a file (local file or url) via the "url" provider known by the specified broker.
 void DefaultDirective.write(FastWriter out, Context context)
           
 void SetDirective.write(FastWriter out, Context context)
           
 void BeanDirective.write(FastWriter out, Context context)
           
 void EncodeDirective.write(FastWriter out, Context context)
           
 void ProfileDirective.write(FastWriter out, Context context)
           
 void CommentDirective.write(FastWriter out, Context context)
           
 void AlternateDirective.write(FastWriter out, Context context)
           
 void DummyDirective.write(FastWriter out, Context context)
           
 void GlobalDirective.write(FastWriter out, Context context)
           
 java.lang.Object TypeDirective.evaluate(Context context)
          Ensure the class of the specified Variable reference isAssignableFrom from the classname arg.
 void TypeDirective.write(FastWriter fw, Context context)
          The #type directive does not produce output
 

Uses of PropertyException in org.webmacro.engine
 

Methods in org.webmacro.engine that throw PropertyException
 void Expression.ExpressionBase.write(FastWriter out, Context context)
           
abstract  java.lang.Object Expression.BinaryOperation.operate(java.lang.Object l, java.lang.Object r)
           
 java.lang.Object Expression.BinaryOperation.evaluate(Context context)
           
 java.lang.Object Expression.UnaryOperation.evaluate(Context context)
           
 java.lang.Object Expression.AndOperation.evaluate(Context context)
           
 java.lang.Object Expression.OrOperation.evaluate(Context context)
           
 java.lang.Object Expression.AddOperation.operate(java.lang.Object l, java.lang.Object r)
           
 java.lang.Object Expression.SubtractOperation.operate(java.lang.Object l, java.lang.Object r)
           
 java.lang.Object Expression.MultiplyOperation.operate(java.lang.Object l, java.lang.Object r)
           
 java.lang.Object Expression.DivideOperation.operate(java.lang.Object l, java.lang.Object r)
           
 java.lang.Object Expression.Compare.operate(java.lang.Object l, java.lang.Object r)
           
 java.lang.Object Variable.evaluate(Context context)
          Looks in the hashTable (context) for a value keyed to this variables name and returns the value string.
 void Variable.write(FastWriter out, Context context)
          Look in the hashtable (context) for a value keyed to this variables name and write its value to the stream.
abstract  java.lang.Object Variable.getValue(Context context)
          The code to get the value represented by the variable from the supplied context.
abstract  void Variable.setValue(Context c, java.lang.Object v)
          The code to set the value represented by the variable in the supplied context.
 java.lang.Object WMTemplate.evaluate(Context data)
          Parse the Template against the supplied context data and return it as a string.
 void WMTemplate.write(FastWriter out, Context data)
          A macro has a write method which takes a context and applies it to the macro to create a resulting String value, which is then written to the supplied stream.
 void VoidMacro.write(FastWriter out, Context context)
           
 java.lang.Object VoidMacro.evaluate(Context context)
          Returns null.
 void CrankyEvaluationExceptionHandler.evaluate(Variable variable, Context context, java.lang.Exception problem)
           
 java.lang.String CrankyEvaluationExceptionHandler.expand(Variable variable, Context context, java.lang.Exception problem)
           
 java.lang.String CrankyEvaluationExceptionHandler.warningString(java.lang.String warningText)
           
 java.lang.String CrankyEvaluationExceptionHandler.errorString(java.lang.String errorText)
           
 void DefaultEvaluationExceptionHandler.evaluate(Variable variable, Context context, java.lang.Exception problem)
           
 java.lang.String DefaultEvaluationExceptionHandler.expand(Variable variable, Context context, java.lang.Exception problem)
           
 void Block.write(FastWriter out, Context context)
          Interpret the directive and write it out, using the values in the supplied context as appropriate.
 java.lang.Object Block.evaluate(Context context)
          same as out but returns a String
 java.lang.String EvaluationExceptionHandler.expand(Variable variable, Context context, java.lang.Exception problem)
          When an exception is detected in the process of expanding (writing) a variable reference, this method is consulted.
 void EvaluationExceptionHandler.evaluate(Variable variable, Context context, java.lang.Exception problem)
          When an exception is detected in the process of evaluating a variable reference, this method is consulted.
 java.lang.String EvaluationExceptionHandler.warningString(java.lang.String warningText)
           
 java.lang.String EvaluationExceptionHandler.errorString(java.lang.String errorText)
           
 org.webmacro.engine.PropertyOperator PropertyOperatorCache.getOperator(java.lang.Class type)
           
 org.webmacro.engine.PropertyOperator PropertyOperatorCache.getOperator(java.lang.Object obj)
           
 java.lang.Object PropertyOperatorCache.getProperty(Context context, java.lang.Object instance, java.lang.Object[] names, int start)
          Attempt to retrieve a property using the rules of property introspection described above.
 java.lang.Object PropertyOperatorCache.getProperty(Context context, java.lang.Object instance, java.lang.Object[] names)
          Calls getProperty(context, instance, names, 0)
 boolean PropertyOperatorCache.setProperty(Context context, java.lang.Object instance, java.lang.Object[] names, int start, java.lang.Object value)
          Given a property description name, attempt to set the property value to the supplied object.
 boolean PropertyOperatorCache.setProperty(Context context, java.lang.Object instance, java.lang.Object[] names, java.lang.Object value)
          Calls setProperty(context, names, 0, value)
 java.util.Iterator PropertyOperatorCache.getIterator(java.lang.Object instance)
          Evaluate the supplied object and work out a way to return it as an iterator.
 

Uses of PropertyException in org.webmacro.servlet
 

Methods in org.webmacro.servlet that throw PropertyException
 java.lang.Object MathTool.init(Context context)
          Tool initialization method.
 java.lang.Object TextTool.init(Context context)
          Tool initialization method.
 java.lang.Object FormTool.init(Context context)
           
 void WMServlet.writeTemplate(java.lang.String templateName, java.io.OutputStream out, Context context)
          Convenience method for writing a template to an OutputStream.
 void WMServlet.writeTemplate(java.lang.String templateName, java.io.OutputStream out, java.lang.String encoding, Context context)
          Convienence method for writing a template to an OutputStream.
 java.lang.Object CookieTool.init(Context context)
           
 java.lang.Object ResponseTool.init(Context context)
           
 java.lang.Object FormListTool.init(Context context)
           
 java.lang.Object CGITool.init(Context context)
           
 java.lang.Object LocaleTool.init(Context context)
           
 java.lang.Object SessionTool.init(Context context)
           
 java.lang.Object RequestTool.init(Context context)
           
 java.lang.Object TemplateTool.init(Context c)
          Create a factory object that can be accessed from WMScript as $Template for creating MacroTemplate objects.
 java.lang.Object TemplateTool.MacroTemplate.eval()
          Evaluates the macro's template against its context and returns the resulting string.
 java.lang.Object TemplateTool.MacroTemplate.eval(java.lang.Object[] args)
           
 java.lang.Object TemplateTool.MacroTemplate.eval(java.lang.Object[] args, java.lang.Object[] names)
           
 java.lang.Object VariableTool.init(Context c)
           
 

Uses of PropertyException in org.webmacro.util
 

Methods in org.webmacro.util that throw PropertyException
 java.lang.Object[] PropertyMethod.getArguments(Context context)
          Return the arguments for this method, after resolving them against the supplied context.
static java.lang.Character CastUtil.toChar(java.lang.Object o)