Package org.objectweb.speedo.generation.api

Examples of org.objectweb.speedo.generation.api.SpeedoXMLError


    private void treatDataStoreId(Node dsiNode, SpeedoClass moClass) throws SpeedoException {
        SpeedoIdentity ident = new SpeedoIdentity(); //default strategy is native
        //<!ATTLIST datastore-identity strategy CDATA 'native'>
        Node n = dsiNode.getAttributes().getNamedItem("strategy");
        if (n == null)
            throw new SpeedoXMLError("Attribute strategy for tag datastore-identity requested.");
        ident.strategy = SpeedoIdentity.getStrategy(n.getNodeValue());

        //<!ATTLIST datastore-identity sequence CDATA #IMPLIED>
        n = dsiNode.getAttributes().getNamedItem("sequence");
        if (n != null)
View Full Code Here


      Node n = null;

    //<!ATTLIST field name CDATA #REQUIRED>
        n = fieldNode.getAttributes().getNamedItem("name");
        if (n == null)
            throw new SpeedoXMLError("Attribute name for tag field requested.");
        String name = n.getNodeValue();
        //add the field name to the index
        moIndex.fieldNames.add(name);
        //try to add the column name(s) to the index
        SpeedoField sf = (SpeedoField) moClass.fields.get(name);
        if (sf == null)
          throw new SpeedoXMLError("The field " + name + " must be defined for the class "
              + moClass.name +".");
        if( sf.columns != null  && sf.columns.length != 0) {
          for(int i = 0; i < sf.columns.length; i++) {
            moIndex.columnNames.add(sf.columns[i].name);
          }
View Full Code Here

    Node n = null;

    //<!ATTLIST field name CDATA #REQUIRED>
        n = fieldNode.getAttributes().getNamedItem("name");
        if (n == null)
            throw new SpeedoXMLError("Attribute name for tag field requested.");
        String name = n.getNodeValue();
        int dotIdx = name.lastIndexOf(".");
        SpeedoField f = null;
        SpeedoCommonField cf;
        FieldContext fc = new FieldContext();
View Full Code Here

TOP

Related Classes of org.objectweb.speedo.generation.api.SpeedoXMLError

Copyright © 2018 www.massapicom. 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.