|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object standup.lexicon.LexicalComponents
public class LexicalComponents
A LexicalComponents
represents a collection of various
CustomLexicon
s, Topic
s, and specially designated
blacklist CustomLexicon
s, which logically define the 'working
lexicon'.
The lexical components themselves are stored as a ProfileLexicon
, to
which this class forms the Profileable
counterpart (see
standup.profiling
for details).
The getWorkingLexicon()
method returns a LexemeSet
that is
the union of custom lexicons and topics subtracted by the blacklists.
Field Summary | |
---|---|
private ProfileLexicon |
lexicalProfile
|
Constructor Summary | |
---|---|
LexicalComponents()
|
Method Summary | |
---|---|
boolean |
createProfile(File directory)
Creates a default profile in the given directory. |
LexemeSet |
getBlacklist()
|
ProfileLexicon |
getProfile()
Returns the ProfileLexicon currently being used by this
LexicalComponents . |
String |
getProfileFilename()
Returns the filename for lexical profiles. |
LexemeSet |
getWorkingLexicon()
Returns a LexemeSet that contains the 'working lexicon',
i.e. |
ProfileLexicon |
loadProfile(File directory)
Loads the lexical profile from the specified directory and returns it. |
boolean |
setProfile(Profile profile,
boolean repeat)
Uses the lexical components specified in the given lexical Profile . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private ProfileLexicon lexicalProfile
Constructor Detail |
---|
public LexicalComponents()
Method Detail |
---|
public LexemeSet getWorkingLexicon()
LexemeSet
that contains the 'working lexicon',
i.e. the union of all Lexeme
s found within this
LexicalComponents
CustomLexicon
s and Topic
s,
substracted by the union of all Lexeme
s found within this
LexicalComponents
' blacklist CustomLexicon
s.
public LexemeSet getBlacklist()
public boolean createProfile(File directory)
OptionsLexicon
contained within the OptionsPackage
returned by ProfileManager.getDefaultOptionsPackage()
.
createProfile
in interface Profileable
directory
- the directory where the profile is to be created
true
if the profile was successfully created,
false
otherwisepublic ProfileLexicon getProfile()
ProfileLexicon
currently being used by this
LexicalComponents
.
getProfile
in interface Profileable
ProfileLexicon
public String getProfileFilename()
'lexical.profile'
.
getProfileFilename
in interface Profileable
"lexical.profile"
public ProfileLexicon loadProfile(File directory)
loadProfile
in interface Profileable
directory
- The directory containing the lexical profile
ProfileLexicon
public boolean setProfile(Profile profile, boolean repeat)
Profile
.
setProfile
in interface Profileable
profile
- The profile to be usedrepeat
- whether this is the first time a profile is being set for the
current user during this session
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |