本文整理了Java中javax.xml.stream.events.NotationDeclaration类的一些代码示例,展示了NotationDeclaration类的具体用法。这些代码示例主要来
本文整理了Java中javax.xml.stream.events.NotationDeclaration
类的一些代码示例,展示了NotationDeclaration
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。NotationDeclaration
类的具体详情如下:
包路径:javax.xml.stream.events.NotationDeclaration
类名称:NotationDeclaration
NotationDeclaration介绍
[英]An interface for handling Notation Declarations Receive notification of a notation declaration event. It is up to the application to record the notation for later reference, At least one of publicId and systemId must be non-null. There is no guarantee that the notation declaration will be reported before any unparsed entities that use it.
[中]处理注释声明的接口接收注释声明事件的通知。由应用程序记录符号以供以后参考,publicId和systemId中至少有一个必须为非空。无法保证符号声明将在使用它的任何未解析实体之前报告。
代码示例
代码示例来源:origin: spring-projects/spring-framework
private void handleNotationDeclaration(NotationDeclaration declaration) throws SAXException {
if (getDTDHandler() != null) {
getDTDHandler().notationDecl(declaration.getName(), declaration.getPublicId(), declaration.getSystemId());
}
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
public static void throwNotationException(NotationDeclaration oldDecl, NotationDeclaration newDecl)
throws XMLStreamException
{
throw new WstxParsingException
(MessageFormat.format(ErrorConsts.ERR_DTD_NOTATION_REDEFD,
new Object[] {
newDecl.getName(),
oldDecl.getLocation().toString()}),
newDecl.getLocation());
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-asl
if (decl != null) {
mUsesPredefdNotatiOns= true;
return decl.getName();
return decl.getName();
代码示例来源:origin: Nextdoor/bender
public static void throwNotationException(NotationDeclaration oldDecl, NotationDeclaration newDecl)
throws XMLStreamException
{
throw new WstxParsingException
(MessageFormat.format(ErrorConsts.ERR_DTD_NOTATION_REDEFD,
new Object[] {
newDecl.getName(),
oldDecl.getLocation().toString()}),
newDecl.getLocation());
}
代码示例来源:origin: com.fasterxml.woodstox/woodstox-core
if (decl != null) {
mUsesPredefdNotatiOns= true;
return decl.getName();
return decl.getName();
代码示例来源:origin: org.springframework/spring-core
private void handleNotationDeclaration(NotationDeclaration declaration) throws SAXException {
if (getDTDHandler() != null) {
getDTDHandler().notationDecl(declaration.getName(), declaration.getPublicId(), declaration.getSystemId());
}
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-lgpl
public static void throwNotationException(NotationDeclaration oldDecl, NotationDeclaration newDecl)
throws XMLStreamException
{
throw new WstxParsingException
(MessageFormat.format(ErrorConsts.ERR_DTD_NOTATION_REDEFD,
new Object[] {
newDecl.getName(),
oldDecl.getLocation().toString()}),
newDecl.getLocation());
}
代码示例来源:origin: org.codehaus.woodstox/woodstox-core-lgpl
if (decl != null) {
mUsesPredefdNotatiOns= true;
return decl.getName();
return decl.getName();
代码示例来源:origin: camunda/camunda-bpm-platform
private void handleNotationDeclaration(NotationDeclaration declaration) throws SAXException {
if (getDTDHandler() != null) {
getDTDHandler().notationDecl(declaration.getName(), declaration.getPublicId(), declaration.getSystemId());
}
}
代码示例来源:origin: com.fasterxml.woodstox/woodstox-core
public static void throwNotationException(NotationDeclaration oldDecl, NotationDeclaration newDecl)
throws XMLStreamException
{
throw new WstxParsingException
(MessageFormat.format(ErrorConsts.ERR_DTD_NOTATION_REDEFD,
new Object[] {
newDecl.getName(),
oldDecl.getLocation().toString()}),
newDecl.getLocation());
}
代码示例来源:origin: FasterXML/woodstox
if (decl != null) {
mUsesPredefdNotatiOns= true;
return decl.getName();
return decl.getName();
代码示例来源:origin: net.java.dev.stax-utils/stax-utils
public NotationDeclarationEvent(NotationDeclaration that) {
super(that);
this.name = that.getName();
this.publicId = that.getPublicId();
this.systemId = that.getSystemId();
}
代码示例来源:origin: FasterXML/woodstox
public static void throwNotationException(NotationDeclaration oldDecl, NotationDeclaration newDecl)
throws XMLStreamException
{
throw new WstxParsingException
(MessageFormat.format(ErrorConsts.ERR_DTD_NOTATION_REDEFD,
new Object[] {
newDecl.getName(),
oldDecl.getLocation().toString()}),
newDecl.getLocation());
}
代码示例来源:origin: Nextdoor/bender
if (decl != null) {
mUsesPredefdNotatiOns= true;
return decl.getName();
return decl.getName();
代码示例来源:origin: net.java.dev.stax-utils/stax-utils
/**
* Writes a {@link NotationDeclaration} to the stream.
*
* @param declaration The {@link NotationDeclaration} to write.
* @param writer The destination stream.
* @throws IOException If an error occurs writing to the stream.
*/
public static final void writeNotationDeclaration(
NotationDeclaration declaration, Writer writer) throws IOException {
String name = declaration.getName();
String publicId = declaration.getPublicId();
String systemId = declaration.getSystemId();
writeNotationDeclaration(name, publicId, systemId, writer);
}
代码示例来源:origin: net.java.dev.stax-utils/stax-utils
if (!a.getName().equals(b.getName())) {
String publicId = a.getPublicId();
if (!(publicId == null
? b.getPublicId() == null
: publicId.equals(b.getPublicId()))) {
String systemId = a.getSystemId();
if (!(systemId == null
? b.getSystemId() == null
: systemId.equals(b.getSystemId()))) {
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core
private void handleNotationDeclaration(NotationDeclaration declaration) throws SAXException {
if (getDTDHandler() != null) {
getDTDHandler().notationDecl(declaration.getName(), declaration.getPublicId(), declaration.getSystemId());
}
}
代码示例来源:origin: org.springframework.ws/org.springframework.xml
private void handleNotationDeclaration(NotationDeclaration declaration) throws SAXException {
if (getDTDHandler() != null) {
getDTDHandler().notationDecl(declaration.getName(), declaration.getPublicId(), declaration.getSystemId());
}
}
代码示例来源:origin: org.xbib/content-xml
private void handleNotationDeclaration(NotationDeclaration declaration) throws SAXException {
if (getDTDHandler() != null) {
getDTDHandler().notationDecl(declaration.getName(), declaration.getPublicId(), declaration.getSystemId());
}
}
代码示例来源:origin: com.caucho/resin
public boolean equals(Object o)
{
if (! (o instanceof NotationDeclaration))
return false;
if (o == null)
return false;
if (this == o)
return true;
NotationDeclaration decl = (NotationDeclaration) o;
return getName().equals(decl.getName()) &&
getPublicId().equals(decl.getPublicId()) &&
getSystemId().equals(decl.getSystemId());
}
}