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

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

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

origin: geotools/geotools

  @Override
  public AttributeType buildSuper() {
    XSDTypeDefinition baseType = xsdType.getBaseType();
    if (baseType != null && baseType.getName() != null && !baseType.equals(xsdType)) {
      return createType(baseType, Integer.MAX_VALUE);
    } else {
      return null;
    }
  }
};
origin: geotools/geotools

protected AttributeType createType( XSDSimpleTypeDefinition xsdType, int depth ) {
  if (types.containsKey(xsdType)) {
    return (AttributeType) types.get(xsdType);
  }
  //import?
  if (!xsdType.getTargetNamespace().equals(schema.getTargetNamespace())) {
    return (AttributeType) findType(xsdType);
  }
  //first build super type
  AttributeType superType = null;
  XSDTypeDefinition baseType = xsdType.getBaseType();
  if ((baseType != null) && !baseType.equals(xsdType)) {
    if (baseType.getName() != null) {
      //ignore unamed types
      //superType = createType((XSDSimpleTypeDefinition)baseType);
      superType = createType(baseType, depth+1);
      assert superType != null;
    }
  }
  //TODO: actually derive valus from type
  AttributeType gtType = factory.createAttributeType(
    name(xsdType), Object.class, false, false, Collections.EMPTY_LIST, 
    superType, null
  );
  types.put(xsdType, gtType);
  return gtType;
}
origin: org.eclipse/org.eclipse.wst.xsd.ui

private void fillTypesCombo()
{
 typesCombo.removeAll();
 
 IEditorPart editor = getActiveEditor();
 ComponentReferenceEditManager manager = (ComponentReferenceEditManager)editor.getAdapter(XSDTypeReferenceEditManager.class);    
 ComponentSpecification[] items = manager.getQuickPicks();
 
 typesCombo.add(org.eclipse.wst.xsd.ui.internal.adt.editor.Messages._UI_ACTION_BROWSE);
 typesCombo.add(org.eclipse.wst.xsd.ui.internal.editor.Messages._UI_ACTION_NEW);
 
 for (int i = 0; i < items.length; i++)
 {
  typesCombo.add(items[i].getName());
 }
 // Add the current Type of this attribute if needed
 XSDSimpleTypeDefinition simpleType = (XSDSimpleTypeDefinition) input;
 XSDTypeDefinition baseType = simpleType.getBaseType();
 if (baseType != null && baseType.getQName() != null)
 {
  String currentTypeName = baseType.getQName(xsdSchema); //no prefix
  ComponentSpecification ret = getComponentSpecFromQuickPickForValue(currentTypeName,manager);
  if (ret == null && currentTypeName != null) //not in quickPick
  {
   typesCombo.add(currentTypeName);
  }
 }
}
origin: org.eclipse.xsd/org.eclipse.xsd

 handleMultiplicity(xsdSchema, eStructuralFeature, xsdSimpleTypeDefinition, baseType);
xsdComplexTypeDefinition.setBaseTypeDefinition(xsdSimpleTypeDefinition.getBaseType());
xsdComplexTypeDefinition.setDerivationMethod(xsdSimpleTypeDefinition.getContents().isEmpty() ? XSDDerivationMethod.EXTENSION_LITERAL : XSDDerivationMethod.RESTRICTION_LITERAL);
xsdComplexTypeDefinition.setContent(xsdSimpleTypeDefinition);
origin: org.eclipse/org.eclipse.xsd

 handleMultiplicity(xsdSchema, eStructuralFeature, xsdSimpleTypeDefinition, baseType);
xsdComplexTypeDefinition.setBaseTypeDefinition(xsdSimpleTypeDefinition.getBaseType());
xsdComplexTypeDefinition.setDerivationMethod(xsdSimpleTypeDefinition.getContents().isEmpty() ? XSDDerivationMethod.EXTENSION_LITERAL : XSDDerivationMethod.RESTRICTION_LITERAL);
xsdComplexTypeDefinition.setContent(xsdSimpleTypeDefinition);
org.eclipse.xsdXSDSimpleTypeDefinitiongetBaseType

Javadoc

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

This represents the base 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
  • 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
  • getMaxFacet
    Returns the value of the 'Max Facet' reference. This represents the org.eclipse.xsd.XSDMaxFacet of t
  • getContents,
  • getMaxFacet,
  • getMemberTypeDefinitions,
  • getTargetNamespace,
  • getValidFacets,
  • setBaseTypeDefinition,
  • setItemTypeDefinition,
  • setName,
  • setVariety

Popular in Java

  • Updating database using SQL prepared statement
  • compareTo (BigDecimal)
  • findViewById (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Collectors (java.util.stream)
  • 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