Package com.qspin.qtaste.tools.converter.model

Examples of com.qspin.qtaste.tools.converter.model.ComponentNameMapping


    }
  }
 
  protected String getComponentIdentifier(String pComponentName)
  {
    ComponentNameMapping mapping = ComponentNameMapping.getInstance();
    if ( mapping.hasAlias(pComponentName) )
    {
      return mapping.getAliasFor(pComponentName);
    } else {
      return "\"" + pComponentName + "\"";
    }
  }
View Full Code Here


    }
  }
 
  protected void writeAliases(BufferedWriter pWriter) throws IOException
  {
    ComponentNameMapping mapping = ComponentNameMapping.getInstance();
    boolean first = true;
    for ( Object componentName : mAcceptedComponentName )
    {
      if( mapping.hasAlias(componentName.toString()) )
      {
        if ( first )
        {
          pWriter.newLine();
          pWriter.write("# Component aliases");
          pWriter.newLine();
          first = false;
        }
        pWriter.write(mapping.getAliasFor(componentName.toString()) + " = \"" + componentName + "\"" );
        pWriter.newLine();
      }
    }
  }
View Full Code Here

TOP

Related Classes of com.qspin.qtaste.tools.converter.model.ComponentNameMapping

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.