public class MetaTagAdjuster extends ProxyReceiver
| Modifier and Type | Field and Description |
|---|---|
(package private) AttributeCollectionImpl |
attributes |
(package private) int |
droppingMetaTags |
(package private) String |
encoding |
(package private) boolean |
foundHead |
(package private) String |
headPrefix |
(package private) String |
headURI |
(package private) int |
htmlVersion |
(package private) boolean |
inMetaTag |
(package private) boolean |
isXHTML |
(package private) int |
level |
(package private) String |
mediaType |
(package private) NodeName |
metaCode |
(package private) List<NamespaceBinding> |
namespaces |
(package private) String |
requiredURI |
(package private) boolean |
seekingHead |
nextReceiverpipelineConfiguration, previousAtomic, systemIdPI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING| Constructor and Description |
|---|
MetaTagAdjuster(Receiver next)
Create a new MetaTagAdjuster
|
| Modifier and Type | Method and Description |
|---|---|
void |
attribute(NodeName nameCode,
SimpleType typeCode,
CharSequence value,
Location locationId,
int properties)
Notify an attribute.
|
void |
endElement()
End of element
|
void |
namespace(NamespaceBindingSet namespaceBindings,
int properties)
Notify a namespace.
|
void |
setIsXHTML(boolean xhtml)
Indicate whether we're handling HTML or XHTML
|
void |
setOutputProperties(Properties details)
Set output properties
|
void |
startContent()
Notify the start of the content, that is, the completion of all attributes and namespaces.
|
void |
startElement(NodeName nameCode,
SchemaType typeCode,
Location location,
int properties)
Notify the start of an element
|
append, characters, close, comment, endDocument, getNamePool, getNextReceiver, open, processingInstruction, setPipelineConfiguration, setSystemId, setUnderlyingReceiver, setUnparsedEntity, startDocument, usesTypeAnnotationsappend, decompose, flatten, getConfiguration, getErrorCodeForDecomposingFunctionItems, getPipelineConfiguration, getSystemId, handlesAppendboolean seekingHead
int droppingMetaTags
boolean inMetaTag
boolean foundHead
String headPrefix
String headURI
NodeName metaCode
String requiredURI
AttributeCollectionImpl attributes
List<NamespaceBinding> namespaces
String encoding
String mediaType
int level
boolean isXHTML
int htmlVersion
public MetaTagAdjuster(Receiver next)
next - the next receiver in the pipelinepublic void setOutputProperties(Properties details)
details - the serialization propertiespublic void setIsXHTML(boolean xhtml)
public void startElement(NodeName nameCode, SchemaType typeCode, Location location, int properties) throws XPathException
startElement in interface ReceiverstartElement in class ProxyReceivernameCode - integer code identifying the name of the element within the name pool.typeCode - integer code identifying the element's type within the name pool.location - properties - properties of the element nodeXPathException - if an error occurspublic void attribute(NodeName nameCode, SimpleType typeCode, CharSequence value, Location locationId, int properties) throws XPathException
attribute in interface Receiverattribute in class ProxyReceivernameCode - The name of the attributetypeCode - The type of the attributelocationId - the location of the node in the source, or of the instruction that created itproperties - Bit significant value. The following bits are defined:
value - the string value of the attributeIllegalStateException: - attempt to output an attribute when there is no open element
start tagXPathException - if an error occurspublic void namespace(NamespaceBindingSet namespaceBindings, int properties) throws XPathException
namespace in interface Receivernamespace in class ProxyReceivernamespaceBindings - the prefix/uri pair representing the namespace bindingproperties - any special properties to be passed on this callIllegalStateException: - attempt to output a namespace when there is no open element
start tagXPathException - if an error occurspublic void startContent()
throws XPathException
startContent in interface ReceiverstartContent in class ProxyReceiverXPathException - if an error occurspublic void endElement()
throws XPathException
endElement in interface ReceiverendElement in class ProxyReceiverXPathException - if an error occurs