public class ChangeFixedWidth1ToAuto extends MoMLFilterSimple
Red (rodiers) |
Red (rodiers) |
Constructor and Description |
---|
ChangeFixedWidth1ToAuto() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
filterAttributeValue(NamedObj container,
java.lang.String element,
java.lang.String attributeName,
java.lang.String attributeValue,
java.lang.String xmlFile)
This method doesn't do anything.
|
void |
filterEndElement(NamedObj container,
java.lang.String elementName,
java.lang.StringBuffer currentCharData,
java.lang.String xmlFile)
Filter relations widths and change 1 to "Auto" and make sure still value
is not not stored (if not changed).
|
static void |
main(java.lang.String[] args)
Main function.
|
java.lang.String |
toString()
Return a string that describes what the filter does.
|
filterAttributeValue, filterEndElement
public java.lang.String filterAttributeValue(NamedObj container, java.lang.String element, java.lang.String attributeName, java.lang.String attributeValue, java.lang.String xmlFile)
container
- The container for XML element.element
- The XML element name.attributeName
- The name of the attribute.attributeValue
- The value of the attribute.xmlFile
- The file currently being parsed.public void filterEndElement(NamedObj container, java.lang.String elementName, java.lang.StringBuffer currentCharData, java.lang.String xmlFile) throws java.lang.Exception
container
- The object defined by the element that this
is the end of.elementName
- The element name.currentCharData
- The character data, which appears
only in the doc and configure elementsxmlFile
- The file currently being parsed.java.lang.Exception
- If there is a problem modifying the
specified container.public static void main(java.lang.String[] args) throws java.lang.Exception
args
- The arguments of the main function.java.lang.Exception
- If the model can't be converted.public java.lang.String toString()
toString
in interface MoMLFilter
toString
in class java.lang.Object