org.kefirsf.bb.conf.GhostableNamedElement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kefirbb Show documentation
Show all versions of kefirbb Show documentation
KefirBB is a Java-library for text processing. Initially it was developed for BB2HTML translation.
But flexible configuration allows to use it in different cases. For example for parsing Markdown, Textile,
and for HTML filtration.
The newest version!
package org.kefirsf.bb.conf;
/**
* @author kefir
*/
class GhostableNamedElement extends NamedElement implements PatternElement {
private boolean ghost = DEFAULT_GHOST_VALUE;
public GhostableNamedElement() {
super();
}
public GhostableNamedElement(String name) {
super(name);
}
public GhostableNamedElement(String name, boolean ghost) {
super(name);
this.ghost = ghost;
}
/**
* If it's true then processor parse it but no move the cursor.
*
* @return is it ghost or no
*/
public boolean isGhost() {
return ghost;
}
/**
* @param ghost If it's true then processor parse it but no move the cursor.
*/
public void setGhost(boolean ghost) {
this.ghost = ghost;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy