Class ImageHelper.MetaDataDirectory
- java.lang.Object
-
- de.uplanet.lucy.server.scripting.groovy.ImageHelper.MetaDataDirectory
-
- All Implemented Interfaces:
de.uplanet.util.IDumpable
- Enclosing class:
- ImageHelper
public static final class ImageHelper.MetaDataDirectory extends Object implements de.uplanet.util.IDumpable
This class represents an image metadata directory.Note: Values of tags are
trimmed
by default, unless araw
metadata directory is being used.- Since:
- Intrexx 8.0.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
dump()
ImageHelper.MetaDataDirectory
each(groovy.lang.Closure<?> p_closure)
Iterate over the tags using the given closure.String
get(String p_strTagName)
Get the value of the given tag.Object
getAt(String p_strTagName)
String
getDirectoryName()
Get the name of the directory.List<String>
getErrors()
Get a list of error messages contained in this directory.ImageHelper.MetaDataDirectory
getRaw()
Get a metadata directory that returns tag values that are not trimmed.boolean
hasErrors()
Check if the directory has errors.boolean
hasTags()
Check if the directory has tags.
-
-
-
Method Detail
-
getDirectoryName
public String getDirectoryName()
Get the name of the directory.- Returns:
- The name of the directory.
-
getRaw
public ImageHelper.MetaDataDirectory getRaw()
Get a metadata directory that returns tag values that are not trimmed.- Returns:
- A metadata directory that returns tag values that are not trimmed.
-
hasTags
public boolean hasTags()
Check if the directory has tags.- Returns:
true
if the directory has tags, orfalse
otherwise.
-
hasErrors
public boolean hasErrors()
Check if the directory has errors.- Returns:
true
if the directory has errors, orfalse
otherwise.
-
getErrors
public List<String> getErrors()
Get a list of error messages contained in this directory.- Returns:
- A (possibly empty) list of error messages.
-
get
public String get(String p_strTagName)
Get the value of the given tag.Note: The returned value is
trimmed
by default unless araw
metadata directory is used.- Parameters:
p_strTagName
- The tag name.- Returns:
- The value, or
null
.
-
dump
public String dump()
- Specified by:
dump
in interfacede.uplanet.util.IDumpable
-
each
public ImageHelper.MetaDataDirectory each(groovy.lang.Closure<?> p_closure)
Iterate over the tags using the given closure.If the closure takes one parameter then the tag names will be passed; if it takes two parameters then the tag name and value will be passed ot the closure.
- Parameters:
p_closure
- The closure.- Returns:
- The
self
object.
-
-