|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.data.SplittingNamer
public class SplittingNamer
A transform that generates a String name for an object by first generating a group name, then then looking up another transform in a Map, then running that. It can of course be nested further. A default is provided if all else fails.
| Constructor Summary | |
|---|---|
SplittingNamer()
Create a new SplittingNamer. |
|
SplittingNamer(Cog newState)
|
|
| Method Summary | |
|---|---|
ObjectNamer |
getDefaultNamer()
Gets the value of defaultNamer |
Naming |
getGroupNamers()
Gets the value of groupNamers |
java.lang.String |
getGroupNameTemplate()
Gets the value of groupNameTemplate |
java.util.Set |
getRequiredPaths()
|
void |
setDefaultNamer(ObjectNamer argDefaultNamer)
Sets the value of defaultNamer |
void |
setGroupNamers(Naming argGroupNamers)
Sets the value of groupNamers |
void |
setGroupNameTemplate(java.lang.String argGroupNameTemplate)
Sets the value of groupNameTemplate |
Cog |
toCog()
Returns the complete internal state of this object in the form of a Cog. |
java.lang.Object |
transform(java.lang.Object source)
Our one method; this transforms one object into another. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SplittingNamer()
public SplittingNamer(Cog newState)
| Method Detail |
|---|
public Cog toCog()
CoggableCog.
toCog in interface Coggablepublic java.lang.Object transform(java.lang.Object source)
ObjectTransform
transform in interface ObjectTransformpublic java.util.Set getRequiredPaths()
getRequiredPaths in interface ObjectNamerpublic java.lang.String getGroupNameTemplate()
public void setGroupNameTemplate(java.lang.String argGroupNameTemplate)
argGroupNameTemplate - Value to assign to this.groupNameTemplatepublic Naming getGroupNamers()
public void setGroupNamers(Naming argGroupNamers)
argGroupNamers - Value to assign to this.groupNamerspublic ObjectNamer getDefaultNamer()
public void setDefaultNamer(ObjectNamer argDefaultNamer)
argDefaultNamer - Value to assign to this.defaultNamer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||