Tabnine Logo
ClassDefinition.write
Code IndexAdd Tabnine to your IDE (free)

How to use
write
method
in
org.eclipse.persistence.internal.codegen.ClassDefinition

Best Java code snippets using org.eclipse.persistence.internal.codegen.ClassDefinition.write (Showing top 9 results out of 315)

origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * PUBLIC:
 * Generate the creator class, output the java source code to the stream or file.
 * useUnicode determines if unicode escaped characters for non_ASCII charaters will be used.
 */
public void generate(boolean useUnicode) throws ValidationException {
  if (getOutputWriter() == null) {
    try {
      setOutputWriter(new OutputStreamWriter(new FileOutputStream(getOutputPath() + getOutputFileName())));
    } catch (IOException exception) {
      throw ValidationException.fileError(exception);
    }
  }
  CodeGenerator generator = new CodeGenerator(useUnicode);
  generator.setOutput(getOutputWriter());
  generateCreatorClass().write(generator);
  try {
    getOutputWriter().flush();
    getOutputWriter().close();
  } catch (IOException exception) {
    throw ValidationException.fileError(exception);
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * PUBLIC:
 * Generate the project class, output the java source code to the stream or file.
 * useUnicode determines if unicode escaped characters for non_ASCII charaters will be used.
 */
public void generate(boolean useUnicode) throws ValidationException {
  if (getOutputWriter() == null) {
    try {
      setOutputWriter(new OutputStreamWriter(new FileOutputStream(getOutputPath() + getOutputFileName())));
    } catch (IOException exception) {
      throw ValidationException.fileError(exception);
    }
  }
  CodeGenerator generator = new CodeGenerator(useUnicode);
  generator.setOutput(getOutputWriter());
  generateProjectClass().write(generator);
  try {
    getOutputWriter().flush();
    getOutputWriter().close();
  } catch (IOException exception) {
    throw ValidationException.fileError(exception);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * PUBLIC:
 * Generate the project class, output the java source code to the stream or file.
 * useUnicode determines if unicode escaped characters for non_ASCII charaters will be used.
 */
public void generate(boolean useUnicode) throws ValidationException {
  if (getOutputWriter() == null) {
    try {
      setOutputWriter(new OutputStreamWriter(new FileOutputStream(getOutputPath() + getOutputFileName())));
    } catch (IOException exception) {
      throw ValidationException.fileError(exception);
    }
  }
  CodeGenerator generator = new CodeGenerator(useUnicode);
  generator.setOutput(getOutputWriter());
  generateProjectClass().write(generator);
  try {
    getOutputWriter().flush();
    getOutputWriter().close();
  } catch (IOException exception) {
    throw ValidationException.fileError(exception);
  }
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * PUBLIC:
 * Generate the creator class, output the java source code to the stream or file.
 * useUnicode determines if unicode escaped characters for non_ASCII charaters will be used.
 */
public void generate(boolean useUnicode) throws ValidationException {
  if (getOutputWriter() == null) {
    try {
      setOutputWriter(new OutputStreamWriter(new FileOutputStream(getOutputPath() + getOutputFileName())));
    } catch (IOException exception) {
      throw ValidationException.fileError(exception);
    }
  }
  CodeGenerator generator = new CodeGenerator(useUnicode);
  generator.setOutput(getOutputWriter());
  generateCreatorClass().write(generator);
  try {
    getOutputWriter().flush();
    getOutputWriter().close();
  } catch (IOException exception) {
    throw ValidationException.fileError(exception);
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * PUBLIC:
 * Generate the project class, output the java source code to the stream or file.
 * useUnicode determines if unicode escaped characters for non_ASCII charaters will be used.
 */
public void generate(boolean useUnicode) throws ValidationException {
  if (getOutputWriter() == null) {
    try {
      setOutputWriter(new OutputStreamWriter(new FileOutputStream(getOutputPath() + getOutputFileName())));
    } catch (IOException exception) {
      throw ValidationException.fileError(exception);
    }
  }
  CodeGenerator generator = new CodeGenerator(useUnicode);
  generator.setOutput(getOutputWriter());
  generateProjectClass().write(generator);
  try {
    getOutputWriter().flush();
    getOutputWriter().close();
  } catch (IOException exception) {
    throw ValidationException.fileError(exception);
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * PUBLIC:
 * Generate the creator class, output the java source code to the stream or file.
 * useUnicode determines if unicode escaped characters for non_ASCII charaters will be used.
 */
public void generate(boolean useUnicode) throws ValidationException {
  if (getOutputWriter() == null) {
    try {
      setOutputWriter(new OutputStreamWriter(new FileOutputStream(getOutputPath() + getOutputFileName())));
    } catch (IOException exception) {
      throw ValidationException.fileError(exception);
    }
  }
  CodeGenerator generator = new CodeGenerator(useUnicode);
  generator.setOutput(getOutputWriter());
  generateCreatorClass().write(generator);
  try {
    getOutputWriter().flush();
    getOutputWriter().close();
  } catch (IOException exception) {
    throw ValidationException.fileError(exception);
  }
}
origin: com.haulmont.thirdparty/eclipselink

((ClassDefinition)innerClassesEnum.nextElement()).write(generator);
generator.cr();
generator.cr();
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

((ClassDefinition)innerClassesEnum.nextElement()).write(generator);
generator.cr();
generator.cr();
origin: org.eclipse.persistence/org.eclipse.persistence.core

((ClassDefinition)innerClassesEnum.nextElement()).write(generator);
generator.cr();
generator.cr();
org.eclipse.persistence.internal.codegenClassDefinitionwrite

Javadoc

Write the code out to the generator's stream.

Popular methods of ClassDefinition

  • <init>
  • addImport
    The importStatement should be of the form "{packageName}.{shortName or '*'}"
  • addImports
  • addMethod
  • addTypeNamesToMap
  • adjustTypeName
  • adjustTypeNames
  • getAttributes
  • getImports
  • getInnerClasses
  • getInterfaces
  • getMethods
  • getInterfaces,
  • getMethods,
  • getName,
  • getPackageName,
  • getSuperClass,
  • getType,
  • isInterface,
  • putTypeNameInMap,
  • replaceInterface,
  • setComment

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getExternalFilesDir (Context)
  • getContentResolver (Context)
  • Menu (java.awt)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JCheckBox (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now