gpt4 book ai didi

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

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

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

WhiteSpaceProcessor.collapse介绍

暂无

代码示例

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

public final String getCollapsedAttribute( String attrName ) {
  String s = getAttribute(attrName);
  if(s==null)        return null;
  return WhiteSpaceProcessor.collapse(s);
}

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

public final String getCollapsedAttribute( String attrName ) {
  String s = getAttribute(attrName);
  if(s==null)        return null;
  return WhiteSpaceProcessor.collapse(s);
}

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

public final String getCollapsedAttribute( String attrName ) {
  String s = getAttribute(attrName);
  if(s==null)        return null;
  return WhiteSpaceProcessor.collapse(s);
}

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

public final String getCollapsedAttribute( String attrName ) {
  String s = getAttribute(attrName);
  if(s==null)        return null;
  return WhiteSpaceProcessor.collapse(s);
}

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

protected NameClass makeNameClass() {
    
    String name = WhiteSpaceProcessor.collapse(new String(text));
    
    int idx = name.indexOf(':');
    if(idx<0)
      // if the name is NCName
      return new SimpleNameClass( getPropagatedNamespace(), name );
    
    // if it's a QName, resolve it.
    String[] qname 
      = reader.splitQName(name);
    
    return new SimpleNameClass( qname[0], qname[1] );
  }
}

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

protected Expression makeExpression() {
    if("preserve".equals(startTag.getAttribute("whiteSpace")))
      return reader.pool.createValue(
        StringType.theInstance,
        new StringPair("","string"),
        text.toString() );
    else
      return reader.pool.createValue(
        TokenType.theInstance,
        new StringPair("","token"),
        WhiteSpaceProcessor.collapse(text.toString()) );
    
    // masquerade RELAX NG built-in datatypes
  }
}

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

protected NameClass makeNameClass() {
    
    String name = WhiteSpaceProcessor.collapse(new String(text));
    
    int idx = name.indexOf(':');
    if(idx<0)
      // if the name is NCName
      return new SimpleNameClass( getPropagatedNamespace(), name );
    
    // if it's a QName, resolve it.
    String[] qname 
      = reader.splitQName(name);
    
    return new SimpleNameClass( qname[0], qname[1] );
  }
}

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

protected NameClass makeNameClass() {
    
    String name = WhiteSpaceProcessor.collapse(new String(text));
    
    int idx = name.indexOf(':');
    if(idx<0)
      // if the name is NCName
      return new SimpleNameClass( getPropagatedNamespace(), name );
    
    // if it's a QName, resolve it.
    String[] qname 
      = reader.splitQName(name);
    
    return new SimpleNameClass( qname[0], qname[1] );
  }
}

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

protected NameClass makeNameClass() {
    
    String name = WhiteSpaceProcessor.collapse(new String(text));
    
    int idx = name.indexOf(':');
    if(idx<0)
      // if the name is NCName
      return new SimpleNameClass( getPropagatedNamespace(), name );
    
    // if it's a QName, resolve it.
    String[] qname 
      = reader.splitQName(name);
    
    return new SimpleNameClass( qname[0], qname[1] );
  }
}

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

protected Expression makeExpression() {
    if("preserve".equals(startTag.getAttribute("whiteSpace")))
      return reader.pool.createValue(
        StringType.theInstance,
        new StringPair("","string"),
        text.toString() );
    else
      return reader.pool.createValue(
        TokenType.theInstance,
        new StringPair("","token"),
        WhiteSpaceProcessor.collapse(text.toString()) );
    
    // masquerade RELAX NG built-in datatypes
  }
}

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

protected Expression makeExpression() {
    if("preserve".equals(startTag.getAttribute("whiteSpace")))
      return reader.pool.createValue(
        StringType.theInstance,
        new StringPair("","string"),
        text.toString() );
    else
      return reader.pool.createValue(
        TokenType.theInstance,
        new StringPair("","token"),
        WhiteSpaceProcessor.collapse(text.toString()) );
    
    // masquerade RELAX NG built-in datatypes
  }
}

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

protected Expression makeExpression() {
    if("preserve".equals(startTag.getAttribute("whiteSpace")))
      return reader.pool.createValue(
        StringType.theInstance,
        new StringPair("","string"),
        text.toString() );
    else
      return reader.pool.createValue(
        TokenType.theInstance,
        new StringPair("","token"),
        WhiteSpaceProcessor.collapse(text.toString()) );
    
    // masquerade RELAX NG built-in datatypes
  }
}

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