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

x33g5p2x  于2022-02-03 转载在 其他  
字(7.0k)|赞(0)|评价(0)|浏览(83)

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

XSDSimpleTypeDefinition.getValue介绍

[英]Returns the value of the literal in the value space of this simple type definition. The type of value expected depends the primitive type:

Built-in Primitive DatatypeCorresponding Java TypeanyListTypejava.util.ListanyURIjava.lang.Stringbase64Binaryorg.eclipse.xsd.util.XSDUtil.ByteSequencebooleanjava.lang.BooleandateTimeint []dateint []decimaljava.math.BigDecimaldoublejava.lang.Doubledurationint []floatjava.lang.FloatgDayint []gMonthint []gMonthDayint []gYearint []gYearMonthint []hexBinaryorg.eclipse.xsd.util.XSDUtil.ByteSequenceNOTATIONjava.lang.StringQNamejava.lang.Stringstringjava.lang.Stringtimeint []

All time-based values are represented as in Xerces.
[中]返回这个简单类型定义的{$0$}中的文本值。预期值的类型取决于基元类型:
内置基本数据类型对应的Java类型anyListTypeJava。util。ListanyURIjava。lang.Stringbase64Binaryorg。日食xsd。util。克斯杜蒂尔。字节序列BooleanJava。lang.BooleandateTimeint[]dateint[]小数java。数学大小数双Java。lang.doubleDurationnt[]floatjava。lang.FloatgDayint[]gMonthint[]gMonthDayint[]gYearint[]gYearMonthint[]hexBinaryorg。日食xsd。util。克斯杜蒂尔。字节序列Java。lang.StringQNamejava。lang.stringjava。lang.Stringtimeint[]
所有基于时间的值都用Xerces表示。

代码示例

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

@Override
protected boolean analyze()
{
 super.analyze();
 String theLexicalValue = getLexicalValue();
 Object newValue = null;
 if (theLexicalValue != null)
 {
  XSDSimpleTypeDefinition xsdSimpleTypeDefinition = (XSDSimpleTypeDefinition)getContainer();
  if (xsdSimpleTypeDefinition != null)
  {
   try
   {
    newValue = xsdSimpleTypeDefinition.getValue(theLexicalValue);
   }
   catch (RuntimeException exception)
   {
    // Ignore
   }
  }
 }
 if (newValue == null ? getValue() != null : !newValue.equals(getValue()))
 {
  setValue(newValue);
 }
 return true;
}

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

@Override
protected boolean analyze()
{
 super.analyze();
 String theLexicalValue = getLexicalValue();
 Object newValue = null;
 if (theLexicalValue != null)
 {
  XSDSimpleTypeDefinition xsdSimpleTypeDefinition = (XSDSimpleTypeDefinition)getContainer();
  if (xsdSimpleTypeDefinition != null)
  {
   try
   {
    newValue = xsdSimpleTypeDefinition.getValue(theLexicalValue);
   }
   catch (RuntimeException exception)
   {
    // Ignore.
   }
  }
 }
 if (newValue == null ? getValue() != null : !newValue.equals(getValue()))
 {
  setValue(newValue);
 }
 return true;
}

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

newValue = xsdSimpleTypeDefinition.getValue(theLexicalValue);

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

@Override
protected boolean analyze()
{
 super.analyze();
 String theLexicalValue = getLexicalValue();
 Object newValue = null;
 if (theLexicalValue != null)
 {
  XSDSimpleTypeDefinition xsdSimpleTypeDefinition = (XSDSimpleTypeDefinition)getContainer();
  if (xsdSimpleTypeDefinition != null)
  {
   try
   {
    newValue = xsdSimpleTypeDefinition.getValue(theLexicalValue);
   }
   catch (RuntimeException exception)
   {
    // Ignore
   }
  }
 }
 if (newValue == null ? getValue() != null : !newValue.equals(getValue()))
 {
  setValue(newValue);
 }
 return true;
}

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

@Override
protected boolean analyze()
{
 super.analyze();
 String theLexicalValue = getLexicalValue();
 Object newValue = null;
 if (theLexicalValue != null)
 {
  XSDSimpleTypeDefinition xsdSimpleTypeDefinition = (XSDSimpleTypeDefinition)getContainer();
  if (xsdSimpleTypeDefinition != null)
  {
   try
   {
    newValue = xsdSimpleTypeDefinition.getValue(theLexicalValue);
   }
   catch (RuntimeException exception)
   {
    // Ignore
   }
  }
 }
 if (newValue == null ? getValue() != null : !newValue.equals(getValue()))
 {
  setValue(newValue);
 }
 return true;
}

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

@Override
protected boolean analyze()
{
 super.analyze();
 String theLexicalValue = getLexicalValue();
 Object newValue = null;
 if (theLexicalValue != null)
 {
  XSDSimpleTypeDefinition xsdSimpleTypeDefinition = (XSDSimpleTypeDefinition)getContainer();
  if (xsdSimpleTypeDefinition != null)
  {
   try
   {
    newValue = xsdSimpleTypeDefinition.getValue(getElement(), theLexicalValue);
   }
   catch (RuntimeException exception)
   {
    // Ignore.
   }
  }
 }
 if (newValue == null ? getValue() != null : !newValue.equals(getValue()))
 {
  setValue(newValue);
 }
 return true;
}

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

@Override
protected boolean analyze()
{
 super.analyze();
 Object newValue = null;
 XSDSimpleTypeDefinition xsdSimpleTypeDefinition = getAttributeDeclaration().getTypeDefinition();
 if (xsdSimpleTypeDefinition != null)
 {
  String theLexicalValue = getLexicalValue();
  if (theLexicalValue != null)
  {
   try
   {
    newValue = xsdSimpleTypeDefinition.getValue(theLexicalValue);
   }
   catch (RuntimeException exception)
   {
    // Ignore.
   }
  }
 }
 if (newValue == null ? getValue() != null : !newValue.equals(getValue()))
 {
  setValue(newValue);
 }
 return true;
}

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

@Override
protected boolean analyze()
{
 super.analyze();
 String theLexicalValue = getLexicalValue();
 Object newValue = null;
 if (theLexicalValue != null)
 {
  XSDSimpleTypeDefinition xsdSimpleTypeDefinition = (XSDSimpleTypeDefinition)getContainer();
  if (xsdSimpleTypeDefinition != null)
  {
   try
   {
    newValue = xsdSimpleTypeDefinition.getValue(getElement(), theLexicalValue);
   }
   catch (RuntimeException exception)
   {
    // Ignore
   }
  }
 }
 if (newValue == null ? getValue() != null : !newValue.equals(getValue()))
 {
  setValue(newValue);
 }
 return true;
}

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

@Override
protected boolean analyze()
{
 super.analyze();
 String theLexicalValue = getLexicalValue();
 Object newValue = null;
 if (theLexicalValue != null)
 {
  XSDSimpleTypeDefinition xsdSimpleTypeDefinition = (XSDSimpleTypeDefinition)getContainer();
  if (xsdSimpleTypeDefinition != null)
  {
   try
   {
    newValue = xsdSimpleTypeDefinition.getValue(getElement(), theLexicalValue);
   }
   catch (RuntimeException exception)
   {
    // Ignore
   }
  }
 }
 if (newValue == null ? getValue() != null : !newValue.equals(getValue()))
 {
  setValue(newValue);
 }
 return true;
}

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

@Override
protected boolean analyze()
{
 super.analyze();
 String theLexicalValue = getLexicalValue();
 Object newValue = null;
 if (theLexicalValue != null)
 {
  XSDSimpleTypeDefinition xsdSimpleTypeDefinition = (XSDSimpleTypeDefinition)getContainer();
  if (xsdSimpleTypeDefinition != null)
  {
   try
   {
    newValue = xsdSimpleTypeDefinition.getValue(getElement(), theLexicalValue);
   }
   catch (RuntimeException exception)
   {
    // Ignore
   }
  }
 }
 if (newValue == null ? getValue() != null : !newValue.equals(getValue()))
 {
  setValue(newValue);
 }
 return true;
}

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

newValue = baseTypeDefinition.getValue(getElement(), theLexicalValue);

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

@Override
protected boolean analyze()
{
 super.analyze();
 Object newValue = null;
 XSDSimpleTypeDefinition xsdSimpleTypeDefinition = getAttributeDeclaration().getTypeDefinition();
 if (xsdSimpleTypeDefinition != null)
 {
  String theLexicalValue = getLexicalValue();
  if (theLexicalValue != null)
  {
   try
   {
    newValue = xsdSimpleTypeDefinition.getValue(getElement(), theLexicalValue);
   }
   catch (RuntimeException exception)
   {
    // Ignore.
   }
  }
 }
 if (newValue == null ? getValue() != null : !newValue.equals(getValue()))
 {
  setValue(newValue);
 }
 return true;
}

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

newValue = xsdSimpleTypeDefinition.getValue(theLexicalValue);

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

newValue = xsdSimpleTypeDefinition.getValue(getElement(), theLexicalValue);

相关文章

微信公众号

最新文章

更多

XSDSimpleTypeDefinition类方法