Examples of DocumentObject


Examples of com.subgraph.orchid.directory.parsing.DocumentObject

  public IPv4Address parseAddress() {
    return IPv4Address.createFromString(getItem());
  }

  public TorPublicKey parsePublicKey() {
    final DocumentObject documentObject = parseObject();
    return TorPublicKey.createFromPEMBuffer(documentObject.getContent());
  }
View Full Code Here

Examples of com.subgraph.orchid.directory.parsing.DocumentObject

    }
    return key;
  }

  public TorSignature parseSignature() {
    final DocumentObject documentObject = parseObject();
    TorSignature s = TorSignature.createFromPEMBuffer(documentObject.getContent());
    return s;
  }
View Full Code Here

Examples of com.subgraph.orchid.directory.parsing.DocumentObject

      }
    }
  }

  public DocumentObject parseTypedObject(String type) {
    final DocumentObject object = parseObject();
    if(!type.equals(object.getKeyword()))
      throw new TorParsingException("Unexpected object type.  Expecting: "+ type +", but got: "+ object.getKeyword());
    return object;
  }
View Full Code Here

Examples of com.subgraph.orchid.directory.parsing.DocumentObject

  }

  public DocumentObject parseObject() {
    final String line = readLine();
    final String keyword = parseObjectHeader(line);
    final DocumentObject object = new DocumentObject(keyword, line);
    parseObjectBody(object, keyword);
    return object;
  }
View Full Code Here

Examples of com.subgraph.orchid.directory.parsing.DocumentObject

      break;
    }
  }
 
  private void processIntroductionPoints() {
    final DocumentObject ob = fieldParser.parseObject();
    final ByteBuffer buffer = createIntroductionPointBuffer(ob);
    final IntroductionPointParser parser = new IntroductionPointParser(new DocumentFieldParserImpl(buffer));
    parser.parse(new DocumentParsingResultHandler<IntroductionPoint>() {

      public void documentParsed(IntroductionPoint document) {
View Full Code Here

Examples of org.eclipse.e4.xwt.internal.xml.DocumentObject

    if (value != null) {
      return value;
    }
    String content = element.getContent();
    if (content == null) {
      DocumentObject member = element.getAttribute(IConstants.XWT_NAMESPACE, IConstants.XAML_X_STATIC_MEMBER);
      if (member == null) {
        member = element;
      }
      if (member != null) {
        content = member.getContent();
        if (content == null) {
          for (DocumentObject documentObject : member.getChildren()) {
            String ns = documentObject.getNamespace();
            String n = documentObject.getName();
            return doLoadMember(loadingContext, n, ns);
          }
        }
View Full Code Here

Examples of org.eclipse.e4.xwt.internal.xml.DocumentObject

    String namespace = columnElement.getNamespace();
    IMetaclass metaclass = loader.getMetaclass(name, namespace);
    int index = -1;
    Class<?> type = metaclass.getType();
    if (TableViewerColumn.class.isAssignableFrom(type)) {
      DocumentObject parent = columnElement.getParent();
      List<DocumentObject> children = DocumentObjectSorter.sortWithAttr(
          parent.getChildren(), "Index");
      index = children.indexOf(columnElement);
    }

    return index;
  }
View Full Code Here

Examples of org.eclipse.e4.xwt.internal.xml.DocumentObject

      {
        Attribute dataContextAttribute = element
            .getAttribute(IConstants.XAML_DATA_CONTEXT);
        if (dataContextAttribute != null) {
          Widget composite = (Widget) swtObject;
          DocumentObject documentObject = dataContextAttribute
              .getChildren()[0];
          if (IConstants.XAML_STATICRESOURCES.equals(documentObject
              .getName())
              || IConstants.XAML_DYNAMICRESOURCES
                  .equals(documentObject.getName())) {
            String key = documentObject.getContent();
            dataContext = new StaticResourceBinding(composite, key);
            loadData.setDataContext(dataContext);
            return dataContext;
          } else if (IConstants.XAML_BINDING.equals(documentObject
              .getName())) {
            dataContext = doCreate(swtObject, (Element) documentObject,
                null, EMPTY_MAP);
            loadData.setDataContext(dataContext);
            return dataContext;
          } else {
            LoggerManager.log(new UnsupportedOperationException(
                documentObject.getName()));
          }
        }
      }
    } catch (Exception e) {
      LoggerManager.log(e);
View Full Code Here

Examples of org.eclipse.e4.xwt.internal.xml.DocumentObject

      {
        Attribute dataContextAttribute = element
            .getAttribute(IConstants.XAML_BINDING_CONTEXT);
        if (dataContextAttribute != null) {
          Widget composite = (Widget) swtObject;
          DocumentObject documentObject = dataContextAttribute
              .getChildren()[0];
          if (IConstants.XAML_STATICRESOURCES.equals(documentObject
              .getName())
              || IConstants.XAML_DYNAMICRESOURCES
                  .equals(documentObject.getName())) {
            String key = documentObject.getContent();
            return new StaticResourceBinding(composite, key);
          } else if (IConstants.XAML_BINDING.equals(documentObject
              .getName())) {
            return doCreate(swtObject, (Element) documentObject,
                null, EMPTY_MAP);
          } else {
            LoggerManager.log(new UnsupportedOperationException(
                documentObject.getName()));
          }
        }
      }
    } catch (Exception e) {
      LoggerManager.log(e);
View Full Code Here

Examples of org.eclipse.e4.xwt.internal.xml.DocumentObject

          .getAttribute(IConstants.XAML_DATA_CONTEXT);
      if (dataContextAttribute != null) {
        IProperty property = metaclass
            .findProperty(IConstants.XAML_DATA_CONTEXT);
        Widget composite = (Widget) UserData.getWidget(targetObject);
        DocumentObject documentObject = dataContextAttribute
            .getChildren()[0];
        if (IConstants.XAML_STATICRESOURCES.equals(documentObject
            .getName())
            || IConstants.XAML_DYNAMICRESOURCES
                .equals(documentObject.getName())) {
          String key = documentObject.getContent();
          property.setValue(composite, new StaticResourceBinding(
              composite, key));
        } else if (IConstants.XAML_BINDING.equals(documentObject
            .getName())) {
          Object object = doCreate(targetObject,
              (Element) documentObject, null, EMPTY_MAP);
          property.setValue(composite, object);
        } else {
          LoggerManager.log(new UnsupportedOperationException(
              documentObject.getName()));
        }
      }
    }

    HashSet<String> done = new HashSet<String>();
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.