Package segmentators

Source Code of segmentators.Segamentator

package segmentators;

import java.util.List;

import regions.Region;

public abstract class Segamentator {

  public void split(Region region) {
    String content = region.getContent();
    List<String> childContentList = split(content);
    for(String childContent : childContentList) {
      Region child = new Region(region, childContent);
      region.addChild(child);
    }
  }
 
  protected abstract List<String> split(String text);
 
}
TOP

Related Classes of segmentators.Segamentator

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.