Package org.objectweb.speedo.metadata

Examples of org.objectweb.speedo.metadata.SpeedoExtension


    private void visitExtension(SpeedoElement se) throws SpeedoException {
        if (se.jdoExtension.size() == 0) {
          logger.log(BasicLevel.DEBUG, "no extensionto visit");
        } else {
          for(int i=0; i<se.jdoExtension.size(); i++) {
              SpeedoExtension ext = (SpeedoExtension) se.jdoExtension.get(i);
              logger.log(BasicLevel.DEBUG, "Visit extension "
                      + ext.key + "=" + ext.value);
              visitExtension(ext);
          }
        }
View Full Code Here


    private void createPrimitiveField(SpeedoClass sc,
            Class clazz,
            SpeedoField sp,
            ClassMapping cm,
            JormMIMappingBuilder mb)throws SpeedoException, PException {
        SpeedoExtension se = sp.getExtensionByKey(SpeedoProperties.FIELD_CONVERTER);
        PType ptype = null;
        String className = null;
        if (se != null) {
            try {
                UserFieldMapping ufm = (UserFieldMapping)
View Full Code Here

            pfg.addFetchGroup(fg);
        }
        return fg;
    }
    private Object treatExtension(Node node, Object mo) throws SpeedoException {
        SpeedoExtension e = new SpeedoExtension();
        //attribute vendor-name
        Node n = node.getAttributes().getNamedItem("vendor-name");
        e.vendorName = n.getNodeValue();
        //attribute key
        n = node.getAttributes().getNamedItem("key");
View Full Code Here

        f.reverseNumber = f.reverseField.number;
  }

  public void fillUserFieldMappingInfo(Field f, SpeedoField sp)
    throws SpeedoException {
    SpeedoExtension se =
      sp.getExtensionByKey(SpeedoProperties.FIELD_CONVERTER);
    if (se == null) {
      return;
    }
    f.userFieldMapping = se.value;
View Full Code Here

                treatExtension((Node) nodes.get(i), se);
            }
        }
    }
    private void treatExtension(Node node, SpeedoElement se) throws SpeedoException {
        SpeedoExtension e = new SpeedoExtension();
        //<!ATTLIST extension vendor-name CDATA #REQUIRED>
        Node n = node.getAttributes().getNamedItem("vendor-name");
        e.vendorName = n.getNodeValue();
        //<!ATTLIST extension key CDATA #IMPLIED>
        n = node.getAttributes().getNamedItem("key");
View Full Code Here

TOP

Related Classes of org.objectweb.speedo.metadata.SpeedoExtension

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.