Package ariba.util.fieldvalue

Examples of ariba.util.fieldvalue.FieldPath


                    }
                }
            }

            stringsTable = (Map)stringsTable.get(filename);
            FieldPath cdr = fieldPath.cdr();
            if (cdr == null) {
                value = stringsTable;
            }
            else {
                String stringKey = cdr.car();
                value = stringsTable.get(stringKey);
            }
        }
        else {
            value = Fmt.S("Undefined string with key path: \"%s\"", fieldPath.toString());
View Full Code Here


        FieldPath _fieldPath;
        Object /*AWFormatting*/ _chainedFormatter;

        public FieldPathFormatter (String fieldPathString, Object /*AWFormatting*/ chainedFormatter)
        {
            _fieldPath = new FieldPath(fieldPathString);
            _chainedFormatter = chainedFormatter;
        }
View Full Code Here

        public Object value ()
        {
            Object object = object();
            // Assert.that(object != null, "Call to value() with no current object");
            if (object == null) return null;
            FieldPath fieldPath = fieldPath();
            return (fieldPath != null) ? fieldPath.getFieldValue(object)
                                       : propertyForKey("value");
        }
View Full Code Here

                                       : propertyForKey("value");
        }

        public void setValue (Object val)
        {
            FieldPath fieldPath = fieldPath();
            if (fieldPath != null) {
                Object object = object();
                Assert.that(object != null, "Call to setValue() with no current object");
                fieldPath.setFieldValue(object, val);
            } else {
                Object value = allProperties().get(KeyValue);
                Assert.that(value instanceof PropertyValue.DynamicSettable, "Can't set derived property: %s", value);
                ((PropertyValue.DynamicSettable)value).evaluateSet(this, val);
            }
View Full Code Here

        public FieldPath fieldPath() {
            if (_fieldPath == null) {
                Object value = get(KeyValue);
                String fieldName = (String)get(KeyField);
                _fieldPath = (fieldName != null && value == null)
                        ? new FieldPath(fieldName)
                        : _FieldPathNullMarker;
            }
            return _fieldPath == _FieldPathNullMarker ? null : _fieldPath;
        }
View Full Code Here

    }

    protected Object getValueBody( ExprContext context, Object source )
        throws ExprException
    {
        FieldPath fieldPath = getFieldPath(context);
        Object root = context.getRoot();
        Object value = (fieldPath != null ? fieldPath.getFieldValue(root) : null);
        if (value != null) {
            value = ExprRuntime.convert(value);
        }
        return value;
    }
View Full Code Here

    }

    protected void setValueBody( ExprContext context, Object target, Object value )
        throws ExprException
    {
        FieldPath fieldPath = getFieldPath(context);
        if (fieldPath != null) {
            Object root = context.getRoot();
            fieldPath.setFieldValue(root, value);
        }
    }
View Full Code Here

    private FieldPath getFieldPath (ExprContext context)
    {
        SymbolTable table = context.getSymbolTable();
        SemanticRecord record = table.getSymbolRecord(this);
        return (record != null ? new FieldPath(record.getSymbolName()) : null);
    }
View Full Code Here

        updateDisplayedObjects();
    }

    public void setGroupingKey (String keyPathString)
    {
        FieldPath path = ((keyPathString == null) ?
                          null :
                          FieldPath.sharedFieldPath(keyPathString));
        _groupByFieldPath = path;
            // invalidate expansion hashtable
        resetGroupingState();
View Full Code Here

        return bindingValue(thisColumn()._nowrapBinding);
    }

    public String keyPathString ()
    {
        FieldPath path = thisColumn()._keyPath;
        return (path == null) ? null : path.fieldPathString();
    }
View Full Code Here

TOP

Related Classes of ariba.util.fieldvalue.FieldPath

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.