Package org.bladerunnerjs.aliasing

Examples of org.bladerunnerjs.aliasing.AliasNameIsTheSameAsTheClassException


    String aliasName = streamReader.getAttributeValue(null, "name");
    String aliasClass = streamReader.getAttributeValue(null, "defaultClass");
    String aliasInterface = streamReader.getAttributeValue(null, "interface");
   
    if (aliasName.equals(aliasClass)) {
      throw new AliasNameIsTheSameAsTheClassException(aliasDefinitionsFile, aliasName);
    }
   
    assetLocation.assertIdentifierCorrectlyNamespaced(aliasName);
   
    data.aliasDefinitions.add(new AliasDefinition(aliasName, aliasClass, aliasInterface));
View Full Code Here


  private static void processAlias(XMLStreamReader2 streamReader, AliasesData aliasesData, File aliasesFile) throws AliasException {
    String aliasName = streamReader.getAttributeValue(null, "name");
    String aliasClass = streamReader.getAttributeValue(null, "class");
   
    if (aliasName.equals(aliasClass)) {
      throw new AliasNameIsTheSameAsTheClassException(aliasesFile, aliasName);
    }
   
    if((aliasClass == null) || (aliasClass.equals(""))) {
      throw new IncompleteAliasException(aliasesFile, aliasName);
    }
View Full Code Here

TOP

Related Classes of org.bladerunnerjs.aliasing.AliasNameIsTheSameAsTheClassException

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.