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

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

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

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

protected XSDSimpleTypeDefinition createUnresolvedSimpleTypeDefinition(String namespace, String localName)
{
 XSDSimpleTypeDefinition xsdSimpleTypeDefinition = XSDFactory.eINSTANCE.createXSDSimpleTypeDefinition();
 if (localName != null)
 {
  xsdSimpleTypeDefinition.setName(localName);
 }
 if (namespace != null)
 {
  xsdSimpleTypeDefinition.setTargetNamespace(namespace);
 }
 xsdSimpleTypeDefinition.setVariety(XSDVariety.ATOMIC_LITERAL);
 return xsdSimpleTypeDefinition;
}
origin: org.eclipse/org.eclipse.xsd

protected XSDSimpleTypeDefinition createUnresolvedSimpleTypeDefinition(String namespace, String localName)
{
 XSDSimpleTypeDefinition xsdSimpleTypeDefinition = XSDFactory.eINSTANCE.createXSDSimpleTypeDefinition();
 if (localName != null)
 {
  xsdSimpleTypeDefinition.setName(localName);
 }
 if (namespace != null)
 {
  xsdSimpleTypeDefinition.setTargetNamespace(namespace);
 }
 xsdSimpleTypeDefinition.setVariety(XSDVariety.ATOMIC_LITERAL);
 return xsdSimpleTypeDefinition;
}
origin: org.eclipse.emf/org.eclipse.xsd.edit

xsdSimpleTypeDefinition.setVariety(XSDVariety.ATOMIC_LITERAL);
xsdSimpleTypeDefinition.setBaseTypeDefinition(baseType);
newChildDescriptors.add(createChildParameter(feature, xsdSimpleTypeDefinition));
xsdSimpleTypeDefinition.setVariety(XSDVariety.LIST_LITERAL);
xsdSimpleTypeDefinition.setItemTypeDefinition(baseType);
newChildDescriptors.add(createChildParameter(feature, xsdSimpleTypeDefinition));
xsdSimpleTypeDefinition.setVariety(XSDVariety.UNION_LITERAL);
xsdSimpleTypeDefinition.getMemberTypeDefinitions().add(baseType);
newChildDescriptors.add(createChildParameter(feature, xsdSimpleTypeDefinition));
origin: org.eclipse/org.eclipse.wst.xsd.ui

st.setVariety(XSDVariety.ATOMIC_LITERAL);
addCreateElementActionIfNotExist(XSDConstants.RESTRICTION_ELEMENT_TAG, XSDEditorPlugin.getXSDString("_UI_ACTION_ADD_RESTRICTION"), parent, null); //$NON-NLS-1$
st.setVariety(XSDVariety.UNION_LITERAL);
addCreateElementActionIfNotExist(XSDConstants.UNION_ELEMENT_TAG, XSDEditorPlugin.getXSDString("_UI_ACTION_ADD_UNION"), parent, null); //$NON-NLS-1$
st.setVariety(XSDVariety.LIST_LITERAL);
addCreateElementActionIfNotExist(XSDConstants.LIST_ELEMENT_TAG, XSDEditorPlugin.getXSDString("_UI_ACTION_ADD_LIST"), parent, null); //$NON-NLS-1$
org.eclipse.xsdXSDSimpleTypeDefinitionsetVariety

Javadoc

Sets the value of the ' org.eclipse.xsd.XSDSimpleTypeDefinition#getVariety' attribute.

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

Popular in Java

  • Making http requests using okhttp
  • setContentView (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getContentResolver (Context)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JLabel (javax.swing)
  • JOptionPane (javax.swing)
  • 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