gpt4 book ai didi

com.sun.msv.datatype.xsd.WhiteSpaceProcessor.process()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-25 07:35:05 26 4
gpt4 key购买 nike

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

WhiteSpaceProcessor.process介绍

[英]returns whitespace normalized text. behavior varies on what normalization mode is used.
[中]返回空白规范化文本。行为因使用的规范化模式而异。

代码示例

代码示例来源:origin: com.sun.msv.datatype.xsd/xsdlib

public static String replace(String str) {
  return theReplace.process(str);
}
public static String collapse(String str) {

代码示例来源:origin: com.sun.xml.bind/jaxb-extra-osgi

public static String replace(String str) {
  return theReplace.process(str);
}
public static String collapse(String str) {

代码示例来源:origin: com.sun.msv.datatype.xsd/xsdlib

public static String collapse(String str) {
  return theCollapse.process(str);
}

代码示例来源:origin: com.sun.xml.bind/jaxb1-impl

public static String replace(String str) {
  return theReplace.process(str);
}
public static String collapse(String str) {

代码示例来源:origin: com.sun.xml.bind/jaxb-extra-osgi

public static String collapse(String str) {
  return theCollapse.process(str);
}

代码示例来源:origin: com.sun.xml.bind/jaxb1-impl

final public void checkValid(String content, ValidationContext context) throws DatatypeException {
  _checkValid(whiteSpace.process(content),context);
}

代码示例来源:origin: com.sun.xml.bind/jaxb1-impl

final public Object createValue( String lexicalValue, ValidationContext context ) {
  return _createValue(whiteSpace.process(lexicalValue),context);
}

代码示例来源:origin: com.sun.msv/com.springsource.com.sun.msv.datatype

final public Object createValue( String lexicalValue, ValidationContext context ) {
  return _createValue(whiteSpace.process(lexicalValue),context);
}

代码示例来源:origin: com.sun.xml.bind/jaxb-extra-osgi

final public Object createValue( String lexicalValue, ValidationContext context ) {
  return _createValue(whiteSpace.process(lexicalValue),context);
}

代码示例来源:origin: com.sun.xml.bind/jaxb-extra-osgi

final public Object createJavaObject( String literal, ValidationContext context ) {
  return _createJavaObject(whiteSpace.process(literal),context);
}

代码示例来源:origin: com.sun.xml.bind/jaxb1-impl

/**
 * returns a WhiteSpaceProcessor object if "whiteSpace" facet is specified.
 * Otherwise returns null.
 */
protected static WhiteSpaceProcessor get(String name) throws DatatypeException {
  name = theCollapse.process(name);
  if (name.equals("preserve"))    return thePreserve;
  if (name.equals("collapse"))    return theCollapse;
  if (name.equals("replace"))     return theReplace;
  throw new DatatypeException(XSDatatypeImpl.localize(XSDatatypeImpl.ERR_INVALID_WHITESPACE_VALUE, name));
}

代码示例来源:origin: kohsuke/msv

/**
 * returns a WhiteSpaceProcessor object if "whiteSpace" facet is specified.
 * Otherwise returns null.
 */
protected static WhiteSpaceProcessor get(String name) throws DatatypeException {
  name = theCollapse.process(name);
  if (name.equals("preserve"))    return thePreserve;
  if (name.equals("collapse"))    return theCollapse;
  if (name.equals("replace"))     return theReplace;
  throw new DatatypeException(XSDatatypeImpl.localize(XSDatatypeImpl.ERR_INVALID_WHITESPACE_VALUE, name));
}

代码示例来源:origin: com.sun.msv.datatype.xsd/xsdlib

/**
 * returns a WhiteSpaceProcessor object if "whiteSpace" facet is specified.
 * Otherwise returns null.
 */
protected static WhiteSpaceProcessor get(String name) throws DatatypeException {
  name = theCollapse.process(name);
  if (name.equals("preserve"))    return thePreserve;
  if (name.equals("collapse"))    return theCollapse;
  if (name.equals("replace"))     return theReplace;
  throw new DatatypeException(XSDatatypeImpl.localize(XSDatatypeImpl.ERR_INVALID_WHITESPACE_VALUE, name));
}

代码示例来源:origin: com.sun.msv/com.springsource.com.sun.msv.datatype

/**
 * returns a WhiteSpaceProcessor object if "whiteSpace" facet is specified.
 * Otherwise returns null.
 */
protected static WhiteSpaceProcessor get(String name) throws DatatypeException {
  name = theCollapse.process(name);
  if (name.equals("preserve"))    return thePreserve;
  if (name.equals("collapse"))    return theCollapse;
  if (name.equals("replace"))     return theReplace;
  throw new DatatypeException(XSDatatypeImpl.localize(XSDatatypeImpl.ERR_INVALID_WHITESPACE_VALUE, name));
}

代码示例来源:origin: com.sun.xml.bind/jaxb-extra-osgi

/**
 * returns a WhiteSpaceProcessor object if "whiteSpace" facet is specified.
 * Otherwise returns null.
 */
protected static WhiteSpaceProcessor get(String name) throws DatatypeException {
  name = theCollapse.process(name);
  if (name.equals("preserve"))    return thePreserve;
  if (name.equals("collapse"))    return theCollapse;
  if (name.equals("replace"))     return theReplace;
  throw new DatatypeException(XSDatatypeImpl.localize(XSDatatypeImpl.ERR_INVALID_WHITESPACE_VALUE, name));
}

代码示例来源:origin: kohsuke/msv

final public boolean isValid( String literal, ValidationContext context ) {
  // step.1 white space processing
  literal = whiteSpace.process(literal);
  
  if( needValueCheck() )
    // constraint facet that needs computation of value is specified.
    return _createValue(literal,context)!=null;
  else
    // lexical validation is enough.
    return checkFormat(literal,context);
}

代码示例来源:origin: com.sun.msv.datatype.xsd/xsdlib

final public boolean isValid( String literal, ValidationContext context ) {
  // step.1 white space processing
  literal = whiteSpace.process(literal);
  
  if( needValueCheck() )
    // constraint facet that needs computation of value is specified.
    return _createValue(literal,context)!=null;
  else
    // lexical validation is enough.
    return checkFormat(literal,context);
}

代码示例来源:origin: com.sun.xml.bind/jaxb1-impl

final public boolean isValid( String literal, ValidationContext context ) {
  // step.1 white space processing
  literal = whiteSpace.process(literal);
  
  if( needValueCheck() )
    // constraint facet that needs computation of value is specified.
    return _createValue(literal,context)!=null;
  else
    // lexical validation is enough.
    return checkFormat(literal,context);
}

代码示例来源:origin: com.sun.xml.bind/jaxb-extra-osgi

final public boolean isValid( String literal, ValidationContext context ) {
  // step.1 white space processing
  literal = whiteSpace.process(literal);
  
  if( needValueCheck() )
    // constraint facet that needs computation of value is specified.
    return _createValue(literal,context)!=null;
  else
    // lexical validation is enough.
    return checkFormat(literal,context);
}

代码示例来源:origin: com.sun.msv/com.springsource.com.sun.msv.datatype

final public boolean isValid( String literal, ValidationContext context ) {
  // step.1 white space processing
  literal = whiteSpace.process(literal);
  
  if( needValueCheck() )
    // constraint facet that needs computation of value is specified.
    return _createValue(literal,context)!=null;
  else
    // lexical validation is enough.
    return checkFormat(literal,context);
}

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