org.newsml.toolkit
Interface LanguageNode

All Known Subinterfaces:
AssignedOriginText, Comment, Description, NewsComponent, NewsItem, OriginText

public interface LanguageNode

Interface for nodes with a natural language code attached.

This interface applies specifically to elements that use the xml:lang attribute to provide a natural-language code, usually using ISO 639 codes such as "fr" for French or "en-UK" for British English.

Version:
2.0
Author:
Reuters PLC

Method Summary
 Text getLang()
          Get the language code.
 

Method Detail

getLang

public Text getLang()
Get the language code.
Returns:
Text containing the language code, as provided by the xml:lang attribute in the XML source, or null if none was provided.