Package com.sun.mirror.util

Examples of com.sun.mirror.util.SourcePosition.file()


      AntPatternMatcher matcher = new AntPatternMatcher();
      matcher.setPathSeparator(".");
      for (WebFault webFault : allFaults.values()) {
        if (useServerSide(webFault, matcher)) {
          SourcePosition position = webFault.getPosition();
          if (position == null || position.file() == null) {
            throw new IllegalStateException("Unable to find source file for " + webFault.getQualifiedName());
          }
          File sourceFile = position.file();
          getEnunciate().copyFile(sourceFile, getServerSideDestFile(sourceFile, webFault));
        }
View Full Code Here


        if (useServerSide(webFault, matcher)) {
          SourcePosition position = webFault.getPosition();
          if (position == null || position.file() == null) {
            throw new IllegalStateException("Unable to find source file for " + webFault.getQualifiedName());
          }
          File sourceFile = position.file();
          getEnunciate().copyFile(sourceFile, getServerSideDestFile(sourceFile, webFault));
        }
        else {
          ClassDeclaration superFault = webFault.getSuperclass().getDeclaration();
          if (superFault != null && allFaults.containsKey(superFault.getQualifiedName()) && allFaults.get(superFault.getQualifiedName()).isImplicitSchemaElement()) {
View Full Code Here

      for (SchemaInfo schemaInfo : model.getNamespacesToSchemas().values()) {
        for (TypeDefinition typeDefinition : schemaInfo.getTypeDefinitions()) {
          if (FacetFilter.accept(typeDefinition)) {
            if (useServerSide(typeDefinition, matcher)) {
              SourcePosition position = typeDefinition.getPosition();
              if (position == null || position.file() == null) {
                throw new IllegalStateException("Unable to find source file for " + typeDefinition.getQualifiedName());
              }
              File sourceFile = position.file();
              getEnunciate().copyFile(sourceFile, getServerSideDestFile(sourceFile, typeDefinition));
            }
View Full Code Here

            if (useServerSide(typeDefinition, matcher)) {
              SourcePosition position = typeDefinition.getPosition();
              if (position == null || position.file() == null) {
                throw new IllegalStateException("Unable to find source file for " + typeDefinition.getQualifiedName());
              }
              File sourceFile = position.file();
              getEnunciate().copyFile(sourceFile, getServerSideDestFile(sourceFile, typeDefinition));
            }
            else {
              model.put("rootEl", model.findRootElementDeclaration(typeDefinition));
              model.put("type", typeDefinition);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.