Grooper.Core.EmbeddedLexicon

Represents a property which can include locally-defined lexicon entries as well as references to external lexicons.


Inherits from: Grooper.EmbeddedObject

Constructors

Signature Description
New (Owner As ConnectedObject)
Parameters
Owner
          Type: ConnectedObject
          
New (Owner As ConnectedObject, ListContent As String)
Parameters
Owner
          Type: ConnectedObject
          
 
ListContent
          Type: String
          

Fields

Field Name Field Type Description
Database As Grooper.GrooperDb Grooper.GrooperDb
LexiconIds As System.Collections.Generic.List`1[[System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] System.Collections.Generic.List(Of T)

Properties

Property Name Property Type Description
CaseSensitive System.Boolean Indicates whether lookups into the lexicon are case-sensitive.
HasReferenceProperties System.Boolean Returns true if the object has properties which reference Grooper Node objects.
IsEmpty System.Boolean Returns true if all properties with a ViewableAttribute are set to their default value.
IsWriteable System.Boolean Returns true if the object is writable, or false if it is not.
Lexicons System.Collections.Generic.List(Of T) One or more lexicons to include. Only lexicon
ListContent System.String A list of local lexicon entries. The list should be formatted so that there is one entry per line. Use the = symbol to indicate replacement values.
Owner Grooper.ConnectedObject Returns the node that owns the connected object, if any.
OwnerNode Grooper.GrooperNode Returns the node that owns the connected object, if any.
Root Grooper.GrooperRoot Returns the root node
RuntimeType Grooper.Core.LexicalDictionary.LexiconType The Lexicon Type at runtime.Can be one of the following values:
  • Lookup: A lookup lexicon contains key-value pairs delimited by '='.

    AL=Alabama
    AK=Alaska
    AZ=Arizona
    AR=Arkansas
    CA=California
    ...

  • Vocabulary: A vocabulary lexicon contains a list of values, one value per line.

    about
    above
    after
    again
    against
    ...

  • Frequency: A frequency lexicon contains key-frequency pairs delimited by '='.

    you=22484400
    i=19975318
    the=17594291
    to=13200962
    a=11230036
    ...

Type Grooper.Core.LexicalDictionary.LexiconType Specifies how local entries in the lexicon will be interpreted.Can be one of the following values:
  • Lookup: A lookup lexicon contains key-value pairs delimited by '='.

    AL=Alabama
    AK=Alaska
    AZ=Arizona
    AR=Arkansas
    CA=California
    ...

  • Vocabulary: A vocabulary lexicon contains a list of values, one value per line.

    about
    above
    after
    again
    against
    ...

  • Frequency: A frequency lexicon contains key-frequency pairs delimited by '='.

    you=22484400
    i=19975318
    the=17594291
    to=13200962
    a=11230036
    ...

Methods

Method Name Description
GetDictionary(LanguageCode As String) As LexicalDictionary
Parameters
LanguageCode
          Type: String
          
GetProperties() As PropertyDescriptorCollection
GetReferences() As List(Of GrooperNode) Returns a list of GrooperNode objects referenced in the properties of this object.
IsPropertyEnabled(PropertyName As String) As Nullable(Of Boolean) Defines whether a property is currently enabled.
Parameters
PropertyName
          Type: String
          The name of the property to determine the enabled state for.
IsPropertyVisible(PropertyName As String) As Nullable(Of Boolean) Defines whether a property is currently visible.
Parameters
PropertyName
          Type: String
          The name of the property to determine the visible state for.
IsType(Type As Type) As Boolean Returns true if the object is of the type specified, or if it derives from the type specfied.
Parameters
Type
          Type: Type
          The type to check.
Serialize() As String Serializes the object.
SetDatabase(Database As GrooperDb) Sets the database connection of the object.
Parameters
Database
          Type: GrooperDb
          
SetOwner(Owner As ConnectedObject, SkipInitialization As Boolean) Sets the owner of the connected object with another object that implements the IConnected interface.
Parameters
Owner
          Type: ConnectedObject
          
 
SkipInitialization
          Type: Boolean
          
ToString() As String Returns a string value representation of the connected object.
ValidateProperties() As ValidationErrorList Validates the properties of the object, returning a list of validation errors.