org.kefirsf.bb.proc
Class ProcScope

java.lang.Object
  extended by org.kefirsf.bb.proc.ProcScope

public class ProcScope
extends Object

bb-code scope. Required for tables, for example. Scope contains code set for parsing text.

Author:
Vitaliy Samolovskih aka Kefir

Constructor Summary
ProcScope(String name)
          Create scope
 
Method Summary
 String getName()
          Get scope name
 void init()
           
 boolean isInitialized()
           
 void process(Context context)
          Парсит тект с BB-кодами
 void setIgnoreText(boolean ignoreText)
          Set flag marked that not parsiable text mustn't append to result.
 void setParent(ProcScope parent)
          Set parent scope
 void setScopeCodes(Set<ProcCode> codes)
          Add codes to scope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcScope

public ProcScope(String name)
Create scope

Parameters:
name - name of scope
Method Detail

process

public void process(Context context)
             throws IOException,
                    org.kefirsf.bb.proc.NestingException
Парсит тект с BB-кодами

Throws:
IOException - if can't append chars to target
NestingException - if nesting is too big.

getName

public String getName()
Get scope name

Returns:
scope name

setParent

public void setParent(ProcScope parent)
Set parent scope

Parameters:
parent - parent scope. All parent scope code added to scope codes.

setScopeCodes

public void setScopeCodes(Set<ProcCode> codes)
Add codes to scope

Parameters:
codes - code set

init

public void init()

setIgnoreText

public void setIgnoreText(boolean ignoreText)
Set flag marked that not parsiable text mustn't append to result. By default it is false.

Parameters:
ignoreText - flag value

isInitialized

public boolean isInitialized()
Returns:
true if scope was initialised, false otherwise


Copyright © 2013. All Rights Reserved.