|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ckkloverdos.source.SourceTypeRegistry
public class SourceTypeRegistry
A registry for source types.
SourceType
Constructor Summary | |
---|---|
SourceTypeRegistry()
|
Method Summary | |
---|---|
java.lang.String[] |
getExtensionsForType(java.lang.String name)
Returns the extensions associated with the type of the given name . |
SourceType |
getTypeFromExt(java.lang.String extension)
Returns the type associated with the given extension . |
SourceType |
getTypeFromName(java.lang.String name)
Returns the type associated with the given name . |
SourceType |
register(java.lang.String name,
java.lang.String extension)
Registers a type for the given name and extension . |
SourceType |
register(java.lang.String name,
java.lang.String[] extensions)
Registers a type for the given name and extensions . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SourceTypeRegistry()
Method Detail |
---|
public SourceType register(java.lang.String name, java.lang.String extension)
name
and extension
.
If a type with the same name
exists, then the extension
is registered for the existing type and that one is returned.
name
- extension
- public SourceType register(java.lang.String name, java.lang.String[] extensions)
name
and extensions
.
If a type with the same name
exists, then the extensions
are registered for the existing type and that one is returned.
name
- extensions
- public SourceType getTypeFromExt(java.lang.String extension)
extension
.
extension
- public SourceType getTypeFromName(java.lang.String name)
name
.
name
- public java.lang.String[] getExtensionsForType(java.lang.String name)
name
.
name
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |