Tabnine Logo
StructureElement.isOptional
Code IndexAdd Tabnine to your IDE (free)

How to use
isOptional
method
in
org.jibx.binding.model.StructureElement

Best Java code snippets using org.jibx.binding.model.StructureElement.isOptional (Showing top 2 results out of 315)

origin: org.jibx/jibx-tools

/**
 * Check if a <structure> element represents a type derivation. If the element is empty, has no name or property,
 * is required, and is a mapping reference, then it can be handled as a type derivation.
 * 
 * @param struct
 * @return <code>true</code> if a type derivation, <code>false</code> if not
 */
private static boolean isTypeDerivation(StructureElement struct) {
  return struct.children().size() == 0 && !struct.hasName() && !struct.hasProperty() && !struct.isOptional()
    && (struct.getDeclaredType() != null || struct.getEffectiveMapping() != null);
}

origin: org.jibx/jibx-tools

if (struct.isOptional()) {
  m_context.addError("No schema equivalent for optional abstract mapping with attributes", comp);
} else {
org.jibx.binding.modelStructureElementisOptional

Popular methods of StructureElement

  • <init>
  • addChild
  • children
  • getDeclaredType
  • getEffectiveMapping
  • getFieldName
  • getGetName
  • getMapAsQName
  • getName
  • getSetName
  • hasDirectName
  • hasName
  • hasDirectName,
  • hasName,
  • hasProperty,
  • isChoice,
  • isOrdered,
  • setCreateType,
  • setDeclaredType,
  • setFactoryName,
  • setFieldName

Popular in Java

  • Reactive rest calls using spring rest template
  • setRequestProperty (URLConnection)
  • getResourceAsStream (ClassLoader)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • IsNull (org.hamcrest.core)
    Is the value null?
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top plugins for Android Studio
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