Package org.osid.lexicon
The Open Service Interface Definitions for the org.osid.lexicon service.
The Lexicon OSID provides a means for managing and building textual
strings ( DisplayTexts ) for the purposes of localizing messages,
errors, or other application text that is displayed to a person. The
Lexicon OSID provides an extra layer of convenience above the Locale or
Dictionary OSIDs while also providing a means for variable substitution for
dynamic text construction.
Texts
A Text identifies a set of textual strings that vary by
language and/or format.
Idioms
Idioms come into play when managing Texts . An
Idiom represents a variant of text for language and format.
Parameters
A Parameter is a substituted value. Parameter values
are determined by their Syntax and supplied as arguments is
retrieving the textual string in the TextSession . The order of the
input arguments is constant across all Idioms in a Text
although may appear in different places from one Idiom to the next.
Example (General Usage)
osid.locale.DisplayText text = TextSession.text(pangranmId, {"fox", "dog"});
print(text);
<xosid:token>=> "The quick brown fox jumps over the lazy dog."</xosid:token>
The language, script, and format are determined by the context of the TextSession.
Example (Management)
Text: {pangramId}
Idiom: {idiom1Id, Text=pangramId, language=English string="The quick brown %1 jumped over the lazy %2."}
Idiom: {idiom2Id, Text=pangramId, language=Esperanto string="La rapida bruna %1 susaltas la pigra %2."}
Idiom: {idiom3Id, Text=pangramId, language=English format="Reverse" string="The lazy %2 was jumped over by the quick brown %1."}
Parameter: {parameter1Id, Text=pangramId Syntax=STRING, inputPosition=1}
Parameter: {parameter2Id, Text=pangramId Syntax=STRING, inputPosition=2}
The means in which the Parameters are specified in an
Idiom is not currently defined.
Press Cataloging
All Texts , Idioms , and Parameters may be
organized into federateable OsidCatalogs called Presses .
Sub Packages
The Lexicon OSID includes a Lexicon Batch OSID for managing texts in bulk.
Copyright © 2014 Ingenescus. All Rights Reserved.
This Work is being provided by the copyright holder(s) subject to the following license. By obtaining, using and/or copying this Work, you agree that you have read, understand, and will comply with the following terms and conditions.
Permission to use, copy and distribute unmodified versions of this Work, for any purpose, without fee or royalty is hereby granted, provided that you include the above copyright notices and the terms of this license on ALL copies of the Work or portions thereof.
You may nodify or create Derivatives of this Work only for your internal purposes. You shall not distribute or transfer any such Derivative of this Work to any location or to any third party. For the purposes of this license, "Derivative" shall mean any derivative of the Work as defined in the United States Copyright Act of 1976, such as a translation or modification.
This Work and the information contained herein is provided on an "AS IS" basis WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN IDIOM OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE WORK OR THE USE OR OTHER DEALINGS IN THE WORK.
The export of software employing encryption technology may require a specific license from the United States Government. It is the responsibility of any person or organization contemplating export to obtain such a license before exporting this Work.
-
InterfacesClassDescriptionA
Idiomis a localized variant of aText.This session creates, updates, and deletesIdioms.This is the form for creating and updatingIdioms.Like allOsidLists,IdiomListprovides a means for accessingIdiomelements sequentially either one at a time or many at a time.This session provides methods for retrievingIdioms.This session defines methods to receive notifications on adds/changes toIdiomsin thisPress.This session provides methods to re-assignIdiomstoPressmappings.This session provides methods to retrieveIdiomtoPressmappings.This is the query for searching idioms.This is the query inspector for examining idiom queries.This session provides methods for searching amongIdioms.The idiom receiver is the consumer supplied interface for receiving notifications pertaining to new, updated or deletedIdiomobjects.The search interface for governing idiom searches.An interface for specifying the ordering of search results.This interface provides a means to capture results of a search.This session provides methods for searching amongIdioms.This session manages queries and sequencing to create "smart" dynamic catalogs.The lexicon manager provides access to lexicon sessions and provides interoperability tests for various aspects of this service.The lexicon profile describes the interoperability among lexicon services.The lexicon proxy manager provides access to lexicon sessions and provides interoperability tests for various aspects of this service.AParameterspecifies a variable substitution in the string of aTextto produce anIdiom.This session creates, updates, and deletesParameters.This is the form for creating and updatingParameters.Like allOsidLists,ParameterListprovides a means for accessingParameterelements sequentially either one at a time or many at a time.This session provides methods for retrievingParameters.This session defines methods to receive notifications on adds/changes toParametersin thisPress.This session provides methods to re-assignParametertoPressmappings.This session provides methods to retrieveParametertoPressmappings.This is the query for searching parameters.This is the query inspector for examning parameter queries.This session provides methods for searching amongParameters.The parameter receiver is the consumer supplied interface for receiving notifications pertaining to new, updated or deleted parameters.The search interface for governing parameter searches.An interface for specifying the ordering of search results.This interface provides a means to capture results of a search.This session provides methods for searching amongParameters.This session manages queries and sequencing to create "smart" dynamic catalogs.APressrepresents a collection of texts, idioms, and parameters.This session creates, updates, and deletesPresses.This is the form for creating and updating presses.This session defines methods for managing a hierarchy ofPresses.This session defines methods for traversing a hierarchy ofPresses.Like allOsidLists,PressListprovides a means for accessingPresselements sequentially either one at a time or many at a time.This session provides methods for retrievingPresses.This interface is a container for a partial hierarchy retrieval.Like allOsidLists,PressNodeListprovides a means for accessingPressNodeelements sequentially either one at a time or many at a time.This session defines methods to receive notifications on adds/changes toPresses.This is the query for searching presses.This is the query inspector for examining press queries.This session provides methods for searching amongPresses.The press receiver is the consumer supplied interface for receiving notifications pertaining to new, updated or deletedPressobjects.The search interface for governing press searches.An interface for specifying the ordering of search results.This interface provides a means to capture results of a search.This session provides methods for searching amongPresses.AText.This session creates, updates, and deletesTexts.This is the form for creating and updatingTexts.Like allOsidLists,TextListprovides a means for accessingTextelements sequentially either one at a time or many at a time.This session provides methods for retrievingTextobjects.This session defines methods to receive notifications on adds/changes toTextsin thisPress.This session provides methods to re-assignTextstoPressmappings.This session provides methods to retrieveTexttoPressmappings.This is the query for searching texts.This is the query inspector for examining text queries.This session provides methods for searching amongTexts.The text receiver is the consumer supplied interface for receiving notifications pertaining to new, updated or deletedTextobjects.The search interface for governing text searches.An interface for specifying the ordering of search results.This interface provides a means to capture results of a search.This session provides methods for searching amongTexts.This session defines methods for retrievingDisplayTextsfor aTextand set ofParameterarguments.This session manages queries and sequencing to create "smart" dynamic catalogs.