congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
EStructuralFeature.getDefaultValueLiteral
Code IndexAdd Tabnine to your IDE (free)

How to use
getDefaultValueLiteral
method
in
org.eclipse.emf.ecore.EStructuralFeature

Best Java code snippets using org.eclipse.emf.ecore.EStructuralFeature.getDefaultValueLiteral (Showing top 20 results out of 315)

origin: org.eclipse.emf/org.eclipse.emf.ecore.xmi

protected boolean shouldSaveFeature(EObject o, EStructuralFeature f)
{
 return o.eIsSet(f) || keepDefaults && f.getDefaultValueLiteral() != null;
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore.xmi

protected boolean shouldSaveFeature(EObject o, EStructuralFeature f)
{
 return o.eIsSet(f) || keepDefaults && f.getDefaultValueLiteral() != null;
}
origin: org.eclipse.emf/org.eclipse.emf.codegen.ecore

public boolean isSetDefaultValue()
{
 return getEcoreFeature().getDefaultValueLiteral() != null;
}
origin: org.eclipse/org.eclipse.emf.codegen.ecore

public boolean isSetDefaultValue()
{
 return getEcoreFeature().getDefaultValueLiteral() != null;
}
origin: org.jabylon/properties

private static void fixedDefaultValues(PropertiesPackageImpl thePropertiesPackage) {
  //fix the workaround spaces in the defaults
  EStructuralFeature excludes = thePropertiesPackage.scanConfigurationEClass.getEStructuralFeature(SCAN_CONFIGURATION__EXCLUDE);
  if(excludes.getDefaultValueLiteral()!=null)
  {
    String exclude = excludes.getDefaultValueLiteral().replace(" ", "");
    exclude = exclude.replace("\\\\", "\\");
    excludes.setDefaultValueLiteral(exclude);
  }
  EStructuralFeature includes = thePropertiesPackage.scanConfigurationEClass.getEStructuralFeature(SCAN_CONFIGURATION__INCLUDE);
  if(includes.getDefaultValueLiteral()!=null)
  {
    String include = includes.getDefaultValueLiteral().replace(" ", "");
    include = include.replace("\\\\", "\\");
    includes.setDefaultValueLiteral(include);
  }
}
origin: org.openehealth.ipf.oht.mdht/ipf-oht-mdht-uml-cda

@Override
protected boolean shouldSaveFeature(EObject o, EStructuralFeature f) {
  return o.eIsSet(f) || (keepDefaults && f.getDefaultValueLiteral() != null && f.getLowerBound() > 0);
}
origin: org.eclipse.emf/org.eclipse.emf.codegen.ecore

public String getDefaultValue()
{
 if (!isSetDefaultValue()) return null;
 return Literals.toStringLiteral(getEcoreFeature().getDefaultValueLiteral(), getGenModel());
}
origin: org.eclipse/org.eclipse.emf.codegen.ecore

public String getDefaultValue()
{
 if (!isSetDefaultValue()) return null;
 return Literals.toStringLiteral(getEcoreFeature().getDefaultValueLiteral(), getGenModel());
}
origin: org.eclipse.emf/org.eclipse.emf.codegen.ecore

public String getStaticDefaultValue()
{
 String defaultString = getEcoreFeature().getDefaultValueLiteral();
 EClassifier eType = getEcoreFeature().getEType();
 if (eType instanceof EDataType)
 {
  GenDataType genDataType = (GenDataType)findGenClassifier(eType);
  return genDataType.getStaticValue(defaultString);
 }
 return "null";
}
origin: org.eclipse/org.eclipse.emf.codegen.ecore

public String getStaticDefaultValue()
{
 String defaultString = getEcoreFeature().getDefaultValueLiteral();
 EClassifier eType = getEcoreFeature().getEType();
 if (eType instanceof EDataType)
 {
  GenDataType genDataType = (GenDataType)findGenClassifier(eType);
  return genDataType.getStaticValue(defaultString);
 }
 return "null";
}
origin: org.eclipse.emf.cdo.server/mongodb

 @Override
 public Object getMongoDefaultValue(EStructuralFeature feature)
 {
  EEnum eenum = (EEnum)feature.getEType();
  String defaultValueLiteral = feature.getDefaultValueLiteral();
  if (defaultValueLiteral != null)
  {
   EEnumLiteral literal = eenum.getEEnumLiteralByLiteral(defaultValueLiteral);
   return literal.getValue();
  }
  Enumerator enumerator = (Enumerator)eenum.getDefaultValue();
  return enumerator.getValue();
 }
});
origin: org.eclipse.emf.cdo.server/db

@Override
protected Object getDefaultValue()
{
 EEnum eenum = (EEnum)getFeature().getEType();
 String defaultValueLiteral = getFeature().getDefaultValueLiteral();
 if (defaultValueLiteral != null)
 {
  EEnumLiteral literal = eenum.getEEnumLiteralByLiteral(defaultValueLiteral);
  return literal.getValue();
 }
 Enumerator enumerator = (Enumerator)eenum.getDefaultValue();
 return enumerator.getValue();
}
origin: org.eclipse/org.eclipse.xsd

protected XSDAttributeDeclaration buildGlobalAttribute(XSDSchema xsdSchema, EStructuralFeature eStructuralFeature)
{
 XSDAttributeDeclaration xsdAttributeDeclaration = XSDFactory.eINSTANCE.createXSDAttributeDeclaration();
 xsdAttributeDeclaration.setName(extendedMetaData.getName(eStructuralFeature));
 XSDSimpleTypeDefinition xsdSimpleTypeDefinition = xsdSchema.resolveSimpleTypeDefinitionURI(getURI(eStructuralFeature.getEType()));
 handleImport(xsdSchema, xsdSimpleTypeDefinition);
 xsdAttributeDeclaration.setTypeDefinition(xsdSimpleTypeDefinition);
 String defaultValue = eStructuralFeature.getDefaultValueLiteral();
 if (defaultValue != null)
 {
  xsdAttributeDeclaration.setConstraint(XSDConstraint.DEFAULT_LITERAL);
  xsdAttributeDeclaration.setLexicalValue(defaultValue);
 }
 xsdSchema.getContents().add(xsdAttributeDeclaration);
 map(xsdAttributeDeclaration, eStructuralFeature);
 if (eStructuralFeature.eIsSet(EcorePackage.Literals.ETYPED_ELEMENT__EGENERIC_TYPE))
 {
  createEcoreAnnotation(xsdAttributeDeclaration, "type", getGenericType(xsdSchema, eStructuralFeature.getEGenericType()));
 }
 buildAnnotations(xsdAttributeDeclaration, eStructuralFeature);
 return xsdAttributeDeclaration;
}
origin: org.eclipse.xsd/org.eclipse.xsd

protected XSDAttributeDeclaration buildGlobalAttribute(XSDSchema xsdSchema, EStructuralFeature eStructuralFeature)
{
 XSDAttributeDeclaration xsdAttributeDeclaration = XSDFactory.eINSTANCE.createXSDAttributeDeclaration();
 xsdAttributeDeclaration.setName(extendedMetaData.getName(eStructuralFeature));
 XSDSimpleTypeDefinition xsdSimpleTypeDefinition = xsdSchema.resolveSimpleTypeDefinitionURI(getURI(eStructuralFeature.getEType()));
 handleImport(xsdSchema, xsdSimpleTypeDefinition);
 xsdAttributeDeclaration.setTypeDefinition(xsdSimpleTypeDefinition);
 String defaultValue = eStructuralFeature.getDefaultValueLiteral();
 if (defaultValue != null)
 {
  xsdAttributeDeclaration.setConstraint(XSDConstraint.DEFAULT_LITERAL);
  xsdAttributeDeclaration.setLexicalValue(transformDefaultValue(xsdAttributeDeclaration.getTypeDefinition(), defaultValue));
 }
 xsdSchema.getContents().add(xsdAttributeDeclaration);
 map(xsdAttributeDeclaration, eStructuralFeature);
 if (eStructuralFeature.eIsSet(EcorePackage.Literals.ETYPED_ELEMENT__EGENERIC_TYPE))
 {
  createEcoreAnnotation(xsdAttributeDeclaration, "type", getGenericType(xsdSchema, eStructuralFeature.getEGenericType()));
 }
 buildAnnotations(xsdAttributeDeclaration, eStructuralFeature);
 return xsdAttributeDeclaration;
}
origin: org.eclipse/org.eclipse.xsd

protected XSDElementDeclaration buildGlobalElement(XSDSchema xsdSchema, EStructuralFeature eStructuralFeature)
{
 XSDElementDeclaration xsdElementDeclaration = XSDFactory.eINSTANCE.createXSDElementDeclaration();
 xsdElementDeclaration.setName(extendedMetaData.getName(eStructuralFeature));
 EClassifier eType = eStructuralFeature.getEType();
 XSDTypeDefinition xsdTypeDefinition = xsdSchema.resolveTypeDefinitionURI(getURI(eType));
 handleImport(xsdSchema, xsdTypeDefinition);
 xsdElementDeclaration.setTypeDefinition(xsdTypeDefinition);
 if (isWrapperType(eType))
 {
  xsdElementDeclaration.setNillable(true);
 }
 String defaultValue = eStructuralFeature.getDefaultValueLiteral();
 if (defaultValue != null)
 {
  xsdElementDeclaration.setConstraint(XSDConstraint.DEFAULT_LITERAL);
  xsdElementDeclaration.setLexicalValue(defaultValue);
 }
 xsdSchema.getContents().add(xsdElementDeclaration);
 map(xsdElementDeclaration, eStructuralFeature);
 if (eStructuralFeature.eIsSet(EcorePackage.Literals.ETYPED_ELEMENT__EGENERIC_TYPE))
 {
  createEcoreAnnotation(xsdElementDeclaration, "type", getGenericType(xsdSchema, eStructuralFeature.getEGenericType()));
 }
 buildAnnotations(xsdElementDeclaration, eStructuralFeature);
 return xsdElementDeclaration;
}
origin: org.eclipse.xsd/org.eclipse.xsd

String defaultValue = eStructuralFeature.getDefaultValueLiteral();
if (defaultValue != null)
else if ((eStructuralFeature.getEType().getDefaultValue() != null || eStructuralFeature.getDefaultValueLiteral() != null) !=
      eStructuralFeature.isUnsettable())
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore

String defaultValueLiteral = eStructuralFeature.getDefaultValueLiteral();
Object defaultValue = null;
EDataType eDataType = null;
origin: org.eclipse.emf/org.eclipse.emf.ecore

String defaultValueLiteral = eStructuralFeature.getDefaultValueLiteral();
Object defaultValue = null;
EDataType eDataType = null;
origin: org.eclipse/org.eclipse.xsd

String defaultValue = eStructuralFeature.getDefaultValueLiteral();
if (defaultValue != null)
else if ((eStructuralFeature.getEType().getDefaultValue() != null || eStructuralFeature.getDefaultValueLiteral() != null) !=
      eStructuralFeature.isUnsettable())
origin: org.eclipse.xsd/org.eclipse.xsd

String defaultValue = eStructuralFeature.getDefaultValueLiteral();
if (defaultValue != null)
org.eclipse.emf.ecoreEStructuralFeaturegetDefaultValueLiteral

Javadoc

Returns the value of the 'Default Value Literal' attribute.

It represents the serialized form of the default value.

Popular methods of EStructuralFeature

  • getName
  • isMany
  • getEType
  • getEContainingClass
    Returns the value of the 'EContaining Class' container reference. It is bidirectional and its opposi
  • isUnsettable
    Returns the value of the 'Unsettable' attribute. An unsettable feature explicitly models the state o
  • isChangeable
    Returns the value of the 'Changeable' attribute. The default value is "true".
  • isDerived
    Returns the value of the 'Derived' attribute. A derived feature typically computes its value from th
  • isTransient
    Returns the value of the 'Transient' attribute.
  • getDefaultValue
    Returns the value of the 'Default Value' attribute. It represents the default value that feature mus
  • getUpperBound
  • getEGenericType
  • isUnique
  • getEGenericType,
  • isUnique,
  • getFeatureID,
  • getEAnnotation,
  • getLowerBound,
  • isOrdered,
  • setChangeable,
  • eIsProxy,
  • setUpperBound

Popular in Java

  • Finding current android device location
  • getContentResolver (Context)
  • onRequestPermissionsResult (Fragment)
  • compareTo (BigDecimal)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • ImageIO (javax.imageio)
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now