# Deprecated API

## Contents

- Deprecated Classes
- Deprecated Fields
- Deprecated Methods
- Deprecated Constructors
- Deprecated Enum Constants

- Deprecated Classes
  Class and Description
  net.sf.okapi.common.filters.FilterIterable We intend to add real support for streams soon(ish), maybe even in the next release. So this hackish way to do things will not be needed, and this class will be deleted.

- Deprecated Fields
  Field and Description
  net.sf.okapi.common.resource.Property.annotations
  net.sf.okapi.common.resource.Property.NOTE
  net.sf.okapi.common.resource.Property.TRANSNOTE

- Deprecated Methods
  Method and Description
  net.sf.okapi.common.filterwriter.GenericContent.fromFragmentToLetterCoded(TextFragment)
  net.sf.okapi.common.filterwriter.GenericContent.fromLetterCodedToFragment(String, TextFragment, boolean)
  net.sf.okapi.common.resource.Property.getAnnotation(Class<A>)
  net.sf.okapi.common.resource.Property.getAnnotations()
  net.sf.okapi.core.simplifierrules.JavaCharStream.getColumn()
  net.sf.okapi.core.simplifierrules.JavaCharStream.getLine()
  net.sf.okapi.common.LocaleId.getOriginalLocId() this will go away. Locales are case insensitive.
  net.sf.okapi.common.filters.FilterIterable.iterator()
  net.sf.okapi.common.resource.Property.setAnnotation(IAnnotation)
  net.sf.okapi.lib.segmentation.SRXDocument.setUseJavaRegex(boolean)
  net.sf.okapi.common.LocaleId.splitLanguageCode(String) don't use this. It only "understands" language + region, but that is just a small part of what BCP 47 supports.
  net.sf.okapi.lib.segmentation.SRXDocument.useJavaRegex()

- Deprecated Constructors
  Constructor and Description
  net.sf.okapi.common.filters.FilterIterable(IFilter)
  net.sf.okapi.common.LocaleId(String, boolean) normalize is ignored. Use `LocaleId.fromString(String)` to create a LocaleId from a code.

- Deprecated Enum Constants
  Enum Constant and Description
  net.sf.okapi.common.pipeline.annotations.StepParameterType.UI_PARENT The UI parent is now encapsulated in `StepParameterType.EXECUTION_CONTEXT`. Use that instead.