public abstract class WordByWordElement
extends java.lang.Object
A representation of an element that contains only PCDATA and a delta value used by WordBufferingFilter
and its
sub-types to represent and manipulate the buffer of word/space/punctuation elements. This class is useful if you're creating an
outfilter which is processing word/space/punctuation elements.
This is intended to be extended by sub-types representing Word/Punctuation/Space for the WordByWord filters.
Constructor and Description |
---|
WordByWordElement()
Constructs an empty WordByWordElement.
|
WordByWordElement(Delta delta)
Constructs a new new WordByWordElement with the supplied Delta value and attributes.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAValue()
Returns the element's value from document 'A'.
|
java.lang.String |
getBValue()
Returns the element's value from document 'B'.
|
Delta |
getDelta()
Returns the element's delta value.
|
abstract java.lang.String |
getLocalName()
Returns the localName of the current element type.
|
java.lang.String |
getUnchangedValue()
Returns the element's unchanged value.
|
void |
setAValue(java.lang.String aValue)
Sets the elements's value from document 'A'.
|
void |
setBValue(java.lang.String bValue)
Sets the elements's value from document 'B'.
|
void |
setDelta(Delta delta)
Sets the element's delta value.
|
void |
setUnchangedValue(java.lang.String unchangedValue)
Sets the elements's unchanged value.
|
public WordByWordElement()
public WordByWordElement(Delta delta)
delta
- the delta value of the elementpublic Delta getDelta()
public void setDelta(Delta delta)
delta
- the element's delta value.public java.lang.String getBValue()
public void setBValue(java.lang.String bValue)
bValue
- the elements's value from document 'B'.public java.lang.String getAValue()
public void setAValue(java.lang.String aValue)
aValue
- the elements's value from document 'A'.public java.lang.String getUnchangedValue()
public void setUnchangedValue(java.lang.String unchangedValue)
unchangedValue
- the elements's unchanged value.public abstract java.lang.String getLocalName()
Copyright © 2001-2018 DeltaXML Ltd. All Rights Reserved.