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 Details

    • getDirectoryName

      public String 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, or false otherwise.
    • hasErrors

      public boolean hasErrors()
      Check if the directory has errors.
      Returns:
      true if the directory has errors, or false 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 a raw metadata directory is used.

      Parameters:
      p_strTagName - The tag name.
      Returns:
      The value, or null.
    • dump

      public String dump()
      Specified by:
      dump in interface de.uplanet.util.IDumpable
    • getAt

      public Object getAt(String p_strTagName)
    • 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.