Codota Logo
XSDSimpleTypeDefinition.getPrimitiveTypeDefinition
Code IndexAdd Codota 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)

  • Common ways to obtain XSDSimpleTypeDefinition
private void myMethod () {
XSDSimpleTypeDefinition x =
  • Codota IconXSDFactory eINSTANCE;eINSTANCE.createXSDSimpleTypeDefinition()
  • Codota IconXSDAttributeDeclaration xSDAttributeDeclaration;xSDAttributeDeclaration.getTypeDefinition()
  • Codota IconXSDAttributeDeclaration xSDAttributeDeclaration;xSDAttributeDeclaration.getAnonymousTypeDefinition()
  • Smart code suggestions by Codota
}
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

  • Parsing JSON documents to java classes using gson
  • setContentView (Activity)
  • putExtra (Intent)
  • getContentResolver (Context)
  • String (java.lang)
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now