All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kero.security.lang.provider.resource.KsdlTextResource Maven / Gradle / Ivy

package com.kero.security.lang.provider.resource;

public interface KsdlTextResource {

	public String getRawText();
	
	public static boolean hasWrap(KsdlTextResource resource, Class wrapClass) {
		
		if(resource instanceof KsdlTextResourceWrap) {
			
			KsdlTextResourceWrap wrap = (KsdlTextResourceWrap) resource;
			
			return wrap.hasWrap(wrapClass);
		}
		
		return false;
	}
	
	public static KsdlTextResource addCacheWrap(KsdlTextResource resource) {
		
		if(hasWrap(resource, TextResourceCacheWrap.class)) return resource;
		
		return new TextResourceCacheWrap(resource);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy