congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
ValidationContext.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.jibx.binding.model.ValidationContext
constructor

Best Java code snippets using org.jibx.binding.model.ValidationContext.<init> (Showing top 6 results out of 315)

origin: org.jibx/jibx-tools

/**
 * Constructor.
 * 
 * @param loc locator for class information (<code>null</code> if none)
 * @param custom binding customization information (used for creating names as needed)
 * @param urinames map from namespace URI to schema file name
 */
public SchemaGen(IClassLocator loc, GlobalCustom custom, Map urinames) {
  m_locator = loc;
  m_custom = custom;
  m_classSimpletypes = new HashMap();
  m_uriNames = urinames;
  m_uriSchemas = new HashMap();
  m_formatCache = new FormatterCache(loc);
  m_context = new ValidationContext(loc);
  m_detailDirectory = new DetailDirectory(custom, m_context);
}

origin: org.jibx/jibx-tools

ValidationContext vctx = new ValidationContext(loc);
FileInputStream is = new FileInputStream(file);
BindingElement binding = BindingElement.validateBinding(root.getFileName(), file.toURI().toURL(), is, vctx);
origin: org.jibx/jibx-tools

  new org.jibx.binding.model.ValidationContext(new DummyClassLocator());
BindingElement binding = BindingElement.readBinding(url.openStream(), name, null, true,
  vctx);
origin: org.jibx/jibx-tools

  new org.jibx.binding.model.ValidationContext(new DummyClassLocator());
BindingElement binding = BindingElement.readBinding(url.openStream(), name, null, true,
  vctx);
origin: org.jibx/jibx-tools

FileInputStream is = new FileInputStream(file);
try {
  ValidationContext vctx = new ValidationContext(parms.getLocator());
  BindingElement binding = BindingElement.validateBinding(name, url, is, vctx);
  if (vctx.getErrorCount() == 0 && vctx.getFatalCount() == 0) {
origin: org.jibx/jibx-tools

/**
 * Write the binding definitions file(s). This method can only be used after
 * {@link #buildDataModel(boolean, boolean, Map, Map)} is called.
 *
 * @param name root binding definition file name (use customization, or default, if <code>null</code>)
 * @param pack target package for binding (<code>null</code> if unspecified)
 * @param pregens pregenerated bindings to be included in root binding
 * @param handler validation error and code generation problem handler
 * @throws JiBXException error
 * @throws IOException error
 */
public void writeBindings(String name, String pack, List pregens, ProblemHandler handler)
throws JiBXException, IOException {
  if (name == null) {
    name = m_global.getBindingFileName();
    if (name == null) {
      name = "binding.xml";
    }
  }
  m_rootHolder = m_bindingDirectory.configureFiles(name, pack, pregens);
  IClassLocator iloc = new DummyClassLocator();
  org.jibx.binding.model.ValidationContext vctx = new org.jibx.binding.model.ValidationContext(iloc);
  if (m_bindingDirectory.validateBindings(m_rootHolder, m_targetDir, vctx)) {
    m_bindingDirectory.writeBindings(m_targetDir);
  } else {
    reportBindingProblems(vctx, handler);
    throw new JiBXException("Terminating due to errors in bindings");
  }
}

org.jibx.binding.modelValidationContext<init>

Popular methods of ValidationContext

  • getErrorCount
  • getFatalCount
  • getProblems
  • setBindingRoot
  • tourTree
  • addFatal
  • getFormatDefinitions
  • addError
  • addWarning
  • getParentElement

Popular in Java

  • Making http post requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getExternalFilesDir (Context)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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