Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.uidgen.service
Class UIDGeneratorDescriptor

java.lang.Object
  extended by org.nuxeo.ecm.platform.uidgen.service.UIDGeneratorDescriptor

public class UIDGeneratorDescriptor
extends Object

UID generator configuration holder.

Author:
Dragos Mihalache

Constructor Summary
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
 String getClassName()
           
 int getCounterStart()
           
 String[] getDocTypes()
           
 Set<?> getGenerationCriteria()
           
 String getGenerationExpression()
           
 String getName()
           
 String getPropertyName()
          Kept for convenience.
 String[] getPropertyNames()
           
 void setClassName(String className)
           
 void setDocTypes(String[] docTypes)
           
 void setName(String name)
           
 void setPropertyName(String propertyName)
          Set the value as first property name.
 void setPropertyNames(String[] propNames)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIDGeneratorDescriptor

public UIDGeneratorDescriptor()
Default constructor - used normally when created as an XObject.


UIDGeneratorDescriptor

public UIDGeneratorDescriptor(String generationExp,
                              Set<?> generationCrit)
Explicit constructor.


UIDGeneratorDescriptor

public UIDGeneratorDescriptor(String generationExp,
                              Set<?> generationCrit,
                              int counterStart)
Explicit constructor.

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)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.