cz.kebrt.html2latex
Class ElementConfigItem

java.lang.Object
  extended by cz.kebrt.html2latex.ElementConfigItem

 class ElementConfigItem
extends java.lang.Object

Class representing configuration of each HTML element.


Field Summary
private  java.lang.String _end
          Mapping between end tag and LaTeX command.
private  boolean _ignoreContent
          The element's content will be ignored.
private  boolean _ignoreStyles
          The element's CSS style will be ignored.
private  boolean _leaveText
          The element's content mustn't be touched.
private  java.lang.String _start
          Mapping between start tag and LaTeX command.
 
Constructor Summary
ElementConfigItem(java.lang.String start, java.lang.String end, java.lang.String leaveText, java.lang.String ignoreContent, java.lang.String ignoreStyles)
          Cstr.
 
Method Summary
 java.lang.String getEnd()
          Returns mapping between end tag and LaTeX command.
 java.lang.String getStart()
          Returns mapping between start tag and LaTeX command.
 boolean ignoreContent()
          Returns ignoreContent property.
 boolean ignoreStyles()
          Returns ignoreStyles property.
 boolean leaveText()
          Returns leaveText property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_start

private java.lang.String _start
Mapping between start tag and LaTeX command. (ie. "\textbf{" for the b tag).


_end

private java.lang.String _end
Mapping between end tag and LaTeX command. (ie. "}" for the b tag).


_leaveText

private boolean _leaveText
The element's content mustn't be touched. (ie. for pre)


_ignoreContent

private boolean _ignoreContent
The element's content will be ignored. (ie. for script)


_ignoreStyles

private boolean _ignoreStyles
The element's CSS style will be ignored.

Constructor Detail

ElementConfigItem

public ElementConfigItem(java.lang.String start,
                         java.lang.String end,
                         java.lang.String leaveText,
                         java.lang.String ignoreContent,
                         java.lang.String ignoreStyles)
Cstr.

Parameters:
start - mapping between start tag and LaTeX command
end - mapping between end tag and LaTeX command
leaveText - "yes" if the element's content mustn't be touched
ignoreContent - "yes" if the element's content will be ignored
ignoreStyles - "yes" if the element's CSS styles will be ignored
Method Detail

getStart

public java.lang.String getStart()
Returns mapping between start tag and LaTeX command.

Returns:
mapping between start tag and LaTeX command

getEnd

public java.lang.String getEnd()
Returns mapping between end tag and LaTeX command.

Returns:
mapping between end tag and LaTeX command

leaveText

public boolean leaveText()
Returns leaveText property.

Returns:
true if the element's content mustn't be touched

ignoreContent

public boolean ignoreContent()
Returns ignoreContent property.

Returns:
true if the element's content is ignored

ignoreStyles

public boolean ignoreStyles()
Returns ignoreStyles property.

Returns:
true if the element's CSS styles are ignored