case XMLStreamConstants.ENTITY_REFERENCE: EntityReference er = (EntityReference) event; theEventWriter.writeEntityRef(er.getName()); break; case XMLStreamConstants.NAMESPACE:
/** * Constructs a new DOM4J Entity from the provided StAX EntityReference * event. * * @param entityRef * The EntityReference event from which to construct the new * DOM4J Entity. * * @return The Entity constructed from the provided EntityReference event. */ public org.dom4j.Entity createEntity(EntityReference entityRef) { return factory.createEntity(entityRef.getName(), entityRef .getDeclaration().getReplacementText()); }
((javax.xml.stream.events.EntityReference)event).getName())); } else if (event.isProcessingInstruction()) { final ProcessingInstruction pi = factory.processingInstruction(
/** * Writes an {@link EntityReference} to the provided stream. * * @param entityRef The {@link EntityReference} to write. * @param writer The destination stream. * @throws XMLStreamException If an error occurs writing to the stream. */ public static final void writeEntityReference(EntityReference entityRef, XMLStreamWriter writer) throws XMLStreamException { writer.writeEntityRef(entityRef.getName()); }
public void addEntityReference(EntityReference er) throws XMLStreamException { writer.writeEntityRef(er.getName()); }
/** * Writes an {@link EntityReference} to the provided stream. * * @param entityRef The {@link EntityReference} to write. * @param writer The destination stream. * @throws XMLStreamException If an error occurs writing to the stream. */ public static final void writeEntityReference(EntityReference entityRef, Writer writer) throws IOException { writeEntityReference(entityRef.getName(), writer); }
public EntityReferenceEvent(EntityReference that) { super(that); this.name = that.getName(); this.declaration = that.getDeclaration(); }
public boolean equals(Object o) { if (o == this) return true; if (o == null) return false; if (!(o instanceof EntityReference)) return false; EntityReference other = (EntityReference) o; return getName().equals(other.getName()); }
public boolean equals(Object o) { if (! (o instanceof EntityReference)) return false; if (o == null) return false; if (this == o) return true; EntityReference entity = (EntityReference) o; return getName().equals(entity.getName()) && getDeclaration().equals(entity.getDeclaration()); } }
/** * Constructs a new DOM4J Entity from the provided StAX EntityReference * event. * * @param entityRef * The EntityReference event from which to construct the new * DOM4J Entity. * * @return The Entity constructed from the provided EntityReference event. */ public org.dom4j.Entity createEntity(EntityReference entityRef) { return factory.createEntity(entityRef.getName(), entityRef .getDeclaration().getReplacementText()); }
/** * Constructs a new DOM4J Entity from the provided StAX EntityReference * event. * * @param entityRef * The EntityReference event from which to construct the new * DOM4J Entity. * * @return The Entity constructed from the provided EntityReference event. */ public org.dom4j.Entity createEntity(EntityReference entityRef) { return factory.createEntity(entityRef.getName(), entityRef .getDeclaration().getReplacementText()); }
/** * Constructs a new DOM4J Entity from the provided StAX EntityReference * event. * * @param entityRef * The EntityReference event from which to construct the new * DOM4J Entity. * * @return The Entity constructed from the provided EntityReference event. */ public org.dom4j.Entity createEntity(EntityReference entityRef) { return factory.createEntity(entityRef.getName(), entityRef .getDeclaration().getReplacementText()); }
/** * Constructs a new DOM4J Entity from the provided StAX EntityReference * event. * * @param entityRef * The EntityReference event from which to construct the new * DOM4J Entity. * * @return The Entity constructed from the provided EntityReference event. */ public org.dom4j.Entity createEntity(EntityReference entityRef) { return factory.createEntity(entityRef.getName(), entityRef .getDeclaration().getReplacementText()); }
private void handleEntityReference(EntityReference reference) throws SAXException { if (getLexicalHandler() != null) { getLexicalHandler().startEntity(reference.getName()); } if (getLexicalHandler() != null) { getLexicalHandler().endEntity(reference.getName()); } }