Socials
public interface SocialsList extends CMLibrary
idConverter
Modifier and Type | Method | Description |
---|---|---|
void |
addSocial(Social S) |
Adds a single social target to its cached set in this
collection/manager.
|
void |
delSocial(java.lang.String name) |
Removes the entire social set of the given name, including
all of its variations.
|
Social |
fetchSocial(java.lang.String name,
boolean exactOnly) |
Given a full social id, this will return the Social object, either
matching exactly, or doing a softer search.
|
Social |
fetchSocial(java.lang.String baseName,
Environmental targetE,
java.lang.String arg,
boolean exactOnly) |
Given a potential social name, a target object, and a possible trailing arg, this
will find and return the social that matches.
|
Social |
fetchSocial(java.util.List<java.lang.String> commands,
boolean exactOnly,
boolean checkItemTargets) |
Given a parsed user command line entry, this will search the socials for a likely social
object match, and return it.
|
Social |
fetchSocialFromSet(java.util.Map<java.lang.String,java.util.List<Social>> socialsMap,
java.util.List<java.lang.String> commands,
boolean exactOnly,
boolean checkItemTargets) |
Given an external map of base names to social sets, and a parsed command line from a
user, this will attempt to find if one of the socials appears in the map, and return
it.
|
java.lang.String |
findSocialBaseName(java.lang.String named,
boolean exactOnly) |
Given a social name to match, it will search for and return the base name.
|
java.util.Enumeration<Social> |
getAllSocials() |
Returns an enumeration of every social object, of
every base name, and every target.
|
java.util.List<java.lang.String> |
getSocialsBaseList() |
Returns a cached list of all social base names.
|
java.lang.String |
getSocialsBaseTable() |
Creates 4 column list of all social base names.
|
java.lang.String |
getSocialsHelp(MOB mob,
java.lang.String named) |
Gets the full details on every target variation
of the social set with the given name, for the
given mob viewer.
|
java.util.List<Social> |
getSocialsSet(java.lang.String named) |
Returns the social set of the given base name.
|
Social |
makeDefaultSocial(java.lang.String name,
java.lang.String type) |
Create a default social object of the given base name,
and the given target type, such as ALL, S-NAME, SELF,
etc.
|
boolean |
modifySocialInterface(MOB mob,
java.util.List<Social> socials,
java.lang.String name,
java.lang.String rest) |
Provides the entire command line editor for creating or
modifying a social set.
|
int |
putSocialsInHash(java.util.Map<java.lang.String,java.util.List<Social>> socialsMap,
java.util.List<java.lang.String> lines) |
Given a private map of base social names to social sets, this will populate that map from a
list of parseable social lines, where the format is:
12\tID\tYouSee\tOthersSee\tTargetSees\tNoTargetSees\tMSP filename\tZappermask\t
1 = source code, 2 = others/target code
|
void |
save(MOB whom) |
On behalf of the given mob, saves the cached socials to
the default file in /resources/socials.txt
|
void |
unloadSocials() |
Unloads all the internally hashed socials for reloading later.
|
activate, getServiceClient, L, propertiesLoaded, shutdown
copyOf, ID, initializeClass, name, newInstance
void delSocial(java.lang.String name)
name
- the full or partial/base social nameaddSocial(Social)
void addSocial(Social S)
S
- the social objectdelSocial(String)
boolean modifySocialInterface(MOB mob, java.util.List<Social> socials, java.lang.String name, java.lang.String rest) throws java.io.IOException
mob
- the mob editorsocials
- the social id or base namename
- the social namerest
- any extra terms used from command linejava.io.IOException
- any i/o errors that occured, usually disconnectSocial fetchSocial(java.lang.String name, boolean exactOnly)
name
- the full social id, with base name and targetexactOnly
- true for exact match, or false for searchfetchSocial(List, boolean, boolean)
,
fetchSocial(String, Environmental, String, boolean)
Social fetchSocial(java.lang.String baseName, Environmental targetE, java.lang.String arg, boolean exactOnly)
baseName
- the hopeful social base nametargetE
- the target representing the social targetarg
- a remaining argument, or ""exactOnly
- true for exact social match, or false for looserfetchSocial(List, boolean, boolean)
,
fetchSocial(String, boolean)
Social fetchSocial(java.util.List<java.lang.String> commands, boolean exactOnly, boolean checkItemTargets)
commands
- the parsed user command lineexactOnly
- true for exact base name match onlycheckItemTargets
- true to consider I-NAME target socialsfetchSocial(String, Environmental, String, boolean)
,
fetchSocial(String, boolean)
java.lang.String findSocialBaseName(java.lang.String named, boolean exactOnly)
named
- the whole or partial or full social name of itexactOnly
- true for exact base name matchSocial fetchSocialFromSet(java.util.Map<java.lang.String,java.util.List<Social>> socialsMap, java.util.List<java.lang.String> commands, boolean exactOnly, boolean checkItemTargets)
socialsMap
- the map of base names to social setscommands
- the parsed user command lineexactOnly
- true for only perfect exact matchescheckItemTargets
- true to check I-NAME type targetsputSocialsInHash(Map, List)
int putSocialsInHash(java.util.Map<java.lang.String,java.util.List<Social>> socialsMap, java.util.List<java.lang.String> lines)
socialsMap
- the map to put the socials intolines
- the lines to parsefetchSocialFromSet(Map, List, boolean, boolean)
java.util.List<Social> getSocialsSet(java.lang.String named)
named
- the social base namejava.util.Enumeration<Social> getAllSocials()
void save(MOB whom)
whom
- the saverjava.util.List<java.lang.String> getSocialsBaseList()
java.lang.String getSocialsHelp(MOB mob, java.lang.String named)
mob
- the viewer mob, or nullnamed
- search base namejava.lang.String getSocialsBaseTable()
Social makeDefaultSocial(java.lang.String name, java.lang.String type)
name
- baseName of the social to createtype
- the target type, or ""void unloadSocials()