Package ariba.util.core

Examples of ariba.util.core.FormatBuffer


        return sReturn;
    }

    private String formatComponent (AWComponent component)
    {
        FormatBuffer ret = new FormatBuffer();
        AWBaseElement element = (AWBaseElement)component.currentTemplateElement();
        ret.append(component.name());
        if (element != null) {
            ret.append(":");
            ret.append(element.lineNumber());
        }
        return ret.toString();
    }
View Full Code Here


        }
    }

    public String printComponentApiErrors ()
    {
        FormatBuffer sbReturn = new FormatBuffer();
        if (_unsupportedBindingDefinitions != null) {
            sbReturn.append("Unsupported bindings.  Binding found in AWApi, but not defined in supported binding list in the component.\n");
            printList(sbReturn, _unsupportedBindingDefinitions);
        }

        if (_missingSupportedBindingDefinitions != null) {
            sbReturn.append("Missing supported bindings.  Binding defined in supported binding list in the component but not found in AWApi.\n");
            printList(sbReturn, _missingSupportedBindingDefinitions);
        }

        if (_invalidBindingAlternates != null || _mismatchedBindingAlternates != null) {
            sbReturn.append("Invalid alternates defined for bindings\n");

            if (_invalidBindingAlternates != null) {
                for (int i = 0, size = _invalidBindingAlternates.size(); i < size; i++) {
                    String[] bindingError = (String[])_invalidBindingAlternates.get(i);
                    sbReturn.append("\tUnable to find definition for binding '" + bindingError[1] +
                                    "' specified in alternates for bindings: '" + bindingError[0] + "'.\n");
                }
            }
            if (_mismatchedBindingAlternates != null) {
                for (int i = 0, size = _mismatchedBindingAlternates.size(); i < size; i++) {
                    String[] bindingError = (String[])_mismatchedBindingAlternates.get(i);
                    sbReturn.append("\tMismatched alternates defined for bindings: '" + bindingError[0] +
                                    "','" + bindingError[1] + "'\n");
                }
            }
        }

        if (_templateParsingErrors != null) {
            sbReturn.append("Unrecognized tags found.  Rendered directly to output.\n");
            printList(sbReturn, _templateParsingErrors);
        }

        return sbReturn.toString();
    }
View Full Code Here

        public List _referencedBy;
        public List _locationInReference;

        public String printReferencedBy ()
        {
            FormatBuffer sbReturn = new FormatBuffer();
            for (int i = 0, size = _referencedBy.size(); i < size; i++) {
                if (i!=0) {
                    sbReturn.append(",");
                }
                sbReturn.append(_referencedBy.get(i) + ":" + _locationInReference.get(i));
            }
            return sbReturn.toString();
        }
View Full Code Here

TOP

Related Classes of ariba.util.core.FormatBuffer

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.