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

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

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

XSDSimpleTypeDefinition.getEffectiveMaxLengthFacet介绍

[英]Returns the value of the 'Effective Max Length Facet' reference.

This represents the org.eclipse.xsd.XSDMaxLengthFacet of the #getFacets.
[中]返回“有效最大长度方面”引用的值。
这代表组织。日食xsd。#getFacets的XSDMaxLengthFacet。

代码示例

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

@Override
public void validate()
{
 super.validate();
 XSDSimpleTypeDefinition xsdSimpleTypeDefinition = getSimpleTypeDefinition();
 XSDMaxLengthFacet xsdMaxLengthFacet = xsdSimpleTypeDefinition.getEffectiveMaxLengthFacet();
 if (xsdMaxLengthFacet != null && getValue() > xsdMaxLengthFacet.getValue())
 {
  XSDDiagnostic xsdDiagnostic =
   reportConstraintViolation
    (XSDConstants.PART2,
     "minLength-less-than-equal-to-maxLength",
     getElement(),
     null,
     new Object [] { new Integer(getValue()), xsdMaxLengthFacet.getEffectiveValue()});
  xsdDiagnostic.getComponents().add(xsdMaxLengthFacet);
 }
}

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

@Override
public void validate()
{
 super.validate();
 XSDSimpleTypeDefinition xsdSimpleTypeDefinition = getSimpleTypeDefinition();
 XSDMaxLengthFacet xsdMaxLengthFacet = xsdSimpleTypeDefinition.getEffectiveMaxLengthFacet();
 if (xsdMaxLengthFacet != null && getValue() > xsdMaxLengthFacet.getValue())
 {
  XSDDiagnostic xsdDiagnostic =
   reportConstraintViolation
    (XSDConstants.PART2,
     "minLength-less-than-equal-to-maxLength",
     getElement(),
     null,
     new Object [] { getValue(), xsdMaxLengthFacet.getEffectiveValue()});
  xsdDiagnostic.getComponents().add(xsdMaxLengthFacet);
 }
}

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

if (xsdMaxLengthFacet == null)
 xsdMaxLengthFacet = theBaseTypeDefinition.getEffectiveMaxLengthFacet();

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

if (xsdMaxLengthFacet == null)
 xsdMaxLengthFacet = theBaseTypeDefinition.getEffectiveMaxLengthFacet();

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

XSDLengthFacet lengthFacet = xsdSimpleType.getEffectiveLengthFacet();
XSDMinLengthFacet minLengthFacet = xsdSimpleType.getEffectiveMinLengthFacet();
XSDMaxLengthFacet maxLengthFacet = xsdSimpleType.getEffectiveMaxLengthFacet();

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

XSDMaxLengthFacet xsdMaxLengthFacet = attributeTypeDefinition.getEffectiveMaxLengthFacet();
if (xsdMaxLengthFacet != null)
XSDMaxLengthFacet xsdMaxLengthFacet = attributeTypeDefinition.getEffectiveMaxLengthFacet();
if (xsdMaxLengthFacet != null)

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

XSDMaxLengthFacet xsdMaxLengthFacet = attributeTypeDefinition.getEffectiveMaxLengthFacet();
if (xsdMaxLengthFacet != null)
XSDMaxLengthFacet xsdMaxLengthFacet = attributeTypeDefinition.getEffectiveMaxLengthFacet();
if (xsdMaxLengthFacet != null)

相关文章

微信公众号

最新文章

更多

XSDSimpleTypeDefinition类方法