Package org.dbwiki.data.schema

Examples of org.dbwiki.data.schema.GroupSchemaNode.children()


      // If it's the last element of the URL path the nodeIdentifier could be the node label
      // of an attribute node or a key value for an internal node.
      // First check whether the nodeIdentifier is a valid node label for the current
      // schema node.
      for (int iChild = 0; iChild < schemaNode.children().size(); iChild++) {
        SchemaNode childSchema = schemaNode.children().get(iChild);
        if ((childSchema.label().equals(nodeIdentifier)) && (childSchema.isAttribute())) {
          // Make sure that there is only one child
          DatabaseElementList nodes = node.find(childSchema.path().substring(node.schema().path().length() + 1));
          if (nodes.size() > 1) {
            throw new WikiDataException(WikiDataException.UnknownResource, url.toString());
View Full Code Here


        }
      }
      // This part of the code is only reached if the nodeIdentifier does not point
      // to an attribute node. There should only be one schema node child with a rule defined
      // for that node.
      for (int iChild = 0; iChild < schemaNode.children().size(); iChild++) {
        URLDecodingRule childRule = this.get(schemaNode.children().get(iChild));
        if (childRule != null) {
          if (rule == null) {
            rule = childRule;
          } else {
View Full Code Here

      }
      // This part of the code is only reached if the nodeIdentifier does not point
      // to an attribute node. There should only be one schema node child with a rule defined
      // for that node.
      for (int iChild = 0; iChild < schemaNode.children().size(); iChild++) {
        URLDecodingRule childRule = this.get(schemaNode.children().get(iChild));
        if (childRule != null) {
          if (rule == null) {
            rule = childRule;
          } else {
            throw new WikiDataException(WikiDataException.UnknownResource, url.toString());
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.