Package org.dmd.dms

Examples of org.dmd.dms.TypeDefinition


      out.write("    <tr>\n");
      out.write("      <td class=\"spacer\"> </td>\n");
      out.write("      <td class=\"label\"> Field " + fieldNum + "</td>\n");
      out.write("      <td> " + field.getName() + " </td>\n");
     
      TypeDefinition fieldType = sm.tdef(field.getType().getObjectName().getNameString());
      if (fieldType == null)
        fieldType = sm.findInternalType(new StringName(field.getType().getObjectName().getNameString()));
     
      String type     = TypeFormatter.getTypeName(fieldType);
      String schema     = fieldType.getDefinedIn().getName().getNameString();

      out.write("      <td class=\"attrType\"> <a href=\"" + schema + ".html#" + type + "\">" + type + "</a> </td>\n");
     
      out.write("      <td> " + field.getDescription() + " </td>\n");
      out.write("    </tr>\n\n");
View Full Code Here


   
  }

  static void usage(BufferedWriter out, SchemaManager schema, ExtendedReferenceTypeDefinition td) throws IOException {
    // We have to determine the usage from the internally generated type
    TypeDefinition internalType = schema.findInternalType(td.getName());
    ArrayList<DmwWrapper> referring = internalType.getReferringObjects();
   
    // There's always one reference because the schema refers to its complex types
    if ( (referring != null) && (referring.size() > 1) ){
//    if (referring != null){
      TreeMap<StringName,AttributeDefinition>  attributes = new TreeMap<StringName, AttributeDefinition>();
View Full Code Here

      out.write("    <tr>\n");
      out.write("      <td class=\"spacer\"> </td>\n");
      out.write("      <td class=\"label\"> Field " + fieldNum + "</td>\n");
      out.write("      <td> " + field.getName() + " </td>\n");
     
      TypeDefinition fieldType = sm.tdef(field.getType().getObjectName().getNameString());
      if (fieldType == null)
        fieldType = sm.findInternalType(new StringName(field.getType().getObjectName().getNameString()));
     
      String type     = TypeFormatter.getTypeName(fieldType);
      String schema     = fieldType.getDefinedIn().getName().getNameString();

      out.write("      <td class=\"attrType\"> <a href=\"" + schema + ".html#" + type + "\">" + type + "</a> </td>\n");
     
      out.write("      <td> " + field.getDescription() + " </td>\n");
      out.write("    </tr>\n\n");
View Full Code Here

   
  }

  static void usage(BufferedWriter out, SchemaManager schema, ComplexTypeDefinition td) throws IOException {
    // We have to determine the usage from the internally generated type
    TypeDefinition internalType = schema.findInternalType(td.getName());
    ArrayList<DmwWrapper> referring = internalType.getReferringObjects();
   
    // There's always one reference because the schema refers to its complex types
    if ( (referring != null) && (referring.size() > 1) ){
//    if (referring != null){
      TreeMap<StringName,AttributeDefinition>  attributes = new TreeMap<StringName, AttributeDefinition>();
View Full Code Here

TOP

Related Classes of org.dmd.dms.TypeDefinition

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.