java.lang.Object
org.apache.jena.riot.web.LangTag
Deprecated, for removal: This API element is subject to removal in a future version.
Language tags: support for parsing and canonicalization of case.
Grandfathered forms ("i-") are left untouched. Unsupported or syntactically
illegal forms are handled in canonicalization by doing nothing.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Deprecated, for removal: This API element is subject to removal in a future version.Index of all extensionsstatic final int
Deprecated, for removal: This API element is subject to removal in a future version.Index of the language partstatic final int
Deprecated, for removal: This API element is subject to removal in a future version.Index of the region partstatic final int
Deprecated, for removal: This API element is subject to removal in a future version.Index of the script partstatic final int
Deprecated, for removal: This API element is subject to removal in a future version.Index of the variant part -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Deprecated, for removal: This API element is subject to removal in a future version.UseLangTagX.formatLanguageTag(String)
static boolean
Deprecated, for removal: This API element is subject to removal in a future version.UseLangTagX.checkLanguageTag(String)
static String[]
Deprecated, for removal: This API element is subject to removal in a future version.UseLangTag.of(String)
to create a language tag object.
-
Field Details
-
idxLanguage
public static final int idxLanguageDeprecated, for removal: This API element is subject to removal in a future version.Index of the language part- See Also:
-
idxScript
public static final int idxScriptDeprecated, for removal: This API element is subject to removal in a future version.Index of the script part- See Also:
-
idxRegion
public static final int idxRegionDeprecated, for removal: This API element is subject to removal in a future version.Index of the region part- See Also:
-
idxVariant
public static final int idxVariantDeprecated, for removal: This API element is subject to removal in a future version.Index of the variant part- See Also:
-
idxExtension
public static final int idxExtensionDeprecated, for removal: This API element is subject to removal in a future version.Index of all extensions- See Also:
-
-
Method Details
-
check
Deprecated, for removal: This API element is subject to removal in a future version.UseLangTagX.checkLanguageTag(String)
Validate - basic syntax check for a language tags: [a-zA-Z]+ ('-'[a-zA-Z0-9]+)* -
parse
Deprecated, for removal: This API element is subject to removal in a future version.UseLangTag.of(String)
to create a language tag object.Parse a langtag string and return it's parts in canonical case. See constants for the array contents. Parts not present cause a null in the return array.- Returns:
- The language tag parts, or null if the input string does not parse as a lang tag.
-
canonical
Deprecated, for removal: This API element is subject to removal in a future version.UseLangTagX.formatLanguageTag(String)
Canonicalize with the rules ofRFC 5646 without replacement of preferred form.
-
LangTagX