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:
- 1.0
- Author:
- Reuters PLC
Method Summary |
java.lang.String |
getLang()
Get the language code. |
getLang
public java.lang.String getLang()
- Get the language code.
- Returns:
- The language code, as provided by the xml:lang attribute
in the XML source, or null if none was provided.