gpt4 book ai didi

org.eclipse.xsd.XSDWhiteSpaceFacet类的使用及代码示例

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

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

XSDWhiteSpaceFacet介绍

[英]A representation of the model object 'White Space Facet'.

The following features are supported:

  • org.eclipse.xsd.XSDWhiteSpaceFacet#getValue
    [中]模型对象White Space Facet的表示形式。
    支持以下功能:
    *组织。日食xsd。XSDWhiteSpaceFaceFace#getValue

代码示例

代码示例来源:origin: geotools/geotools

XSDWhiteSpaceFacet whitespace = (XSDWhiteSpaceFacet) facet;
if (whitespace.getValue() == XSDWhiteSpace.REPLACE_LITERAL) {
  text = Whitespace.REPLACE.preparse(text);
if (whitespace.getValue() == XSDWhiteSpace.COLLAPSE_LITERAL) {
  text = Whitespace.COLLAPSE.preparse(text);
if (whitespace.getValue() == XSDWhiteSpace.PRESERVE_LITERAL) {

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

public String getNormalizedLiteral(String literal)
{
 String result = literal;
 XSDWhiteSpaceFacet effectiveWhiteSpaceFacet = getEffectiveWhiteSpaceFacet();
 if (effectiveWhiteSpaceFacet != null)
 {
  result = effectiveWhiteSpaceFacet.getNormalizedLiteral(result);
 }
 return result;
}

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

public static XSDWhiteSpaceFacet createWhiteSpaceFacet(Node node)
{
 if (XSDConstants.nodeType(node) == XSDConstants.WHITESPACE_ELEMENT)
 {
  XSDWhiteSpaceFacet xsdWhiteSpaceFacet = XSDFactory.eINSTANCE.createXSDWhiteSpaceFacet();
  xsdWhiteSpaceFacet.setElement((Element)node);
  return xsdWhiteSpaceFacet;
 }
 return null;
}

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

effectiveWhiteSpaceFacet.setLexicalValue("collapse");
effectiveWhiteSpaceFacet.setFixed(true);
getSyntheticFacets().add(effectiveWhiteSpaceFacet);

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

xsdSimpleTypeDefinition.getFacetContents().add(whitespaceFacet);
whitespaceFacet.setLexicalValue(XSDWhiteSpace.COLLAPSE_LITERAL.getName());

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

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

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

effectiveWhiteSpaceFacet.setLexicalValue("collapse");
effectiveWhiteSpaceFacet.setFixed(true);
getSyntheticFacets().add(effectiveWhiteSpaceFacet);

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

xsdWhiteSpaceFacet.setLexicalValue(XSDWhiteSpace.get(whiteSpace - 1).toString());
xsdSimpleTypeDefinition.getFacetContents().add(xsdWhiteSpaceFacet);

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

@Override
 public Object caseXSDWhiteSpaceFacet(XSDWhiteSpaceFacet xsdWhiteSpaceFacet)
 {
  extendedMetaData.setWhiteSpaceFacet(eDataType, xsdWhiteSpaceFacet.getValue().getValue() + 1);
  return this;
 }
}.doSwitch(xsdFacet);

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

public String getNormalizedLiteral(String literal)
{
 String result = literal;
 XSDWhiteSpaceFacet effectiveWhiteSpaceFacet = getEffectiveWhiteSpaceFacet();
 if (effectiveWhiteSpaceFacet != null)
 {
  result = effectiveWhiteSpaceFacet.getNormalizedLiteral(result);
 }
 return result;
}

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

public static XSDWhiteSpaceFacet createWhiteSpaceFacet(Node node)
{
 if (XSDConstants.nodeType(node) == XSDConstants.WHITESPACE_ELEMENT)
 {
  XSDWhiteSpaceFacet xsdWhiteSpaceFacet = XSDFactory.eINSTANCE.createXSDWhiteSpaceFacet();
  xsdWhiteSpaceFacet.setElement((Element)node);
  return xsdWhiteSpaceFacet;
 }
 return null;
}

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

@Override
 public Object caseXSDWhiteSpaceFacet(XSDWhiteSpaceFacet xsdWhiteSpaceFacet)
 {
  extendedMetaData.setWhiteSpaceFacet(eDataType, xsdWhiteSpaceFacet.getValue().getValue() + 1);
  return this;
 }
}.doSwitch(xsdFacet);

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

if (effectiveWhiteSpaceFacet != null)
 assessment.normalizedLiteral = effectiveWhiteSpaceFacet.getNormalizedLiteral(assessment.literal);

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

if (XSDWhiteSpace.COLLAPSE_LITERAL.equals(whitespaceFacet.getValue()))

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

if (effectiveWhiteSpaceFacet != null)
 assessment.normalizedLiteral = effectiveWhiteSpaceFacet.getNormalizedLiteral(assessment.literal);

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

@Override
protected void validateRestriction(XSDFixedFacet xsdFixedFacet)
{
 if (getValue().getValue() < ((XSDWhiteSpaceFacet)xsdFixedFacet).getValue().getValue())
 {
  XSDDiagnostic xsdDiagnostic =
   reportConstraintViolation
    (XSDConstants.PART2,
     "whiteSpace-valid-restriction",
     getElement(),
     XSDConstants.VALUE_ATTRIBUTE,
     new Object [] 
     { 
      getLexicalValue(), 
      xsdFixedFacet.getLexicalValue(), 
      xsdFixedFacet.getSimpleTypeDefinition().getURI() 
     });
  xsdDiagnostic.getComponents().add(xsdFixedFacet);
 }
}

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

@Override
protected void validateRestriction(XSDFixedFacet xsdFixedFacet)
{
 if (getValue().getValue() < ((XSDWhiteSpaceFacet)xsdFixedFacet).getValue().getValue())
 {
  XSDDiagnostic xsdDiagnostic =
   reportConstraintViolation
    (XSDConstants.PART2,
     "whiteSpace-valid-restriction",
     getElement(),
     XSDConstants.VALUE_ATTRIBUTE,
     new Object [] 
     { 
      getLexicalValue(), 
      xsdFixedFacet.getLexicalValue(), 
      xsdFixedFacet.getSimpleTypeDefinition().getURI() 
     });
  xsdDiagnostic.getComponents().add(xsdFixedFacet);
 }
}

代码示例来源:origin: org.geotools.xsd/gt-core

XSDWhiteSpaceFacet whitespace = (XSDWhiteSpaceFacet) facet;
if (whitespace.getValue() == XSDWhiteSpace.REPLACE_LITERAL) {
  text = Whitespace.REPLACE.preparse(text);
if (whitespace.getValue() == XSDWhiteSpace.COLLAPSE_LITERAL) {
  text = Whitespace.COLLAPSE.preparse(text);
if (whitespace.getValue() == XSDWhiteSpace.PRESERVE_LITERAL) {

代码示例来源:origin: org.geotools/gt2-xml-xsd

if ( whitespace.getValue() == XSDWhiteSpace.REPLACE_LITERAL ) {
  text = Whitespace.REPLACE.preparse(text);
if ( whitespace.getValue() == XSDWhiteSpace.COLLAPSE_LITERAL ) {
  text = Whitespace.COLLAPSE.preparse(text);
if ( whitespace.getValue() == XSDWhiteSpace.PRESERVE_LITERAL ) {

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