|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bowstreet.generation.BuilderManager
public abstract class BuilderManager
BuilderManager is a Singleton which provides access to all of the BuilderDefs
Field Summary | |
---|---|
static java.lang.String |
GROUP_SEPARATOR
|
static char |
GROUP_SEPARATOR_CHAR
|
static java.lang.String |
RESOURCE_SUFFIX
|
static java.lang.String |
RESOURCE_SUFFIX_WITH_EXT
|
Method Summary | |
---|---|
void |
addBuilderToDomain(java.lang.String builderId,
java.lang.String domainName,
BuilderDef builder)
|
java.util.Collection |
getAddFromPaletteListenterBuilderDefs()
Get the collection of BuilderDefs that can listen to add from palette events |
BuilderDef |
getBuilderDef(java.lang.String builderId)
Get an individual builderDef. |
java.util.Iterator |
getBuilderDefs(boolean update)
Get an iterator to all the BuilderDefs |
java.util.Iterator |
getBuilderDefs(java.lang.String domainName)
This will get all the Builders that belong to a particular domain. |
java.util.Collection |
getCanCreateBuilderDefs(java.lang.String typeOfElement)
Get the collection of BuilderDefs that can create this sort of thing |
java.util.Collection |
getCanCreateTypeList()
Get the collection of all the types of things builders know that they can create |
java.util.Collection |
getCanModifyBuilderDefs(GenElement genElement)
Get the collection of BuilderDefs that can modify the thing that the GenElement represents |
java.util.Iterator |
getDomainNames(boolean update)
Get an iterator to all the Domain names |
static java.util.ResourceBundle |
getLocalizationResource(java.lang.String builderId)
This will find the correct localization resource to use for this BuilderDef. |
static BuilderManager |
getManager()
Get the (singleton) BuilderManager, which will always extend this class. |
boolean |
isBuilderDefAvailable(java.lang.String builderId,
java.lang.String domainName)
Determines if a BuilderDef is available |
void |
updateBuilder(BuilderDef builder)
Update the builder record that is cached. |
void |
updateBuilderFromFile(java.lang.String filename)
this is used when it is detected that the builder file has changed. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String GROUP_SEPARATOR
public static final char GROUP_SEPARATOR_CHAR
public static final java.lang.String RESOURCE_SUFFIX
public static final java.lang.String RESOURCE_SUFFIX_WITH_EXT
Method Detail |
---|
public void addBuilderToDomain(java.lang.String builderId, java.lang.String domainName, BuilderDef builder)
public java.util.Collection getAddFromPaletteListenterBuilderDefs()
public BuilderDef getBuilderDef(java.lang.String builderId)
builderId
- ID of the Builderdef to get
public java.util.Iterator getBuilderDefs(boolean update)
update
- Force a reload of all builderdefs first
public java.util.Iterator getBuilderDefs(java.lang.String domainName)
domainName
-
public java.util.Collection getCanCreateBuilderDefs(java.lang.String typeOfElement)
typeOfElement
-
public java.util.Collection getCanCreateTypeList()
public java.util.Collection getCanModifyBuilderDefs(GenElement genElement)
genElement
-
public java.util.Iterator getDomainNames(boolean update)
update
- Force a reload of all builderdefs first
public static java.util.ResourceBundle getLocalizationResource(java.lang.String builderId)
builderId
- BuilderDef ID
public static BuilderManager getManager()
public boolean isBuilderDefAvailable(java.lang.String builderId, java.lang.String domainName)
builderId
- ID of the BuilderDef to checkdomain
- optional domain name to restrict the check
public void updateBuilder(BuilderDef builder) throws java.io.IOException
java.io.IOException
public void updateBuilderFromFile(java.lang.String filename)
filename
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |