Package ariba.util.fieldvalue

Examples of ariba.util.fieldvalue.FieldPath


    public void init (String bindingName, String fieldPathString)
    {
        // Becasue we cache fieldPaths, we don't use the shared pey paths
        // since we get better performance from the lookup skipping
        // built into FieldPath
        FieldPath fieldPath = new FieldPath(fieldPathString);
        this.init(bindingName, fieldPath);
    }
View Full Code Here


    {
        this.init(bindingName);
        // Because we cache fieldPaths, we don't use the shared key paths
        // since we get better performance from the lookup skipping
        // built into FieldPath
        FieldPath fieldPath = new FieldPath(fieldPathString);
        _fieldPathString = fieldPathString.intern();
        _bindingKey = fieldPath.car().intern();
        _additionalKeyPath = fieldPath.cdr();
        _defaultBinding = defaultBinding;
    }
View Full Code Here

        if (_primaryBindingFieldPath == DummyFieldPath) {
            _primaryBindingFieldPath = null;
            if (component.useLocalPool()) {
                Field bindingField = component.lookupBindingField(_bindingKey);
                if (bindingField != null) {
                    _primaryBindingFieldPath = new FieldPath(bindingField.getName());
                }
            }
        }
        AWBinding primaryBinding = null;
        if (_primaryBindingFieldPath == null) {
View Full Code Here

    public void init (String bindingName, Class targetClass, String fieldPathString)
    {
        this.init(bindingName);
        _targetClass = targetClass;
        _fieldPath = new FieldPath(fieldPathString);
    }
View Full Code Here

     * @param fieldPath - the fieldPath node which identifes the field to get.
     * @return the value obtained from the target using the fieldPath
     */
    public Object getFieldValuePrimitive (Object target, FieldPath fieldPath)
    {
        FieldPath newFieldPath = new FieldPath(fieldPath.fieldPathString());
        return newFieldPath.getFieldValue(target);
    }
View Full Code Here

                    _foreignKey = key.substring(dot+1);
                } else {
                    _propKey = key;
                }

                _fieldPath = new FieldPath(_propKey);

                _metaContext.push();
                _metaContext.set(ObjectMeta.KeyField, _propKey);

                String type = (String)_metaContext.propertyForKey(ObjectMeta.KeyType);
View Full Code Here

        AN doesn't have isProduction on their login page
    */
    public boolean isProduction ()
    {
        Object pageComponent = pageComponent();
        FieldPath fieldPath = new FieldPath("isProduction");
        try {
            Boolean isProduction = (Boolean)fieldPath.getFieldValue(pageComponent);
            return isProduction.booleanValue();
        }
        catch (RuntimeException exception) {
        }
        return true;
View Full Code Here

    long _prevCRC = 0;

    public DetailDataSource (Object parent, String keyPath)
    {
        _parentObject = parent;
        _detailFieldPath = new FieldPath(keyPath);
    }
View Full Code Here

        public Object getFieldValue (Object receiver, FieldPath fieldPath)
        {
            AWXmlContext xmlContext = (AWXmlContext)receiver;
            Object objectValue = FieldValue.getFieldValue(xmlContext._xmlNode, fieldPath.car());
            FieldPath remainingFieldPath = fieldPath.cdr();
            if (remainingFieldPath != null) {
                objectValue = remainingFieldPath.getFieldValue(objectValue);
            }
            objectValue = xmlContext.convertReturnValue(objectValue);
            return objectValue;
        }
View Full Code Here

        }

        public Object getFieldValue (Object receiver, FieldPath fieldPath)
        {
            Object objectValue = getFieldValuePrimitive(receiver, fieldPath);
            FieldPath remainingFieldPath = fieldPath.cdr();
            if (remainingFieldPath != null) {
                remainingFieldPath.getFieldValue(objectValue);
            }
            return objectValue;
        }
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.