Package org.dbwiki.data.schema

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


      this.printInsertLine(schema, body);
      body.closeTABLE();
    } else {
      body.openTABLE(layout.getCSS(CSS.CSSObjectFrame));
      GroupSchemaNode groupSchemaNode = (GroupSchemaNode)schema;
      for (int iChild = 0; iChild < groupSchemaNode.children().size(); iChild++) {
        SchemaNode child = groupSchemaNode.children().get(iChild);
        // skip deleted entities
        if (!child.getTimestamp().isCurrent())
          continue;
        if (child.isAttribute()) {
View Full Code Here


      body.closeTABLE();
    } else {
      body.openTABLE(layout.getCSS(CSS.CSSObjectFrame));
      GroupSchemaNode groupSchemaNode = (GroupSchemaNode)schema;
      for (int iChild = 0; iChild < groupSchemaNode.children().size(); iChild++) {
        SchemaNode child = groupSchemaNode.children().get(iChild);
        // skip deleted entities
        if (!child.getTimestamp().isCurrent())
          continue;
        if (child.isAttribute()) {
          body.openTR();
View Full Code Here

    GroupSchemaNode schemaNode = (GroupSchemaNode)list.schema();
   
    content.openTABLE(layout.getCSS(CSS.CSSContentTable));
     
    content.openTR();
    for (int iColumn = 0; iColumn < schemaNode.children().size(); iColumn++) {
      SchemaNode columnSchemaNode = schemaNode.children().get(iColumn);
      // only display columns for entities that have not been deleted
      if (versionParameter.matches(columnSchemaNode)) {
        SchemaLayout schemaLayout = _layouter.get(columnSchemaNode);
        if (active) {
View Full Code Here

   
    content.openTABLE(layout.getCSS(CSS.CSSContentTable));
     
    content.openTR();
    for (int iColumn = 0; iColumn < schemaNode.children().size(); iColumn++) {
      SchemaNode columnSchemaNode = schemaNode.children().get(iColumn);
      // only display columns for entities that have not been deleted
      if (versionParameter.matches(columnSchemaNode)) {
        SchemaLayout schemaLayout = _layouter.get(columnSchemaNode);
        if (active) {
          content.openTH(layout.getCSS(CSS.CSSContentCellActive));
View Full Code Here

    for (int iNode = 0; iNode < list.size(); iNode++) {
      DatabaseGroupNode groupNode = (DatabaseGroupNode)list.get(iNode);
      // only display nodes that have not been deleted
      if (versionParameter.matches(groupNode)) {
        content.openTR();
        for (int iColumn = 0; iColumn < schemaNode.children().size(); iColumn++) {
          //DatabaseElementList nodes = groupNode.children().get(schemaNode.children().get(iColumn));
          DatabaseElementList nodes = groupNode.children().get(schemaNode.children().get(iColumn).label());
          if (groupNode.getTimestamp().isCurrent()) {
            content.openTD(layout.getCSS(CSS.CSSContentCellActive));
          } else {
View Full Code Here

      // only display nodes that have not been deleted
      if (versionParameter.matches(groupNode)) {
        content.openTR();
        for (int iColumn = 0; iColumn < schemaNode.children().size(); iColumn++) {
          //DatabaseElementList nodes = groupNode.children().get(schemaNode.children().get(iColumn));
          DatabaseElementList nodes = groupNode.children().get(schemaNode.children().get(iColumn).label());
          if (groupNode.getTimestamp().isCurrent()) {
            content.openTD(layout.getCSS(CSS.CSSContentCellActive));
          } else {
            content.openTD(layout.getCSS(CSS.CSSContentCellInactive));
          }
View Full Code Here

      boolean matches = false;
      if (schema.isAttribute()) {
        return false;
      } else {
        GroupSchemaNode group = (GroupSchemaNode)schema;
        for (int iElement = 0; iElement < group.children().size(); iElement++) {
          if (matches(group.children().get(iElement))) {
            matches = true;
            break;
          }
        }
View Full Code Here

      if (schema.isAttribute()) {
        return false;
      } else {
        GroupSchemaNode group = (GroupSchemaNode)schema;
        for (int iElement = 0; iElement < group.children().size(); iElement++) {
          if (matches(group.children().get(iElement))) {
            matches = true;
            break;
          }
        }
      }
View Full Code Here

   
    int pos = nodeIdentifier.indexOf(':');

    if (pos != -1) {
      String nodeLabel = nodeIdentifier.substring(0, pos);
      rule = this.get(schemaNode.children().get(nodeLabel));
      keyValue = nodeIdentifier.substring(pos + 1);
    } else {
      // 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
View Full Code Here

    } else {
      // 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) {
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.