ConstantExpression represents a constant expression.
ConstantExpression
In other words, {@link #evaluate} returns a value independent of the context.
7475767778798081828384
throw new SAXException( "You cannot specify attribute 'value' together with either " + " the 'property' or 'type' attributes"); } // fixed value text descriptor.setTextExpression( new ConstantExpression( value ) ); } else { // property based text descriptor.setPropertyName( propertyName );
8990919293949596979899
if ( propertyName != null && propertyName.length() > 0 ) { configureDescriptor(descriptor); } else { String value = attributes.getValue( "value" ); if ( value != null ) { descriptor.setTextExpression( new ConstantExpression( value ) ); } } Object top = digester.peek(); if ( top instanceof ElementDescriptor ) {
114115116117118119120121122123124
130131132133134135136137138139140
configureDescriptor(descriptor); } else { String value = attributes.getValue( "value" ); if ( value != null ) { descriptor.setTextExpression( new ConstantExpression( value ) ); } } Object top = digester.peek(); if ( top instanceof XMLBeanInfo ) {