|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.chaosserver.bilbo.data.FilenameMapping
Holds a filename mapping.for a single file.
A mapping is just what a seems.
Field Summary | |
protected Collection |
names
Holds the collections of names for the FilenameMapping. |
Constructor Summary | |
FilenameMapping()
Default constructor. |
Method Summary | |
void |
addName(Name name)
Adds a new name to the mapping. |
Name |
findName(String style)
Finds the name mapping based on the style. |
Name |
findName(String style,
String value)
Finds the name mapping for the given style, with the given value. |
Name |
findNameByValue(String value)
Searches the mapping for a name with the given value and returns the first one it finds in the current mapping. |
Collection |
getNames()
Getter for the names property. |
boolean |
requiresRename()
Checks to see if any of the mappings contained are different. |
void |
setNames(Collection names)
Setter for the names property. |
String |
toString()
Generates a string version for debugging. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Collection names
Constructor Detail |
public FilenameMapping()
Method Detail |
public void setNames(Collection names)
names
- the value of namespublic Collection getNames()
public void addName(Name name)
name
- the name to addpublic Name findName(String style) throws NameNotFoundException
style
- the style to return
I* @return the name with the given style
NameNotFoundException
- if there is no mapping for the given stylepublic Name findNameByValue(String value) throws NameNotFoundException
value
- the value the name must have
NameNotFoundException
- indicates no name could be foundpublic Name findName(String style, String value) throws NameNotFoundException
style
- the style to findvalue
- the value the name should have
NameNotFoundException
- if the name does not existpublic boolean requiresRename()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |