Tabnine Logo
MappingElementBase.addTopChild
Code IndexAdd Tabnine to your IDE (free)

How to use
addTopChild
method
in
org.jibx.binding.model.MappingElementBase

Best Java code snippets using org.jibx.binding.model.MappingElementBase.addTopChild (Showing top 1 results out of 315)

origin: org.jibx/jibx-tools

/**
 * Recursively add all inner enumeration classes as formats to a <mapping> definition. This is used to create the
 * <format> elements for all nested enumerations, which need to be direct children of the <mapping> element
 * for the top-level class.
 * 
 * @param mapping Mapping
 */
private void addInnerFormats(MappingElementBase mapping) {
  for (int i = 0; i < m_inners.size(); i++) {
    ClassHolder inner = (ClassHolder)m_inners.get(i);
    if (inner.isSimpleValue()) {
      FormatElement format = new FormatElement();
      format.setTypeName(inner.getBindingName());
      ((EnumerationClassHolder)inner).setBinding(format);
      mapping.addTopChild(format);
    } else {
      ((StructureClassHolder)inner).addInnerFormats(mapping);
    }
  }
}

org.jibx.binding.modelMappingElementBaseaddTopChild

Popular methods of MappingElementBase

  • getClassName
  • getName
  • getTypeQName
  • isAbstract
  • getCreateType
  • getExtensionTypes
  • getUri
  • topChildIterator
  • addChild
  • getAttributeComponents
  • getContentComponents
  • getNamespace
  • getContentComponents,
  • getNamespace,
  • getTypeName,
  • setAbstract,
  • setClassName,
  • setCreateType,
  • setExtendsName,
  • setFactoryName,
  • setName

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSupportFragmentManager (FragmentActivity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onRequestPermissionsResult (Fragment)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • JButton (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top Vim plugins
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