Examples of XMPPath


Examples of com.itextpdf.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.itextpdf.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.itextpdf.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.itextpdf.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.itextpdf.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.itextpdf.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.itextpdf.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

      startNode = xmp.getRoot();
    }
    else if (baseSchema  &&  baseProperty)
    {
      // Schema and property node provided
      XMPPath path = XMPPathParser.expandXPath(schemaNS, propPath);
     
      // base path is the prop path without the property leaf
      XMPPath basePath = new XMPPath();
      for (int i = 0; i < path.size() - 1; i++)
      {
        basePath.add(path.getSegment(i));
      }
     
      startNode = XMPNodeUtils.findNode(xmp.getRoot(), path, false, null);
      baseNS = schemaNS;
      initialPath = basePath.toString();
    }
    else if (baseSchema  &&  !baseProperty)
    {
      // Only Schema provided
      startNode = XMPNodeUtils.findSchemaNode(xmp.getRoot(), schemaNS, false);
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.