Package org.apache.sling.api.wrappers

Examples of org.apache.sling.api.wrappers.ModifiableValueMapDecorator


        if ( type == ValueMap.class ) {
            return (AdapterType)this.props;
        }
        else if ( type == ModifiableValueMap.class ) {
            ((MockResourceResolver)this.resolver).addChanged(this.path, this.props);
            return (AdapterType)new ModifiableValueMapDecorator(this.props);
        }
        else if ( type == InputStream.class ) {
            InputStream is = getFileResourceInputStream();
            if (is != null) {
                return (AdapterType)is;
View Full Code Here


        }

        @Override
        public <AdapterType> AdapterType adaptTo(Class<AdapterType> type) {
            if (type.equals(ModifiableValueMap.class)) {
                return (AdapterType) new ModifiableValueMapDecorator(properties);
            }
            else if (type.equals(Map.class) || type.equals(ValueMap.class)) {
                return (AdapterType) new ValueMapDecorator(properties);
            }
View Full Code Here

TOP

Related Classes of org.apache.sling.api.wrappers.ModifiableValueMapDecorator

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.