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

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

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

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

protected void checkForPrimitive(XSDSimpleTypeDefinition xsdSimpleTypeDefinition, EDataType eDataType)
{
 if (EcorePackage.eNS_URI.equals(xsdSimpleTypeDefinition.getTargetNamespace()))
 {
  String wrapperType = ECORE_PRIMITIVE_TYPES.get(eDataType.getName());
  if (wrapperType != null)
  {
   XSDSimpleTypeDefinition wrapperTypeDefinition = xsdSimpleTypeDefinition.resolveSimpleTypeDefinition(wrapperType);
   if (wrapperTypeDefinition.getContainer() != null)
   {
    EDataType eDataTypeObject = (EDataType)getEClassifier(wrapperTypeDefinition);
    extendedMetaData.setName(eDataTypeObject, eDataType.getName() + ":Object");
    extendedMetaData.setBaseType(eDataTypeObject, eDataType);
    typeToTypeObjectMap.put(eDataType, eDataTypeObject);
    return;
   }
  }
 }
 checkForPrimitive(eDataType);
}
origin: org.eclipse/org.eclipse.xsd

protected void checkForPrimitive(XSDSimpleTypeDefinition xsdSimpleTypeDefinition, EDataType eDataType)
{
 if (EcorePackage.eNS_URI.equals(xsdSimpleTypeDefinition.getTargetNamespace()))
 {
  String wrapperType = ECORE_PRIMITIVE_TYPES.get(eDataType.getName());
  if (wrapperType != null)
  {
   XSDSimpleTypeDefinition wrapperTypeDefinition = xsdSimpleTypeDefinition.resolveSimpleTypeDefinition(wrapperType);
   if (wrapperTypeDefinition.getContainer() != null)
   {
    EDataType eDataTypeObject = (EDataType)getEClassifier(wrapperTypeDefinition);
    extendedMetaData.setName(eDataTypeObject, eDataType.getName() + ":Object");
    extendedMetaData.setBaseType(eDataTypeObject, eDataType);
    typeToTypeObjectMap.put(eDataType, eDataTypeObject);
    return;
   }
  }
 }
 checkForPrimitive(eDataType);
}
org.eclipse.xsdXSDSimpleTypeDefinitionresolveSimpleTypeDefinition

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

  • Updating database using SQL prepared statement
  • getSystemService (Context)
  • startActivity (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • 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