Tabnine Logo
XSDSimpleTypeDefinition.getPrimitiveTypeDefinition
Code IndexAdd Tabnine to your IDE (free)

How to use
getPrimitiveTypeDefinition
method
in
org.eclipse.xsd.XSDSimpleTypeDefinition

Best Java code snippets using org.eclipse.xsd.XSDSimpleTypeDefinition.getPrimitiveTypeDefinition (Showing top 3 results out of 315)

origin: org.eclipse.xsd/org.eclipse.xsd

/**
 * Handle difference lexical representations for default values,
 * in particular, positive and negative infinity for float and double.
 * @since 2.8
 */
protected String transformDefaultValue(XSDSimpleTypeDefinition xsdSimpleTypeDefinition, String defaultValue)
{
 XSDSimpleTypeDefinition primitiveTypeDefinition = xsdSimpleTypeDefinition.getPrimitiveTypeDefinition();
 if (primitiveTypeDefinition != null && 
    (primitiveTypeDefinition.hasNameAndTargetNamespace("float", defaultXMLSchemaNamespace) ||
      primitiveTypeDefinition.hasNameAndTargetNamespace("double", defaultXMLSchemaNamespace)))
 {
  if ("Infinity".equals(defaultValue))
  {
   return "INF";
  }
  else if ("-Infinity".equals(defaultValue))
  {
   return "-INF";
  }
 }
 return defaultValue;
}
origin: org.eclipse/org.eclipse.xsd

newPrimitiveTypeDefinition = theBaseTypeDefinition.getPrimitiveTypeDefinition();
newBounded = theBaseTypeDefinition.getBoundedFacet().isValue();
newCardinality = theBaseTypeDefinition.getCardinalityFacet().getValue();
origin: org.eclipse.xsd/org.eclipse.xsd

newPrimitiveTypeDefinition = theBaseTypeDefinition.getPrimitiveTypeDefinition();
newBounded = theBaseTypeDefinition.getBoundedFacet().isValue();
newCardinality = theBaseTypeDefinition.getCardinalityFacet().getValue();
org.eclipse.xsdXSDSimpleTypeDefinitiongetPrimitiveTypeDefinition

Javadoc

Returns the value of the 'Primitive Type Definition' reference.

This represents the primitive type definition infoset property.

Popular methods of XSDSimpleTypeDefinition

  • getItemTypeDefinition
    Returns the value of the 'Item Type Definition' reference. This represents theitem type definition [
  • getVariety
    Returns the value of the 'Variety' attribute. The literals are from the enumeration org.eclipse.xsd.
  • getMaxLengthFacet
    Returns the value of the 'Max Length Facet' reference. This represents the org.eclipse.xsd.XSDMaxLen
  • getMinLengthFacet
    Returns the value of the 'Min Length Facet' reference. This represents the org.eclipse.xsd.XSDMinLen
  • getEnumerationFacets
    Returns the value of the 'Enumeration Facets' reference list. The list contents are of type org.ecli
  • getFacets
    Returns the value of the 'Facets' reference list. The list contents are of type org.eclipse.xsd.XSDC
  • getLengthFacet
    Returns the value of the 'Length Facet' reference. This represents the org.eclipse.xsd.XSDLengthFace
  • getName
  • getBaseType
  • getBaseTypeDefinition
    Returns the value of the 'Base Type Definition' reference. This represents thebase type definition [
  • getContainer
  • getContents
    Returns the value of the 'Contents' containment reference list. The list contents are of type org.ec
  • getContainer,
  • getContents,
  • getMaxFacet,
  • getMemberTypeDefinitions,
  • getTargetNamespace,
  • getValidFacets,
  • setBaseTypeDefinition,
  • setItemTypeDefinition,
  • setName,
  • setVariety

Popular in Java

  • Running tasks concurrently on multiple threads
  • findViewById (Activity)
  • startActivity (Activity)
  • setScale (BigDecimal)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • JList (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • 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