org.apache.xalan.templates.XMLNSDecl.<init>()方法的使用及代码示例

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

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

XMLNSDecl.<init>介绍

[英]Constructor XMLNSDecl
[中]构造函数XMLNSDecl

代码示例

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

/**
 * Copy the namespace declarations from the NamespaceSupport object.  
 * Take care to call resolveInheritedNamespaceDecls.
 * after all namespace declarations have been added.
 *
 * @param nsSupport non-null reference to NamespaceSupport from 
 * the ContentHandler.
 * @param excludeXSLDecl true if XSLT namespaces should be ignored.
 *
 * @throws TransformerException
 */
public void setPrefixes(NamespaceSupport nsSupport, boolean excludeXSLDecl)
    throws TransformerException
{
 Enumeration decls = nsSupport.getDeclaredPrefixes();
 while (decls.hasMoreElements())
 {
  String prefix = (String) decls.nextElement();
  if (null == m_declaredPrefixes)
   m_declaredPrefixes = new ArrayList();
  String uri = nsSupport.getURI(prefix);
  if (excludeXSLDecl && uri.equals(Constants.S_XSLNAMESPACEURL))
   continue;
  // System.out.println("setPrefixes - "+prefix+", "+uri);
  XMLNSDecl decl = new XMLNSDecl(prefix, uri, false);
  m_declaredPrefixes.add(decl);
 }
}

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

/**
 * Copy the namespace declarations from the NamespaceSupport object.  
 * Take care to call resolveInheritedNamespaceDecls.
 * after all namespace declarations have been added.
 *
 * @param nsSupport non-null reference to NamespaceSupport from 
 * the ContentHandler.
 * @param excludeXSLDecl true if XSLT namespaces should be ignored.
 *
 * @throws TransformerException
 */
public void setPrefixes(NamespaceSupport nsSupport, boolean excludeXSLDecl)
    throws TransformerException
{
 Enumeration decls = nsSupport.getDeclaredPrefixes();
 while (decls.hasMoreElements())
 {
  String prefix = (String) decls.nextElement();
  if (null == m_declaredPrefixes)
   m_declaredPrefixes = new ArrayList();
  String uri = nsSupport.getURI(prefix);
  if (excludeXSLDecl && uri.equals(Constants.S_XSLNAMESPACEURL))
   continue;
  // System.out.println("setPrefixes - "+prefix+", "+uri);
  XMLNSDecl decl = new XMLNSDecl(prefix, uri, false);
  m_declaredPrefixes.add(decl);
 }
}

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

decl = new XMLNSDecl(nsAlias.getStylesheetPrefix(), 
          nsAlias.getResultNamespace(), shouldExclude);
decl = new XMLNSDecl(prefix, uri, shouldExclude);
 decl = new XMLNSDecl(decl.getPrefix(), decl.getURI(),
            shouldExclude);

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

decl = new XMLNSDecl(nsAlias.getStylesheetPrefix(), 
          nsAlias.getResultNamespace(), shouldExclude);
decl = new XMLNSDecl(prefix, uri, shouldExclude);
 decl = new XMLNSDecl(decl.getPrefix(), decl.getURI(),
            shouldExclude);

代码示例来源:origin: ibinti/bugvm

/**
 * Copy the namespace declarations from the NamespaceSupport object.  
 * Take care to call resolveInheritedNamespaceDecls.
 * after all namespace declarations have been added.
 *
 * @param nsSupport non-null reference to NamespaceSupport from 
 * the ContentHandler.
 * @param excludeXSLDecl true if XSLT namespaces should be ignored.
 *
 * @throws TransformerException
 */
public void setPrefixes(NamespaceSupport nsSupport, boolean excludeXSLDecl)
    throws TransformerException
{
 Enumeration decls = nsSupport.getDeclaredPrefixes();
 while (decls.hasMoreElements())
 {
  String prefix = (String) decls.nextElement();
  if (null == m_declaredPrefixes)
   m_declaredPrefixes = new ArrayList();
  String uri = nsSupport.getURI(prefix);
  if (excludeXSLDecl && uri.equals(Constants.S_XSLNAMESPACEURL))
   continue;
  // System.out.println("setPrefixes - "+prefix+", "+uri);
  XMLNSDecl decl = new XMLNSDecl(prefix, uri, false);
  m_declaredPrefixes.add(decl);
 }
}

代码示例来源:origin: com.bugvm/bugvm-rt

/**
 * Copy the namespace declarations from the NamespaceSupport object.  
 * Take care to call resolveInheritedNamespaceDecls.
 * after all namespace declarations have been added.
 *
 * @param nsSupport non-null reference to NamespaceSupport from 
 * the ContentHandler.
 * @param excludeXSLDecl true if XSLT namespaces should be ignored.
 *
 * @throws TransformerException
 */
public void setPrefixes(NamespaceSupport nsSupport, boolean excludeXSLDecl)
    throws TransformerException
{
 Enumeration decls = nsSupport.getDeclaredPrefixes();
 while (decls.hasMoreElements())
 {
  String prefix = (String) decls.nextElement();
  if (null == m_declaredPrefixes)
   m_declaredPrefixes = new ArrayList();
  String uri = nsSupport.getURI(prefix);
  if (excludeXSLDecl && uri.equals(Constants.S_XSLNAMESPACEURL))
   continue;
  // System.out.println("setPrefixes - "+prefix+", "+uri);
  XMLNSDecl decl = new XMLNSDecl(prefix, uri, false);
  m_declaredPrefixes.add(decl);
 }
}

代码示例来源:origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1

/**
 * Copy the namespace declarations from the NamespaceSupport object.  
 * Take care to call resolveInheritedNamespaceDecls.
 * after all namespace declarations have been added.
 *
 * @param nsSupport non-null reference to NamespaceSupport from 
 * the ContentHandler.
 * @param excludeXSLDecl true if XSLT namespaces should be ignored.
 *
 * @throws TransformerException
 */
public void setPrefixes(NamespaceSupport nsSupport, boolean excludeXSLDecl)
    throws TransformerException
{
 Enumeration decls = nsSupport.getDeclaredPrefixes();
 while (decls.hasMoreElements())
 {
  String prefix = (String) decls.nextElement();
  if (null == m_declaredPrefixes)
   m_declaredPrefixes = new ArrayList();
  String uri = nsSupport.getURI(prefix);
  if (excludeXSLDecl && uri.equals(Constants.S_XSLNAMESPACEURL))
   continue;
  // System.out.println("setPrefixes - "+prefix+", "+uri);
  XMLNSDecl decl = new XMLNSDecl(prefix, uri, false);
  m_declaredPrefixes.add(decl);
 }
}

代码示例来源:origin: MobiVM/robovm

/**
 * Copy the namespace declarations from the NamespaceSupport object.  
 * Take care to call resolveInheritedNamespaceDecls.
 * after all namespace declarations have been added.
 *
 * @param nsSupport non-null reference to NamespaceSupport from 
 * the ContentHandler.
 * @param excludeXSLDecl true if XSLT namespaces should be ignored.
 *
 * @throws TransformerException
 */
public void setPrefixes(NamespaceSupport nsSupport, boolean excludeXSLDecl)
    throws TransformerException
{
 Enumeration decls = nsSupport.getDeclaredPrefixes();
 while (decls.hasMoreElements())
 {
  String prefix = (String) decls.nextElement();
  if (null == m_declaredPrefixes)
   m_declaredPrefixes = new ArrayList();
  String uri = nsSupport.getURI(prefix);
  if (excludeXSLDecl && uri.equals(Constants.S_XSLNAMESPACEURL))
   continue;
  // System.out.println("setPrefixes - "+prefix+", "+uri);
  XMLNSDecl decl = new XMLNSDecl(prefix, uri, false);
  m_declaredPrefixes.add(decl);
 }
}

代码示例来源:origin: org.apache.xalan/com.springsource.org.apache.xalan

/**
 * Copy the namespace declarations from the NamespaceSupport object.  
 * Take care to call resolveInheritedNamespaceDecls.
 * after all namespace declarations have been added.
 *
 * @param nsSupport non-null reference to NamespaceSupport from 
 * the ContentHandler.
 * @param excludeXSLDecl true if XSLT namespaces should be ignored.
 *
 * @throws TransformerException
 */
public void setPrefixes(NamespaceSupport nsSupport, boolean excludeXSLDecl)
    throws TransformerException
{
 Enumeration decls = nsSupport.getDeclaredPrefixes();
 while (decls.hasMoreElements())
 {
  String prefix = (String) decls.nextElement();
  if (null == m_declaredPrefixes)
   m_declaredPrefixes = new ArrayList();
  String uri = nsSupport.getURI(prefix);
  if (excludeXSLDecl && uri.equals(Constants.S_XSLNAMESPACEURL))
   continue;
  // System.out.println("setPrefixes - "+prefix+", "+uri);
  XMLNSDecl decl = new XMLNSDecl(prefix, uri, false);
  m_declaredPrefixes.add(decl);
 }
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

/**
 * Copy the namespace declarations from the NamespaceSupport object.  
 * Take care to call resolveInheritedNamespaceDecls.
 * after all namespace declarations have been added.
 *
 * @param nsSupport non-null reference to NamespaceSupport from 
 * the ContentHandler.
 * @param excludeXSLDecl true if XSLT namespaces should be ignored.
 *
 * @throws TransformerException
 */
public void setPrefixes(NamespaceSupport nsSupport, boolean excludeXSLDecl)
    throws TransformerException
{
 Enumeration decls = nsSupport.getDeclaredPrefixes();
 while (decls.hasMoreElements())
 {
  String prefix = (String) decls.nextElement();
  if (null == m_declaredPrefixes)
   m_declaredPrefixes = new ArrayList();
  String uri = nsSupport.getURI(prefix);
  if (excludeXSLDecl && uri.equals(Constants.S_XSLNAMESPACEURL))
   continue;
  // System.out.println("setPrefixes - "+prefix+", "+uri);
  XMLNSDecl decl = new XMLNSDecl(prefix, uri, false);
  m_declaredPrefixes.add(decl);
 }
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan

/**
 * Copy the namespace declarations from the NamespaceSupport object.  
 * Take care to call resolveInheritedNamespaceDecls.
 * after all namespace declarations have been added.
 *
 * @param nsSupport non-null reference to NamespaceSupport from 
 * the ContentHandler.
 * @param excludeXSLDecl true if XSLT namespaces should be ignored.
 *
 * @throws TransformerException
 */
public void setPrefixes(NamespaceSupport nsSupport, boolean excludeXSLDecl)
    throws TransformerException
{
 Enumeration decls = nsSupport.getDeclaredPrefixes();
 while (decls.hasMoreElements())
 {
  String prefix = (String) decls.nextElement();
  if (null == m_declaredPrefixes)
   m_declaredPrefixes = new ArrayList();
  String uri = nsSupport.getURI(prefix);
  if (excludeXSLDecl && uri.equals(Constants.S_XSLNAMESPACEURL))
   continue;
  // System.out.println("setPrefixes - "+prefix+", "+uri);
  XMLNSDecl decl = new XMLNSDecl(prefix, uri, false);
  m_declaredPrefixes.add(decl);
 }
}

代码示例来源:origin: com.gluonhq/robovm-rt

/**
 * Copy the namespace declarations from the NamespaceSupport object.  
 * Take care to call resolveInheritedNamespaceDecls.
 * after all namespace declarations have been added.
 *
 * @param nsSupport non-null reference to NamespaceSupport from 
 * the ContentHandler.
 * @param excludeXSLDecl true if XSLT namespaces should be ignored.
 *
 * @throws TransformerException
 */
public void setPrefixes(NamespaceSupport nsSupport, boolean excludeXSLDecl)
    throws TransformerException
{
 Enumeration decls = nsSupport.getDeclaredPrefixes();
 while (decls.hasMoreElements())
 {
  String prefix = (String) decls.nextElement();
  if (null == m_declaredPrefixes)
   m_declaredPrefixes = new ArrayList();
  String uri = nsSupport.getURI(prefix);
  if (excludeXSLDecl && uri.equals(Constants.S_XSLNAMESPACEURL))
   continue;
  // System.out.println("setPrefixes - "+prefix+", "+uri);
  XMLNSDecl decl = new XMLNSDecl(prefix, uri, false);
  m_declaredPrefixes.add(decl);
 }
}

代码示例来源:origin: FlexoVM/flexovm

/**
 * Copy the namespace declarations from the NamespaceSupport object.  
 * Take care to call resolveInheritedNamespaceDecls.
 * after all namespace declarations have been added.
 *
 * @param nsSupport non-null reference to NamespaceSupport from 
 * the ContentHandler.
 * @param excludeXSLDecl true if XSLT namespaces should be ignored.
 *
 * @throws TransformerException
 */
public void setPrefixes(NamespaceSupport nsSupport, boolean excludeXSLDecl)
    throws TransformerException
{
 Enumeration decls = nsSupport.getDeclaredPrefixes();
 while (decls.hasMoreElements())
 {
  String prefix = (String) decls.nextElement();
  if (null == m_declaredPrefixes)
   m_declaredPrefixes = new ArrayList();
  String uri = nsSupport.getURI(prefix);
  if (excludeXSLDecl && uri.equals(Constants.S_XSLNAMESPACEURL))
   continue;
  // System.out.println("setPrefixes - "+prefix+", "+uri);
  XMLNSDecl decl = new XMLNSDecl(prefix, uri, false);
  m_declaredPrefixes.add(decl);
 }
}

代码示例来源:origin: MobiVM/robovm

decl = new XMLNSDecl(nsAlias.getStylesheetPrefix(), 
          nsAlias.getResultNamespace(), shouldExclude);
decl = new XMLNSDecl(prefix, uri, shouldExclude);
 decl = new XMLNSDecl(decl.getPrefix(), decl.getURI(),
            shouldExclude);

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

decl = new XMLNSDecl(nsAlias.getStylesheetPrefix(), 
          nsAlias.getResultNamespace(), shouldExclude);
decl = new XMLNSDecl(prefix, uri, shouldExclude);
 decl = new XMLNSDecl(decl.getPrefix(), decl.getURI(),
            shouldExclude);

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan

decl = new XMLNSDecl(nsAlias.getStylesheetPrefix(), 
          nsAlias.getResultNamespace(), shouldExclude);
decl = new XMLNSDecl(prefix, uri, shouldExclude);
 decl = new XMLNSDecl(decl.getPrefix(), decl.getURI(),
            shouldExclude);

代码示例来源:origin: com.bugvm/bugvm-rt

decl = new XMLNSDecl(nsAlias.getStylesheetPrefix(), 
          nsAlias.getResultNamespace(), shouldExclude);
decl = new XMLNSDecl(prefix, uri, shouldExclude);
 decl = new XMLNSDecl(decl.getPrefix(), decl.getURI(),
            shouldExclude);

代码示例来源:origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1

decl = new XMLNSDecl(nsAlias.getStylesheetPrefix(), 
          nsAlias.getResultNamespace(), shouldExclude);
decl = new XMLNSDecl(prefix, uri, shouldExclude);
 decl = new XMLNSDecl(decl.getPrefix(), decl.getURI(),
            shouldExclude);

代码示例来源:origin: ibinti/bugvm

decl = new XMLNSDecl(nsAlias.getStylesheetPrefix(), 
          nsAlias.getResultNamespace(), shouldExclude);
decl = new XMLNSDecl(prefix, uri, shouldExclude);
 decl = new XMLNSDecl(decl.getPrefix(), decl.getURI(),
            shouldExclude);

代码示例来源:origin: org.apache.xalan/com.springsource.org.apache.xalan

decl = new XMLNSDecl(nsAlias.getStylesheetPrefix(), 
          nsAlias.getResultNamespace(), shouldExclude);
decl = new XMLNSDecl(prefix, uri, shouldExclude);
 decl = new XMLNSDecl(decl.getPrefix(), decl.getURI(),
            shouldExclude);

相关文章

微信公众号

最新文章

更多