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

How to use
addWarning
method
in
org.jibx.binding.model.ValidationContext

Best Java code snippets using org.jibx.binding.model.ValidationContext.addWarning (Showing top 4 results out of 315)

origin: org.jibx/jibx-tools

/**
 * Visit mapping element. This just adds the mapping definition, if not already added.
 * 
 * @param node
 * @return expansion flag
 */
public boolean visit(MappingElement node) {
  
  // check for nested mapping
  if (!(m_context.getParentElement() instanceof BindingElement)) {
    m_context.addWarning("No schema equivalent for nested type definitions - converting to global type");
  }
  
  // add the definition
  forceMappingDetail(node);
  return super.visit(node);
}

origin: org.jibx/jibx-tools

/**
 * Get the qualified name of the simple type used for a component, if a named simple type. If this returns
 * <code>null</code>, the {@link #buildSimpleType(IComponent)} method needs to be able to construct the
 * appropriate simple type definition.
 * 
 * @param comp
 * @return qualified type name, <code>null</code> if inline definition needed
 */
private QName getSimpleTypeQName(IComponent comp) {
  IClass type = comp.getType();
  String tname = comp.getType().getName();
  QName qname = Types.schemaType(tname);
  if (qname == null) {
    qname = (QName)m_classSimpletypes.get(tname);
    if (qname == null) {
      ClassCustom custom = m_custom.getClassCustomization(type.getName());
      if (custom != null && custom.isSimpleValue()) {
        qname = Types.STRING_QNAME;
      } else if (!type.isSuperclass("java.lang.Enum")) {
        m_context.addWarning("No schema equivalent known for type - treating as string", comp);
        qname = Types.STRING_QNAME;
      }
    }
  }
  return qname;
}

origin: org.jibx/jibx-tools

m_context.addWarning("Handling not implemented for unspecified mapping", coll);
m_context.addWarning("Handling not implemented for unspecified mapping", struct);
origin: org.jibx/jibx-tools

m_context.addWarning("Handling not implemented for unspecified mapping", coll);
m_context.addWarning("Handling not implemented for unspecified mapping", struct);
org.jibx.binding.modelValidationContextaddWarning

Popular methods of ValidationContext

  • getErrorCount
  • getFatalCount
  • getProblems
  • setBindingRoot
  • tourTree
  • addFatal
  • getFormatDefinitions
  • <init>
  • addError
  • getParentElement

Popular in Java

  • Creating JSON documents from java classes using gson
  • onRequestPermissionsResult (Fragment)
  • getSharedPreferences (Context)
  • getSystemService (Context)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JList (javax.swing)
  • Top 17 PhpStorm 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