Examples of AWResource


Examples of ariba.ui.aribaweb.util.AWResource

        return resource;
    }

    public AWResource templateResource ()
    {
        AWResource resource = safeTemplateResource();
        if (resource == null) {
            throwComponentNotFoundException(templateName());
        }
        return resource;
    }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResource

        return templateString;
    }

    protected InputStream templateInputStream ()
    {
        AWResource templateResource = templateResource();
        return templateResource.inputStream();
    }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResource

    }

    public AWTemplate loadTemplate ()
    {
        AWTemplate template = null;
        AWResource resource = templateResource();
        if (resource != null) {
            template = (AWTemplate)resource.object();
            if ((template == null) ||
                (AWConcreteApplication.IsRapidTurnaroundEnabled
                        && requestContext().currentPhase() == AWRequestContext.Phase_Render
                        && resource.hasChanged())) {

                // reset needs to be called before template parser since the template parser
                // can append validation errors
                componentDefinition().resetValidationData();

                template = parseTemplate();

                if (template != null) {
                    AWApi componentApi  = ((AWConcreteTemplate)template).removeApiTag();

                    if (AWConcreteApplication.IsDebuggingEnabled) {
                        componentDefinition().setComponentApi(componentApi);

                        // validate the componentAPI.  Needed since componentAPI
                        // validation initializes supported binding information.

                        if (componentApi != null && requestContext() != null) {
                            // if there is a component api, then validate it (metadata validation)
                            componentApi.validate(requestContext().validationContext(), this);
                        }
                    }

                    resource.setObject(template);
                }
            }
        }
        return template;
    }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResource

        AWFastStringBuffer stringBuffer = new AWFastStringBuffer();
        AWComponent currentComponent = this;
        while (currentComponent != null) {
            stringBuffer.append("        ");
            if (currentComponent.getClass() == AWComponent.ClassObject) {
                AWResource resource = currentComponent.templateResource();
                if (resource != null) {
                    stringBuffer.append(resource.fullUrl());
                }
                else {
                    stringBuffer.append(currentComponent.namePath());
                    stringBuffer.append(".awl");
                }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResource

        registerStandardTagNames();
    }

    private void registerStandardTagNames ()
    {
        AWResource resource = _application.resourceManager().resourceNamed("AWStandardTagNames.txt");
        if (resource != null) {
            InputStream inputStream = resource.inputStream();
            String standardTagNamesString = AWUtil.stringWithContentsOfInputStream(inputStream);
            AWUtil.close(inputStream);
            StringArray standardTagNames = AWUtil.componentsSeparatedByString(standardTagNamesString, ",");
            String[] standardTagNamesArray = standardTagNames.array();
            for (int index = (standardTagNames.inUse() - 1); index >= 0; index--) {
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResource

        if (component instanceof AWIncludeBlock) {
            component = component.parent();
        }
        String resourceName = localizedAWLStringsResourceName(
            component.resourceClassName());
        AWResource resource = component.resourceManager().resourceNamed(resourceName);
        return loadLocalizedStrings(component.name(), resource);
    }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResource

        if (component instanceof AWIncludeBlock) {
            component = component.parent();
        }
        Class resourceClass = component.getClass();
        String resourceName = localizedJavaStringsResourceName(resourceClass.getName());
        AWResource resource = component.resourceManager().resourceNamed(resourceName);
        return loadLocalizedStrings(component.name(), resource);
    }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResource

    {
        String resourceName = stringTable;
        if (stringTable.startsWith("ariba.ui.")) {
            resourceName = StringUtil.strcat("strings/", stringTable, AWConcreteApplication.DefaultPackageStringsSuffix);
        }
        AWResource resource = resourceManager.resourceNamed(resourceName);
        return loadLocalizedStrings(componentName, resource);
    }
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResource

        //registerStandardTagNames();
    }

    private void registerStandardTagNames ()
    {
        AWResource resource = _application.resourceManager().resourceNamed("AWStandardTagNames.txt");
        if (resource != null) {
            InputStream inputStream = resource.inputStream();
            String standardTagNamesString = AWUtil.stringWithContentsOfInputStream(inputStream);
            AWUtil.close(inputStream);
            StringArray standardTagNames = AWUtil.componentsSeparatedByString(standardTagNamesString, ",");
            String[] standardTagNamesArray = standardTagNames.array();
            for (int index = (standardTagNames.inUse() - 1); index >= 0; index--) {
View Full Code Here

Examples of ariba.ui.aribaweb.util.AWResource

        return page;
    }

    public String resourceFullPath ()
    {
        AWResource resource = AWComponent.templateResourceManager().resourceNamed(currentResourcePath());
        return (resource != null) ? resource.fullUrl()
                : URLUtil.urlAbsolute(new File(currentResourcePath())).toExternalForm();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.