gpt4 book ai didi

org.eclipse.xsd.XSDEnumerationFacet.getLexicalValue()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-21 04:19:05 26 4
gpt4 key购买 nike

本文整理了Java中org.eclipse.xsd.XSDEnumerationFacet.getLexicalValue()方法的一些代码示例,展示了XSDEnumerationFacet.getLexicalValue()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSDEnumerationFacet.getLexicalValue()方法的具体详情如下:
包路径:org.eclipse.xsd.XSDEnumerationFacet
类名称:XSDEnumerationFacet
方法名:getLexicalValue

XSDEnumerationFacet.getLexicalValue介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.emf/org.eclipse.xsd.edit

@Override
public String getText(Object object)
{
 XSDEnumerationFacet xsdEnumerationFacet = ((XSDEnumerationFacet)object);
 String result = xsdEnumerationFacet.getLexicalValue();
 return result == null ? "" : result;
}

代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui

public Object getValue(Object element, String property)
{
 if (element instanceof XSDEnumerationFacet)
 {
  XSDEnumerationFacet enumFacet = (XSDEnumerationFacet) element;
  String value = enumFacet.getLexicalValue();
  if (value == null)
   value = ""; //$NON-NLS-1$
  return value;
 }
 return ""; //$NON-NLS-1$
}

代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui

public String getColumnText(Object element, int columnIndex)
{
 if (element instanceof XSDEnumerationFacet)
 {
  XSDEnumerationFacet enumFacet = (XSDEnumerationFacet) element;
  String value = enumFacet.getLexicalValue();
  if (value == null)
   value = ""; //$NON-NLS-1$
  return value;
 }
 return ""; //$NON-NLS-1$
}

代码示例来源:origin: org.eclipse/org.eclipse.xsd

@Override
public Object caseXSDEnumerationFacet(XSDEnumerationFacet xsdEnumerationFacet)
{
 enumeration.add(xsdEnumerationFacet.getLexicalValue());
 return this;
}

代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui

public Object doGetValue(Object element, String property)
{
 if (element instanceof XSDPatternFacet)
 {
  XSDPatternFacet patternFacet = (XSDPatternFacet) element;
  String value = patternFacet.getLexicalValue();
  if (value == null)
   value = ""; //$NON-NLS-1$
  return value;
 }
 else if (element instanceof XSDEnumerationFacet)
 {
  XSDEnumerationFacet enumFacet = (XSDEnumerationFacet) element;
  String value = enumFacet.getLexicalValue();
  if (value == null)
   value = ""; //$NON-NLS-1$
  return value;
 }
 return ""; //$NON-NLS-1$
}

代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui

public String getColumnText(Object element, int columnIndex)
 {
  if (element instanceof XSDPatternFacet)
  {
   XSDPatternFacet pattern = (XSDPatternFacet) element;
   String value = pattern.getLexicalValue();
   if (value == null)
    value = ""; //$NON-NLS-1$
   return value;
  }
  else if (element instanceof XSDEnumerationFacet)
  {
   XSDEnumerationFacet enumFacet = (XSDEnumerationFacet) element;
   String value = enumFacet.getLexicalValue();
   if (value == null)
    value = ""; //$NON-NLS-1$
   return value;
  }
  return ""; //$NON-NLS-1$
 }
}

代码示例来源:origin: org.eclipse.xsd/org.eclipse.xsd

if (!values.isEmpty())
 String lexicalValue= xsdSimpleTypeDefinition.getNormalizedLiteral(xsdEnumerationFacet.getLexicalValue());
 Object value = values.get(0);
 if (value instanceof List<?>)

代码示例来源:origin: org.eclipse/org.eclipse.xsd

newLexicalValue.append(enumerationFacet.getLexicalValue());

代码示例来源:origin: org.eclipse.xsd/org.eclipse.xsd

newLexicalValue.append(enumerationFacet.getLexicalValue());

代码示例来源:origin: org.eclipse/org.eclipse.xsd

protected void initialize(EAttribute eAttribute, XSDSimpleTypeDefinition xsdSimpleTypeDefinition)
{
 if (XSDConstants.isOrIsDerivedFromID(xsdSimpleTypeDefinition))
 {
  eAttribute.setID(true);
 }
 // If there is no default value but the type has enumeration facets and the value is a primitive...
 //
 if (!eAttribute.isMany() &&
    eAttribute.getDefaultValueLiteral() == null &&
    xsdSimpleTypeDefinition != null &&
    xsdSimpleTypeDefinition.getEffectiveEnumerationFacet() != null &&
    eAttribute.getEType().getDefaultValue() != null)
 {
  // Set the default to the first enumeration's value.
  //
  eAttribute.setDefaultValueLiteral
   ((xsdSimpleTypeDefinition.
     getEffectiveEnumerationFacet().
     getSimpleTypeDefinition().
     getEnumerationFacets().
     get(0)).getLexicalValue());
 }
}

代码示例来源:origin: org.eclipse/org.eclipse.xsd

if (!"true".equalsIgnoreCase(getEcoreAttribute(xsdEnumerationFacet, "ignore")))
 String literal = xsdEnumerationFacet.getLexicalValue();
 if (literal != null && eEnum.getEEnumLiteralByLiteral(literal) == null)

代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui

String value = enumFacet.getLexicalValue();
if (value != null)

代码示例来源:origin: org.eclipse.xsd/org.eclipse.xsd

protected void initialize(EAttribute eAttribute, XSDSimpleTypeDefinition xsdSimpleTypeDefinition)
{
 if (XSDConstants.isOrIsDerivedFromID(xsdSimpleTypeDefinition))
 {
  eAttribute.setID(true);
 }
 // If there is no default value but the type has enumeration facets and the value is a primitive...
 //
 if (!eAttribute.isMany() &&
    eAttribute.getDefaultValueLiteral() == null &&
    xsdSimpleTypeDefinition != null &&
    xsdSimpleTypeDefinition.getEffectiveEnumerationFacet() != null &&
    eAttribute.getEType().getDefaultValue() != null &&
    !(eAttribute.getEType() instanceof EEnum))
 {
  // Set the default to the first enumeration's value.
  //
  setDefaultValueLiteral
   (eAttribute,
    xsdSimpleTypeDefinition.getNormalizedLiteral
    ((xsdSimpleTypeDefinition.
      getEffectiveEnumerationFacet().
      getSimpleTypeDefinition().
      getEnumerationFacets().
      get(0)).getLexicalValue()));
 }
}

代码示例来源:origin: org.eclipse.xsd/org.eclipse.xsd

if (!"true".equalsIgnoreCase(getEcoreAttribute(xsdEnumerationFacet, "ignore")))
 String literal = xsdSimpleTypeDefinition.getNormalizedLiteral(xsdEnumerationFacet.getLexicalValue());
 if (literal != null && eEnum.getEEnumLiteralByLiteral(literal) == null)

代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui

String value = enumFacet.getLexicalValue();
if (value != null)

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com