|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.vub.cocompose.eclipse.model.IconValidator
Validates CoCompose RefinedElement icon URIs.
Constructor Summary | |
IconValidator(RefinedElement subject)
Creates an IconValidator. |
Method Summary | |
String |
convertToPath(String uri)
Converts a URI to a file path, if possible. |
boolean |
imageExistsAt(String file)
Returns true if a valid image exists at the given filename. |
boolean |
imageExistsAt(URL url)
Returns true if a valid image exists at the given URL. |
boolean |
isPath(String uri)
If no protocol specified, assume this is a file path. |
String |
isValid(Object value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IconValidator(RefinedElement subject)
Method Detail |
public String isValid(Object value)
isValid
in interface ICellEditorValidator
ICellEditorValidator.isValid(java.lang.Object)
public boolean isPath(String uri)
uri
- the uri to check.
public String convertToPath(String uri) throws IOException
uri
- the URI to convert
IOException
- if conversion failed.public boolean imageExistsAt(String file)
file
- the filename
public boolean imageExistsAt(URL url)
url
- the URL.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |