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 a raw
metadata directory is being used.
- Since:
- Intrexx 8.0.
-
Method Summary
Modifier and TypeMethodDescriptiondump()
each
(groovy.lang.Closure<?> p_closure) Iterate over the tags using the given closure.Get the value of the given tag.Get the name of the directory.Get a list of error messages contained in this directory.getRaw()
Get a metadata directory that returns tag values that are not trimmed.boolean
Check if the directory has errors.boolean
hasTags()
Check if the directory has tags.
-
Method Details
-
getDirectoryName
Get the name of the directory.- Returns:
- The name of the directory.
-
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
Get a list of error messages contained in this directory.- Returns:
- A (possibly empty) list of error messages.
-
get
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
- Specified by:
dump
in interfacede.uplanet.util.IDumpable
-
getAt
-
each
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.
-