Package org.auraframework.system.Parser

Examples of org.auraframework.system.Parser.Format


     * @param isPrivilegedNamespace if true, namespace is privileged
     * @return the created {@link StringSource}
     */
    public final <D extends Definition> StringSource<D> putSource(DefDescriptor<D> descriptor, String contents,
            boolean overwrite, boolean isPrivilegedNamespace) {
        Format format = DescriptorInfo.get(descriptor.getDefType().getPrimaryInterface()).getFormat();
        StringSource<D> source = new StringSource<>(descriptor, contents, descriptor.getQualifiedName(), format);
        return putSource(descriptor, source, overwrite, isPrivilegedNamespace);
    }
View Full Code Here


            if (ret != null) {
                // return a copy of the StringSource to emulate other Sources (hash is reset)
                return new StringSource<>(ret);
            }
            if (descriptor.getDefType().equals(DefType.NAMESPACE)) {
                Format format = DescriptorInfo.get(descriptor.getDefType().getPrimaryInterface()).getFormat();
                return new StringSource<>(descriptor, "", descriptor.getQualifiedName(),
                        format);
            }
        }
        return null;
View Full Code Here

TOP

Related Classes of org.auraframework.system.Parser.Format

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.