Tabnine Logo
IComponent.hasName
Code IndexAdd Tabnine to your IDE (free)

How to use
hasName
method
in
org.jibx.binding.model.IComponent

Best Java code snippets using org.jibx.binding.model.IComponent.hasName (Showing top 3 results out of 315)

origin: org.jibx/jibx-tools

/**
 * Check if a container element of the binding represents complex content.
 * 
 * @param cont
 * @return <code>true</code> if complex content, <code>false</code> if not
 */
private static boolean isComplexContent(ContainerElementBase cont) {
  ArrayList contents = cont.getContentComponents();
  for (int i = 0; i < contents.size(); i++) {
    Object item = contents.get(i);
    if (item instanceof IComponent && ((IComponent)item).hasName()) {
      return true;
    } else if (item instanceof ContainerElementBase && isComplexContent((ContainerElementBase)item)) {
      return true;
    }
  }
  return false;
}

origin: org.jibx/jibx-tools

for (int j = 0; j < contents.size(); j++) {
  IComponent comp = (IComponent)contents.get(j);
  if (comp.hasName()) {
origin: org.jibx/jibx-tools

for (int i = offset; i < comps.size(); i++) {
  IComponent comp = (IComponent)comps.get(i);
  if (comp.hasName()) {
org.jibx.binding.modelIComponenthasName

Popular methods of IComponent

  • getName
  • getType
  • isOptional

Popular in Java

  • Reactive rest calls using spring rest template
  • notifyDataSetChanged (ArrayAdapter)
  • setContentView (Activity)
  • getSystemService (Context)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Github Copilot alternatives
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