本文整理了Java中org.apache.xalan.templates.XMLNSDecl.getPrefix()
方法的一些代码示例,展示了XMLNSDecl.getPrefix()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLNSDecl.getPrefix()
方法的具体详情如下:
包路径:org.apache.xalan.templates.XMLNSDecl
类名称:XMLNSDecl
方法名:getPrefix
[英]Return the prefix.
[中]返回前缀。
代码示例来源:origin: robovm/robovm
/**
* Add or replace this namespace declaration in list
* of namespaces in scope for this element.
*
* @param newDecl namespace declaration to add to list
*/
void addOrReplaceDecls(XMLNSDecl newDecl)
{
int n = m_prefixTable.size();
for (int i = n - 1; i >= 0; i--)
{
XMLNSDecl decl = (XMLNSDecl) m_prefixTable.get(i);
if (decl.getPrefix().equals(newDecl.getPrefix()))
{
return;
}
}
m_prefixTable.add(newDecl);
}
代码示例来源:origin: xalan/xalan
/**
* Add or replace this namespace declaration in list
* of namespaces in scope for this element.
*
* @param newDecl namespace declaration to add to list
*/
void addOrReplaceDecls(XMLNSDecl newDecl)
{
int n = m_prefixTable.size();
for (int i = n - 1; i >= 0; i--)
{
XMLNSDecl decl = (XMLNSDecl) m_prefixTable.get(i);
if (decl.getPrefix().equals(newDecl.getPrefix()))
{
return;
}
}
m_prefixTable.add(newDecl);
}
代码示例来源:origin: robovm/robovm
if (!decl.getIsExcluded() && !(null != ignorePrefix && decl.getPrefix().equals(ignorePrefix)))
rhandler.endPrefixMapping(decl.getPrefix());
代码示例来源:origin: robovm/robovm
if (prefix.equals(decl.getPrefix()))
return decl.getURI();
代码示例来源:origin: xalan/xalan
if (prefix.equals(decl.getPrefix()))
return decl.getURI();
代码示例来源:origin: xalan/xalan
if (!decl.getIsExcluded() && !(null != ignorePrefix && decl.getPrefix().equals(ignorePrefix)))
rhandler.endPrefixMapping(decl.getPrefix());
代码示例来源:origin: robovm/robovm
if (!decl.getIsExcluded() && !(null != ignorePrefix && decl.getPrefix().equals(ignorePrefix)))
rhandler.startPrefixMapping(decl.getPrefix(), decl.getURI(), true);
代码示例来源:origin: xalan/xalan
if (!decl.getIsExcluded() && !(null != ignorePrefix && decl.getPrefix().equals(ignorePrefix)))
rhandler.startPrefixMapping(decl.getPrefix(), decl.getURI(), true);
代码示例来源:origin: robovm/robovm
String prefix = decl.getPrefix();
String uri = decl.getURI();
if(null == uri)
boolean shouldExclude = excludeResultNSDecl(decl.getPrefix(),
decl.getURI());
decl = new XMLNSDecl(decl.getPrefix(), decl.getURI(),
shouldExclude);
代码示例来源:origin: xalan/xalan
String prefix = decl.getPrefix();
String uri = decl.getURI();
if(null == uri)
boolean shouldExclude = excludeResultNSDecl(decl.getPrefix(),
decl.getURI());
decl = new XMLNSDecl(decl.getPrefix(), decl.getURI(),
shouldExclude);
代码示例来源:origin: MobiVM/robovm
/**
* Add or replace this namespace declaration in list
* of namespaces in scope for this element.
*
* @param newDecl namespace declaration to add to list
*/
void addOrReplaceDecls(XMLNSDecl newDecl)
{
int n = m_prefixTable.size();
for (int i = n - 1; i >= 0; i--)
{
XMLNSDecl decl = (XMLNSDecl) m_prefixTable.get(i);
if (decl.getPrefix().equals(newDecl.getPrefix()))
{
return;
}
}
m_prefixTable.add(newDecl);
}
代码示例来源:origin: ibinti/bugvm
/**
* Add or replace this namespace declaration in list
* of namespaces in scope for this element.
*
* @param newDecl namespace declaration to add to list
*/
void addOrReplaceDecls(XMLNSDecl newDecl)
{
int n = m_prefixTable.size();
for (int i = n - 1; i >= 0; i--)
{
XMLNSDecl decl = (XMLNSDecl) m_prefixTable.get(i);
if (decl.getPrefix().equals(newDecl.getPrefix()))
{
return;
}
}
m_prefixTable.add(newDecl);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan
/**
* Add or replace this namespace declaration in list
* of namespaces in scope for this element.
*
* @param newDecl namespace declaration to add to list
*/
void addOrReplaceDecls(XMLNSDecl newDecl)
{
int n = m_prefixTable.size();
for (int i = n - 1; i >= 0; i--)
{
XMLNSDecl decl = (XMLNSDecl) m_prefixTable.get(i);
if (decl.getPrefix().equals(newDecl.getPrefix()))
{
return;
}
}
m_prefixTable.add(newDecl);
}
代码示例来源:origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1
/**
* Add or replace this namespace declaration in list
* of namespaces in scope for this element.
*
* @param newDecl namespace declaration to add to list
*/
void addOrReplaceDecls(XMLNSDecl newDecl)
{
int n = m_prefixTable.size();
for (int i = n - 1; i >= 0; i--)
{
XMLNSDecl decl = (XMLNSDecl) m_prefixTable.get(i);
if (decl.getPrefix().equals(newDecl.getPrefix()))
{
return;
}
}
m_prefixTable.add(newDecl);
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
/**
* Add or replace this namespace declaration in list
* of namespaces in scope for this element.
*
* @param newDecl namespace declaration to add to list
*/
void addOrReplaceDecls(XMLNSDecl newDecl)
{
int n = m_prefixTable.size();
for (int i = n - 1; i >= 0; i--)
{
XMLNSDecl decl = (XMLNSDecl) m_prefixTable.get(i);
if (decl.getPrefix().equals(newDecl.getPrefix()))
{
return;
}
}
m_prefixTable.add(newDecl);
}
代码示例来源:origin: org.apache.xalan/com.springsource.org.apache.xalan
/**
* Add or replace this namespace declaration in list
* of namespaces in scope for this element.
*
* @param newDecl namespace declaration to add to list
*/
void addOrReplaceDecls(XMLNSDecl newDecl)
{
int n = m_prefixTable.size();
for (int i = n - 1; i >= 0; i--)
{
XMLNSDecl decl = (XMLNSDecl) m_prefixTable.get(i);
if (decl.getPrefix().equals(newDecl.getPrefix()))
{
return;
}
}
m_prefixTable.add(newDecl);
}
代码示例来源:origin: com.bugvm/bugvm-rt
/**
* Add or replace this namespace declaration in list
* of namespaces in scope for this element.
*
* @param newDecl namespace declaration to add to list
*/
void addOrReplaceDecls(XMLNSDecl newDecl)
{
int n = m_prefixTable.size();
for (int i = n - 1; i >= 0; i--)
{
XMLNSDecl decl = (XMLNSDecl) m_prefixTable.get(i);
if (decl.getPrefix().equals(newDecl.getPrefix()))
{
return;
}
}
m_prefixTable.add(newDecl);
}
代码示例来源:origin: com.gluonhq/robovm-rt
/**
* Add or replace this namespace declaration in list
* of namespaces in scope for this element.
*
* @param newDecl namespace declaration to add to list
*/
void addOrReplaceDecls(XMLNSDecl newDecl)
{
int n = m_prefixTable.size();
for (int i = n - 1; i >= 0; i--)
{
XMLNSDecl decl = (XMLNSDecl) m_prefixTable.get(i);
if (decl.getPrefix().equals(newDecl.getPrefix()))
{
return;
}
}
m_prefixTable.add(newDecl);
}
代码示例来源:origin: FlexoVM/flexovm
/**
* Add or replace this namespace declaration in list
* of namespaces in scope for this element.
*
* @param newDecl namespace declaration to add to list
*/
void addOrReplaceDecls(XMLNSDecl newDecl)
{
int n = m_prefixTable.size();
for (int i = n - 1; i >= 0; i--)
{
XMLNSDecl decl = (XMLNSDecl) m_prefixTable.get(i);
if (decl.getPrefix().equals(newDecl.getPrefix()))
{
return;
}
}
m_prefixTable.add(newDecl);
}
代码示例来源:origin: MobiVM/robovm
if (!decl.getIsExcluded() && !(null != ignorePrefix && decl.getPrefix().equals(ignorePrefix)))
rhandler.startPrefixMapping(decl.getPrefix(), decl.getURI(), true);
内容来源于网络,如有侵权,请联系作者删除!