Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.uima.resource.metadata
Interface LanguagePrecondition

All Superinterfaces:
  Cloneable, MetaDataObject, Precondition, Serializable, SimplePrecondition, XMLizable

    public interface LanguagePrecondition

extends SimplePrecondition

A precondition on the language of the document. This interface is a kind of `SimplePrecondition` to be used as a convenience.

Field Summary

Fields inherited from interface org.apache.uima.resource.metadata.SimplePrecondition
`ELEMENT_OF, EQUAL, LANGUAGE_SUBSUMED, PRECONDITION_TYPE`

Method Summary
`String[]` | `getLanguages()` Gets the languages that satisfy this precondition.
`void` | `setLanguages(String[] aLanguages)` Sets the languages that satisfy this precondition.

Methods inherited from interface org.apache.uima.resource.metadata.SimplePrecondition
`getComparisonValue, getDefault, getFeatureName, getFsIndexName, getFsMatchConstraint, getPreconditionType, getPredicate, setComparisonValue, setDefault, setFeatureName, setFsIndexName, setFsMatchConstraint, setPredicate`

Methods inherited from interface org.apache.uima.resource.metadata.Precondition
`evaluate`

Methods inherited from interface org.apache.uima.resource.metadata.MetaDataObject
`clone, equals, getAttributeValue, getSourceUrl, getSourceUrlString, isModifiable, listAttributes, setAttributeValue, setSourceUrl`

Methods inherited from interface org.apache.uima.util.XMLizable
`buildFromXMLElement, buildFromXMLElement, toXML, toXML, toXML, toXML`

Method Detail

### getLanguages

    String[] getLanguages()

  Gets the languages that satisfy this precondition. This will be an array of ISO language identifiers. For this precondition to be satisfied, the document's language must be subsumed by one of these identifiers (for example, en-GB is subsumed by en).

  Note that if the document's language is unknown, the value of the `default` property determines whether this precondition is satisfied.

  Returns:
    the languages that satisfy this precondition

### setLanguages

    void setLanguages(String[] aLanguages)

  Sets the languages that satisfy this precondition. This will be an array of ISO language identifiers. For this precondition to be satisfied, the document's language must be subsumed by one of these identifiers (for example, en-GB is subsumed by en).

  Note that if the document's language is unknown, the value of the `default` property determines whether this precondition is satisfied.

  Parameters:
    `aLanguages` - the languages that satisfy this precondition
  Throws:
    `UIMA_UnsupportedOperationException` - if this `MetaDataObject` is not modifiable.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2007 The Apache Software Foundation. All Rights Reserved.