Examples of XMPPath


Examples of com.adobe.xmp.impl.xpath.XMPPath

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

      XMPPath expPath = XMPPathParser.expandXPath(schemaNS, propName);

      XMPNode propNode = XMPNodeUtils.findNode(tree, expPath, false, null);
      if (propNode != null)
      {
        XMPNodeUtils.deleteNode(propNode);
View Full Code Here

Examples of com.adobe.xmp.impl.xpath.XMPPath

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

      XMPPath expPath = XMPPathParser.expandXPath(schemaNS, propName);
      final XMPNode propNode = XMPNodeUtils.findNode(tree, expPath, false, null);
      return propNode != null;
    }
    catch (XMPException e)
    {
View Full Code Here

Examples of com.adobe.xmp.impl.xpath.XMPPath

    ParameterAsserts.assertSpecificLang(specificLang);

    genericLang = genericLang != null ? Utils.normalizeLangValue(genericLang) : null;
    specificLang = Utils.normalizeLangValue(specificLang);

    XMPPath arrayPath = XMPPathParser.expandXPath(schemaNS, altTextName);
    XMPNode arrayNode = XMPNodeUtils.findNode(tree, arrayPath, false, null);
    if (arrayNode == null)
    {
      return null;
    }
View Full Code Here

Examples of com.adobe.xmp.impl.xpath.XMPPath

    ParameterAsserts.assertSpecificLang(specificLang);

    genericLang = genericLang != null ? Utils.normalizeLangValue(genericLang) : null;
    specificLang = Utils.normalizeLangValue(specificLang);

    XMPPath arrayPath = XMPPathParser.expandXPath(schemaNS, altTextName);

    // Find the array node and set the options if it was just created.
    XMPNode arrayNode = XMPNodeUtils.findNode(tree, arrayPath, true, new PropertyOptions(
        PropertyOptions.ARRAY | PropertyOptions.ARRAY_ORDERED
            | PropertyOptions.ARRAY_ALTERNATE | PropertyOptions.ARRAY_ALT_TEXT));
View Full Code Here

Examples of com.adobe.xmp.impl.xpath.XMPPath

      throws XMPException
  {
    ParameterAsserts.assertSchemaNS(schemaNS);
    ParameterAsserts.assertPropName(propName);

    final XMPPath expPath = XMPPathParser.expandXPath(schemaNS, propName);
    final XMPNode propNode = XMPNodeUtils.findNode(tree, expPath, false, null);

    if (propNode != null)
    {
      if (valueType != VALUE_STRING && propNode.getOptions().isCompositeProperty())
View Full Code Here

Examples of com.adobe.xmp.impl.xpath.XMPPath

      throws XMPException
  {
    ParameterAsserts.assertSchemaNS(schemaNS);
    ParameterAsserts.assertPropName(propName);

    final XMPPath expPath = XMPPathParser.expandXPath(schemaNS, propName);
    final XMPNode propNode = XMPNodeUtils.findNode(tree, expPath, false, null);

    if (propNode != null)
    {
      if (valueType != VALUE_STRING && propNode.getOptions().isCompositeProperty())
View Full Code Here

Examples of com.adobe.xmp.impl.xpath.XMPPath

  {
    ParameterAsserts.assertSchemaNS(schemaNS);
    ParameterAsserts.assertArrayName(arrayName);

    // Just lookup, don't try to create.
    XMPPath arrayPath = XMPPathParser.expandXPath(schemaNS, arrayName);
    XMPNode arrayNode = XMPNodeUtils.findNode(tree, arrayPath, false, null);

    if (arrayNode != null)
    {
      doSetArrayItem(arrayNode, itemIndex, itemValue, options, false);
View Full Code Here

Examples of com.adobe.xmp.impl.xpath.XMPPath

  {
    ParameterAsserts.assertSchemaNS(schemaNS);
    ParameterAsserts.assertArrayName(arrayName);

    // Just lookup, don't try to create.
    XMPPath arrayPath = XMPPathParser.expandXPath(schemaNS, arrayName);
    XMPNode arrayNode = XMPNodeUtils.findNode(tree, arrayPath, false, null);

    if (arrayNode != null)
    {
      doSetArrayItem(arrayNode, itemIndex, itemValue, options, true);
View Full Code Here

Examples of com.adobe.xmp.impl.xpath.XMPPath

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

    options = XMPNodeUtils.verifySetOptions(options, propValue);

    XMPPath expPath = XMPPathParser.expandXPath(schemaNS, propName);

    XMPNode propNode = XMPNodeUtils.findNode(tree, expPath, true, options);
    if (propNode != null)
    {
      setNode(propNode, propValue, options, false);
View Full Code Here

Examples of com.itextpdf.xmp.impl.xpath.XMPPath

      String fieldName) throws XMPException
  {
    assertFieldNS(fieldNS);
    assertFieldName(fieldName);
   
    XMPPath fieldPath = XMPPathParser.expandXPath(fieldNS, fieldName);
    if (fieldPath.size() != 2)
    {
      throw new XMPException("The field name must be simple", XMPError.BADXPATH);
    }
   
    return '/' + fieldPath.getSegment(XMPPath.STEP_ROOT_PROP).getName();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.