|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.tinyjee.maven.dim.sh.BundledBrushesResolver
public class BundledBrushesResolver
Resolves the bundled brushes.
Constructor Summary | |
---|---|
BundledBrushesResolver()
|
Method Summary | |
---|---|
protected String |
detectAliasByContent(Map<Integer,List<String>> content)
Detects the brush alias by file content. |
protected String |
detectAliasByExtension(String file)
Detects the brush alias by file extension. |
String |
detectBrushAlias(URL source,
Map<Integer,List<String>> sourceContent)
Auto Detects the brush alias name from the source URL or content. |
protected Properties |
getTypeMappingProperties()
Returns the backing properties used to map types. |
Collection<URL> |
resolveBrushes()
Returns a list of URLs that point to ".JS" or ".ZIP" files containing additional brush definitions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BundledBrushesResolver()
Method Detail |
---|
public Collection<URL> resolveBrushes()
resolveBrushes
in interface BrushResolver
public String detectBrushAlias(URL source, Map<Integer,List<String>> sourceContent)
detectBrushAlias
in interface BrushResolver
source
- the source URL (.. to be used for extension matching).sourceContent
- the extracted content of the source
(.. to be used for content based matching, e.g. shebang).
BrushResolver.resolveBrushes()
or 'null' if no alias can be resolved.
Note: If the content is HTML with a compiled / script language inside tags, the returned value is
"html/[brush-alias]" (e.g. JSP would map to "html/java").protected Properties getTypeMappingProperties()
protected String detectAliasByExtension(String file)
file
- the file to detect the alias for.
protected String detectAliasByContent(Map<Integer,List<String>> content)
content
- the file content.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |