Package com.adobe.xmp

Examples of com.adobe.xmp.XMPException


    {
      setNode(propNode, propValue, options, false);
    }
    else
    {
      throw new XMPException("Specified property does not exist", XMPError.BADXPATH);
    }
  }
View Full Code Here


    ParameterAsserts.assertSchemaNS(schemaNS);
    ParameterAsserts.assertPropName(propName);

    if (!doesPropertyExist(schemaNS, propName))
    {
      throw new XMPException("Specified property does not exist!", XMPError.BADXPATH);
    }

    String qualPath = propName + XMPPathFactory.composeQualifierPath(qualNS, qualName);
    setProperty(schemaNS, qualPath, qualValue, options);
  }
View Full Code Here

      arrayNode.addChild(itemIndex, itemNode);
      setNode(itemNode, itemValue, itemOptions, false);
    }
    else
    {
      throw new XMPException("Array index out of bounds", XMPError.BADINDEX);
    }
  }
View Full Code Here

    }
    else
    {
      if (value != null && value.toString().length() > 0)
      {
        throw new XMPException("Composite nodes can't have values", XMPError.BADXPATH);
      }

      node.removeChildren();
    }
View Full Code Here

   */
  public static void assertArrayName(String arrayName) throws XMPException
  {
    if (arrayName == null  ||  arrayName.length() == 0)
    {
      throw new XMPException("Empty array name", XMPError.BADPARAM);
    }
  }
View Full Code Here

   */
  public static void assertPropName(String propName) throws XMPException
  {
    if (propName == null  ||  propName.length() == 0)
    {
      throw new XMPException("Empty property name", XMPError.BADPARAM);
    }
  }
View Full Code Here

   */
  public static void assertSchemaNS(String schemaNS) throws XMPException
  {
    if (schemaNS == null  ||  schemaNS.length() == 0)
    {
      throw new XMPException("Empty schema namespace URI", XMPError.BADPARAM);
    }
  }
View Full Code Here

   */
  public static void assertPrefix(String prefix) throws XMPException
  {
    if (prefix == null  ||  prefix.length() == 0)
    {
      throw new XMPException("Empty prefix", XMPError.BADPARAM);
    }
  }
View Full Code Here

   */
  public static void assertSpecificLang(String specificLang) throws XMPException
  {
    if (specificLang == null  ||  specificLang.length() == 0)
    {
      throw new XMPException("Empty specific language", XMPError.BADPARAM);
    }
  }
View Full Code Here

   */
  public static void assertStructName(String structName) throws XMPException
  {
    if (structName == null  ||  structName.length() == 0)
    {
      throw new XMPException("Empty array name", XMPError.BADPARAM);
    }
  }
View Full Code Here

TOP

Related Classes of com.adobe.xmp.XMPException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.