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

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

Best Java code snippets using org.eclipse.xsd.XSDSimpleTypeDefinition.getContainer (Showing top 18 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.emf/org.eclipse.xsd.edit

/**
 * This returns XSDSimpleTypeDefinition.gif.
 */
@Override
public Object getImage(Object object)
{
 XSDSimpleTypeDefinition xsdSimpleTypeDefinition = ((XSDSimpleTypeDefinition)object);
 return 
  XSDEditPlugin.INSTANCE.getImage
   (xsdSimpleTypeDefinition.getContainer() == null ?
     "full/obj16/XSDSimpleTypeDefinitionUnresolved" :
     XSDVariety.LIST_LITERAL == xsdSimpleTypeDefinition.getVariety() ? 
      "full/obj16/XSDSimpleTypeDefinitionList" :  
      XSDVariety.UNION_LITERAL == xsdSimpleTypeDefinition.getVariety() ? 
       "full/obj16/XSDSimpleTypeDefinitionUnion" :
        xsdSimpleTypeDefinition.isSetVariety() ?
         "full/obj16/XSDSimpleTypeDefinitionAtomic"  :
         "full/obj16/XSDSimpleTypeDefinition");
}
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);
}
origin: org.eclipse/org.eclipse.wst.xsd.ui

private boolean canEnable(XSDConcreteComponent xsdComponent){
  if (xsdComponent instanceof XSDComplexTypeDefinition) {
    fSelectedComponent = (XSDComplexTypeDefinition)xsdComponent;
    isComplexType = true;
    XSDComplexTypeDefinition typeDef = (XSDComplexTypeDefinition) xsdComponent;
    XSDConcreteComponent parent = typeDef.getContainer();
    if(parent instanceof XSDElementDeclaration){
      fParentName = ((XSDElementDeclaration)parent).getName();
      return true;
    }
  } 
  else if (xsdComponent instanceof XSDSimpleTypeDefinition){
    fSelectedComponent = (XSDSimpleTypeDefinition)xsdComponent;
    isComplexType = false;
    XSDSimpleTypeDefinition typeDef = (XSDSimpleTypeDefinition) xsdComponent;
    XSDConcreteComponent parent = typeDef.getContainer();
    if(parent instanceof XSDElementDeclaration){
      fParentName = ((XSDElementDeclaration)parent).getName();
      return true;
    }
    else if(parent instanceof XSDAttributeDeclaration){
      fParentName = ((XSDAttributeDeclaration)parent).getName();
      return true;
    }
    
  }
  return false;
}
origin: org.eclipse/org.eclipse.xsd

if (theBaseTypeDefinition != null && (forceResolve || theBaseTypeDefinition.getContainer() == null))
 if (theItemTypeDefinition != null)
  if (forceResolve || theItemTypeDefinition.getContainer() == null)
   if (forceResolve || newItemTypeDefinition.getContainer() != null && newItemTypeDefinition != theItemTypeDefinition)
   if (forceResolve || theMemberTypeDefinition.getContainer() == null)
    if (forceResolve || newMemberTypeDefinition.getContainer() != null && newMemberTypeDefinition != theMemberTypeDefinition)
origin: org.eclipse.xsd/org.eclipse.xsd

if (theBaseTypeDefinition != null && (forceResolve || theBaseTypeDefinition.getContainer() == null))
 if (theItemTypeDefinition != null)
  if (forceResolve || theItemTypeDefinition.getContainer() == null)
   if ((forceResolve || newItemTypeDefinition.getContainer() != null) && newItemTypeDefinition != theItemTypeDefinition)
   if (forceResolve || theMemberTypeDefinition.getContainer() == null)
    if ((forceResolve || newMemberTypeDefinition.getContainer() != null) && newMemberTypeDefinition != theMemberTypeDefinition)
origin: org.eclipse/org.eclipse.xsd

@Override
protected void patch()
{
 super.patch();
 XSDAttributeDeclaration theResolvedAttributeDeclaration = getResolvedAttributeDeclaration();
 if (theResolvedAttributeDeclaration == this)
 {
  XSDSimpleTypeDefinition typeDefinition = getTypeDefinition();
  if (typeDefinition != null && (forceResolve && typeDefinition.getName() != null || typeDefinition.getContainer() == null))
  {
   XSDSimpleTypeDefinition newTypeDefinition = 
    resolveSimpleTypeDefinition(typeDefinition.getTargetNamespace(), typeDefinition.getName());
   if (forceResolve || newTypeDefinition.getContainer() != null & newTypeDefinition != typeDefinition)
   {
    setTypeDefinitionGen(newTypeDefinition);
   }
  }
 }
 else
 {
  XSDAttributeDeclaration newResolvedAttributeDeclaration = 
   resolveAttributeDeclaration(theResolvedAttributeDeclaration.getTargetNamespace(), theResolvedAttributeDeclaration.getName());
  if (newResolvedAttributeDeclaration != theResolvedAttributeDeclaration)
  {
   setResolvedAttributeDeclaration(newResolvedAttributeDeclaration);
  }
 }
}
origin: org.eclipse.xsd/org.eclipse.xsd

@Override
protected void patch()
{
 super.patch();
 XSDAttributeDeclaration theResolvedAttributeDeclaration = getResolvedAttributeDeclaration();
 if (theResolvedAttributeDeclaration == this)
 {
  XSDSimpleTypeDefinition typeDefinition = getTypeDefinition();
  if (typeDefinition != null && (forceResolve && typeDefinition.getName() != null || typeDefinition.getContainer() == null))
  {
   XSDSimpleTypeDefinition newTypeDefinition = 
    resolveSimpleTypeDefinition(typeDefinition.getTargetNamespace(), typeDefinition.getName());
   if (forceResolve || newTypeDefinition.getContainer() != null & newTypeDefinition != typeDefinition)
   {
    setTypeDefinitionGen(newTypeDefinition);
   }
  }
 }
 else
 {
  XSDAttributeDeclaration newResolvedAttributeDeclaration = 
   resolveAttributeDeclaration(theResolvedAttributeDeclaration.getTargetNamespace(), theResolvedAttributeDeclaration.getName());
  if (newResolvedAttributeDeclaration != theResolvedAttributeDeclaration)
  {
   setResolvedAttributeDeclaration(newResolvedAttributeDeclaration);
  }
 }
}
origin: org.eclipse.xsd/org.eclipse.xsd

if (xsdListTypeDefinition.getContainer() == null)
if (xsdListTypeDefinition.getContainer() == null)
origin: org.eclipse/org.eclipse.xsd

if (xsdListTypeDefinition.getContainer() == null)
if (xsdListTypeDefinition.getContainer() == null)
origin: org.eclipse.xsd/org.eclipse.xsd

EList<String> newValidFacets = null;
if (theBaseTypeDefinition != null && theBaseTypeDefinition.getContainer() != null)
 if (theItemTypeDefinition != null && theItemTypeDefinition.getContainer() != null)
  for (XSDSimpleTypeDefinition theMemberTypeDefinition : getMemberTypeDefinitions())
   if (theMemberTypeDefinition.getContainer() != null)
origin: org.eclipse/org.eclipse.xsd

EList<String> newValidFacets = null;
if (theBaseTypeDefinition != null && theBaseTypeDefinition.getContainer() != null)
 if (theItemTypeDefinition != null && theItemTypeDefinition.getContainer() != null)
  for (XSDSimpleTypeDefinition theMemberTypeDefinition : getMemberTypeDefinitions())
   if (theMemberTypeDefinition.getContainer() != null)
origin: org.eclipse.xsd/org.eclipse.xsd

else if (xsdSimpleTypeDefinition.getContainer() == null)
origin: org.eclipse.xsd/org.eclipse.xsd

if (theTypeDefinition == null || theTypeDefinition.getContainer() == null)
origin: org.eclipse/org.eclipse.xsd

else if (xsdSimpleTypeDefinition.getContainer() == null)
origin: org.eclipse/org.eclipse.xsd

if (theTypeDefinition == null || theTypeDefinition.getContainer() == null)
origin: org.eclipse.xsd/org.eclipse.xsd

else if (theBaseTypeDefinition.getContainer() == null)
    else if (theItemTypeDefinition.getContainer() == null)
     else if (theMemberTypeDefinition.getContainer() == null)
origin: org.eclipse/org.eclipse.xsd

else if (theBaseTypeDefinition.getContainer() == null)
    else if (theItemTypeDefinition.getContainer() == null)
     else if (theMemberTypeDefinition.getContainer() == null)
org.eclipse.xsdXSDSimpleTypeDefinitiongetContainer

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 [
  • 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

  • Start an intent from android
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • runOnUiThread (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JFileChooser (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top PhpStorm plugins
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