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
  • getExternalFilesDir (Context)
  • getSupportFragmentManager (FragmentActivity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • String (java.lang)
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • 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
  • Top plugins for WebStorm
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