Class UniqueName
java.lang.Object
com._1c.g5.v8.dt.md.databinding.validation.UniqueName
Helper class for generation and validation of the unique name.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UniqueName
create
(org.eclipse.emf.ecore.EObject eObj, org.eclipse.emf.ecore.EStructuralFeature feature, String base) The default implementation based on the EObject and featuresorg.eclipse.core.databinding.validation.IValidator
createValidator
(Object owner) Generates new validator.protected abstract Object
Finds the object (not equal to the specifiedowner
) with the specifiedname
generate()
Generates new unique name using prefix.void
Sets a prefix
-
Field Details
-
base
-
-
Constructor Details
-
UniqueName
Constructor.- Parameters:
base
- - a prefix
-
-
Method Details
-
setBase
Sets a prefix- Parameters:
base
- a prefix
-
generate
Generates new unique name using prefix.- Returns:
- a new unique name
- See Also:
-
createValidator
Generates new validator.- Parameters:
owner
- - a owner of the name- Returns:
- a new validator
-
find
Finds the object (not equal to the specifiedowner
) with the specifiedname
- Parameters:
name
- a unique nameowner
- a owner- Returns:
- the object (not equal to the specified
owner
) with the specifiedname
-
create
public static UniqueName create(org.eclipse.emf.ecore.EObject eObj, org.eclipse.emf.ecore.EStructuralFeature feature, String base) The default implementation based on the EObject and features- Parameters:
eObj
- a owner of the collection of object with unique namefeature
- a owner of the collection of object with unique namebase
- a prefix- Returns:
- new instance of this class
-