Package org.nuxeo.ecm.core.uidgen
Class UIDGeneratorDescriptor
- java.lang.Object
-
- org.nuxeo.ecm.core.uidgen.UIDGeneratorDescriptor
-
public class UIDGeneratorDescriptor extends Object
UID generator configuration holder.
-
-
Constructor Summary
Constructors Constructor Description UIDGeneratorDescriptor()Default constructor - used normally when created as an XObject.UIDGeneratorDescriptor(String generationExp, Set<?> generationCrit)Explicit constructor.UIDGeneratorDescriptor(String generationExp, Set<?> generationCrit, int counterStart)Explicit constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClassName()intgetCounterStart()String[]getDocTypes()Set<?>getGenerationCriteria()StringgetGenerationExpression()StringgetName()StringgetPropertyName()Kept for convenience.String[]getPropertyNames()voidsetClassName(String className)voidsetDocTypes(String[] docTypes)voidsetName(String name)voidsetPropertyName(String propertyName)Set the value as first property name.voidsetPropertyNames(String[] propNames)
-
-
-
Method Detail
-
getClassName
public String getClassName()
-
setClassName
public void setClassName(String className)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getDocTypes
public String[] getDocTypes()
-
setDocTypes
public void setDocTypes(String[] docTypes)
-
getCounterStart
public int getCounterStart()
-
getGenerationCriteria
public Set<?> getGenerationCriteria()
-
getGenerationExpression
public String getGenerationExpression()
-
getPropertyName
public String getPropertyName()
Kept for convenience. If there is only one property to be set with generated UID.- Returns:
- first propertyName
-
setPropertyName
public void setPropertyName(String propertyName)
Set the value as first property name. Kept for convenience. If there is only one property to be set with generated UID.
-
getPropertyNames
public String[] getPropertyNames()
-
setPropertyNames
public void setPropertyNames(String[] propNames)
-
-