org.kefirsf.bb.conf.AbstractGhostable 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;
/**
* The abstract ghostable pattern element. For element which has a ghost property.
*
* @author kefir
*/
abstract class AbstractGhostable implements PatternElement {
protected boolean ghost = DEFAULT_GHOST_VALUE;
public AbstractGhostable() {
}
public AbstractGhostable(boolean ghost) {
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