Class ParameterAsserts

java.lang.Object
com.itextpdf.xmp.impl.ParameterAsserts
All Implemented Interfaces:
XMPConst

class ParameterAsserts extends Object implements XMPConst
Since:
11.08.2006
  • Constructor Details

    • ParameterAsserts

      private ParameterAsserts()
      private constructor
  • Method Details

    • assertArrayName

      public static void assertArrayName(String arrayName) throws XMPException
      Asserts that an array name is set.
      Parameters:
      arrayName - an array name
      Throws:
      XMPException - Array name is null or empty
    • assertPropName

      public static void assertPropName(String propName) throws XMPException
      Asserts that a property name is set.
      Parameters:
      propName - a property name or path
      Throws:
      XMPException - Property name is null or empty
    • assertSchemaNS

      public static void assertSchemaNS(String schemaNS) throws XMPException
      Asserts that a schema namespace is set.
      Parameters:
      schemaNS - a schema namespace
      Throws:
      XMPException - Schema is null or empty
    • assertPrefix

      public static void assertPrefix(String prefix) throws XMPException
      Asserts that a prefix is set.
      Parameters:
      prefix - a prefix
      Throws:
      XMPException - Prefix is null or empty
    • assertSpecificLang

      public static void assertSpecificLang(String specificLang) throws XMPException
      Asserts that a specific language is set.
      Parameters:
      specificLang - a specific lang
      Throws:
      XMPException - Specific language is null or empty
    • assertStructName

      public static void assertStructName(String structName) throws XMPException
      Asserts that a struct name is set.
      Parameters:
      structName - a struct name
      Throws:
      XMPException - Struct name is null or empty
    • assertNotNull

      public static void assertNotNull(Object param) throws XMPException
      Asserts that any string parameter is set.
      Parameters:
      param - any string parameter
      Throws:
      XMPException - Thrown if the parameter is null or has length 0.
    • assertImplementation

      public static void assertImplementation(XMPMeta xmp) throws XMPException
      Asserts that the xmp object is of this implemention (XMPMetaImpl).
      Parameters:
      xmp - the XMP object
      Throws:
      XMPException - A wrong implentaion is used.