Search in sources :

Example 1 with RsrcLocator

use of org.asqatasun.contentadapter.RsrcLocator in project Asqatasun by Asqatasun.

the class JSHandlerImpl method selectInlineJS.

@Override
public JSHandler selectInlineJS() {
    Collection<JSResource> inlineJsList = new ArrayList<>();
    for (JSResource jsResource : javaScriptSet) {
        RsrcLocator location = jsResource.getRsrcLocator();
        if (location.getRsrcLocatorType() == RsrcLocator.INLINE) {
            inlineJsList.add(jsResource);
        }
    }
    selectedJSList = inlineJsList;
    return this;
}
Also used : RsrcLocator(org.asqatasun.contentadapter.RsrcLocator) JSResource(org.asqatasun.contentadapter.js.JSResource) ArrayList(java.util.ArrayList)

Example 2 with RsrcLocator

use of org.asqatasun.contentadapter.RsrcLocator in project Asqatasun by Asqatasun.

the class JSHandlerImpl method selectExternalJS.

@Override
public JSHandler selectExternalJS() {
    Collection<JSResource> externalJsList = new ArrayList<>();
    for (JSResource jsResource : javaScriptSet) {
        RsrcLocator location = jsResource.getRsrcLocator();
        if (location.getRsrcLocatorType() == RsrcLocator.EXTERNAL) {
            externalJsList.add(jsResource);
        }
    }
    selectedJSList = externalJsList;
    return this;
}
Also used : RsrcLocator(org.asqatasun.contentadapter.RsrcLocator) JSResource(org.asqatasun.contentadapter.js.JSResource) ArrayList(java.util.ArrayList)

Example 3 with RsrcLocator

use of org.asqatasun.contentadapter.RsrcLocator in project Asqatasun by Asqatasun.

the class JSHandlerImpl method selectLocalJS.

@Override
public JSHandler selectLocalJS() {
    Collection<JSResource> localJsList = new ArrayList<>();
    for (JSResource jsResource : javaScriptSet) {
        RsrcLocator location = jsResource.getRsrcLocator();
        if (location.getRsrcLocatorType() == RsrcLocator.LOCAL) {
            localJsList.add(jsResource);
        }
    }
    selectedJSList = localJsList;
    return this;
}
Also used : RsrcLocator(org.asqatasun.contentadapter.RsrcLocator) JSResource(org.asqatasun.contentadapter.js.JSResource) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)3 RsrcLocator (org.asqatasun.contentadapter.RsrcLocator)3 JSResource (org.asqatasun.contentadapter.js.JSResource)3