|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.exist.fluent.Name
public abstract class Name
An actual or virtual name for a document, augmented with instructions for processing in case of duplication.
Method Summary | |
---|---|
static Name |
adjust(String name)
Try to use the given name but, if it conflicts with anything in the destination folder, add a random component that will make it unique. |
static Name |
create(String name)
Use the given name that is believed to be unique. |
static Name |
generate()
Generate a random name that will not conflict with anything else in the destination folder. |
static Name |
generate(String suffix)
Generate a random name with the given suffix that will not conflict with anything else in the destination folder. |
String |
get()
Get the computed value of this name. |
static Name |
keepAdjust()
Keep the existing name of the source item if it is unique in the destination folder, otherwise adjust it as per the rules of adjust(String) . |
static Name |
keepCreate()
Keep the existing name of the source item, believed to be unique in the destination folder. |
static Name |
keepOverwrite()
Keep the existing name of the source item, overwriting any document with the same name in the destination folder as per the rules for overwrite(String) . |
static Name |
overwrite(String name)
Use the given name whether it is unique or not. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public String get()
public String toString()
toString
in class Object
public static Name generate()
public static Name generate(String suffix)
suffix
- the string to append to the random name, e.g. ".xml"
public static Name keepAdjust()
adjust(String)
.
public static Name adjust(String name)
name
- the desired name
public static Name keepOverwrite()
overwrite(String)
.
public static Name overwrite(String name)
name
- the desired name
public static Name keepCreate()
create(String)
.
public static Name create(String name)
name
- the desired name believed to be unique
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |