Java 类com.sun.codemodel.internal.fmt.JTextFile 实例源码

项目:OpenJSharp    文件:BGMBuilder.java   
/**
 * Generates <code>package.html</code> if the customization
 * says so.
 */
private void processPackageJavadoc( XSSchema s ) {
    // look for the schema-wide customization
    BISchemaBinding cust = getBindInfo(s).get(BISchemaBinding.class);
    if(cust==null)      return; // not present

    cust.markAsAcknowledged();
    if( cust.getJavadoc()==null )   return;     // no javadoc customization

    // produce a HTML file
    JTextFile html = new JTextFile("package.html");
    html.setContents(cust.getJavadoc());
    getClassSelector().getPackage(s.getTargetNamespace()).addResourceFile(html);
}
项目:openjdk-jdk10    文件:BGMBuilder.java   
/**
 * Generates <code>package.html</code> if the customization
 * says so.
 */
private void processPackageJavadoc( XSSchema s ) {
    // look for the schema-wide customization
    BISchemaBinding cust = getBindInfo(s).get(BISchemaBinding.class);
    if(cust==null)      return; // not present

    cust.markAsAcknowledged();
    if( cust.getJavadoc()==null )   return;     // no javadoc customization

    // produce a HTML file
    JTextFile html = new JTextFile("package.html");
    html.setContents(cust.getJavadoc());
    getClassSelector().getPackage(s.getTargetNamespace()).addResourceFile(html);
}
项目:openjdk9    文件:BGMBuilder.java   
/**
 * Generates <code>package.html</code> if the customization
 * says so.
 */
private void processPackageJavadoc( XSSchema s ) {
    // look for the schema-wide customization
    BISchemaBinding cust = getBindInfo(s).get(BISchemaBinding.class);
    if(cust==null)      return; // not present

    cust.markAsAcknowledged();
    if( cust.getJavadoc()==null )   return;     // no javadoc customization

    // produce a HTML file
    JTextFile html = new JTextFile("package.html");
    html.setContents(cust.getJavadoc());
    getClassSelector().getPackage(s.getTargetNamespace()).addResourceFile(html);
}
项目:lookaside_java-1.8.0-openjdk    文件:BGMBuilder.java   
/**
 * Generates <code>package.html</code> if the customization
 * says so.
 */
private void processPackageJavadoc( XSSchema s ) {
    // look for the schema-wide customization
    BISchemaBinding cust = getBindInfo(s).get(BISchemaBinding.class);
    if(cust==null)      return; // not present

    cust.markAsAcknowledged();
    if( cust.getJavadoc()==null )   return;     // no javadoc customization

    // produce a HTML file
    JTextFile html = new JTextFile("package.html");
    html.setContents(cust.getJavadoc());
    getClassSelector().getPackage(s.getTargetNamespace()).addResourceFile(html);
}
项目:infobip-open-jdk-8    文件:BGMBuilder.java   
/**
 * Generates <code>package.html</code> if the customization
 * says so.
 */
private void processPackageJavadoc( XSSchema s ) {
    // look for the schema-wide customization
    BISchemaBinding cust = getBindInfo(s).get(BISchemaBinding.class);
    if(cust==null)      return; // not present

    cust.markAsAcknowledged();
    if( cust.getJavadoc()==null )   return;     // no javadoc customization

    // produce a HTML file
    JTextFile html = new JTextFile("package.html");
    html.setContents(cust.getJavadoc());
    getClassSelector().getPackage(s.getTargetNamespace()).addResourceFile(html);
}
项目:OLD-OpenJDK8    文件:BGMBuilder.java   
/**
 * Generates <code>package.html</code> if the customization
 * says so.
 */
private void processPackageJavadoc( XSSchema s ) {
    // look for the schema-wide customization
    BISchemaBinding cust = getBindInfo(s).get(BISchemaBinding.class);
    if(cust==null)      return; // not present

    cust.markAsAcknowledged();
    if( cust.getJavadoc()==null )   return;     // no javadoc customization

    // produce a HTML file
    JTextFile html = new JTextFile("package.html");
    html.setContents(cust.getJavadoc());
    getClassSelector().getPackage(s.getTargetNamespace()).addResourceFile(html);
}
项目:openjdk-icedtea7    文件:BGMBuilder.java   
/**
 * Generates <code>package.html</code> if the customization
 * says so.
 */
private void processPackageJavadoc( XSSchema s ) {
    // look for the schema-wide customization
    BISchemaBinding cust = getBindInfo(s).get(BISchemaBinding.class);
    if(cust==null)      return; // not present

    cust.markAsAcknowledged();
    if( cust.getJavadoc()==null )   return;     // no javadoc customization

    // produce a HTML file
    JTextFile html = new JTextFile("package.html");
    html.setContents(cust.getJavadoc());
    getClassSelector().getPackage(s.getTargetNamespace()).addResourceFile(html);
}