Class GomCategoryEntry
java.lang.Object
de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomElement
de.espirit.firstspirit.access.store.templatestore.gom.GomCategoryEntry
- All Implemented Interfaces:
GomCheckable
,GomElement
,GomProjectEntry
,Serializable
@NonExtendable
public class GomCategoryEntry
extends AbstractGomElement
implements GomProjectEntry, GomCheckable
GOM representation of a category
- Since:
- 4.2.5
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.espirit.firstspirit.access.store.templatestore.gom.GomCheckable
GomCheckable.Context
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet a constraint representation of this entry.boolean
protected String
Return the default tag for a gom element.getName()
The remote project category name@NotNull GomStoreFolderList
Restrict access to specific folders (including sub-folders and store roots)int
hashCode()
static @NotNull GomCategoryEntry
Creates a new instance with the given category namevoid
Sets the remote project category namevoid
validate
(GomCheckable.Context context) Validate the element against the given context.void
verify()
Verify the element to be fulfill its syntactic constraints.Methods inherited from class de.espirit.firstspirit.access.store.templatestore.gom.AbstractGomElement
getGomElementTag, getIncludeConfiguration, hasRepresentation, setGomElementTag, setIncludeConfiguration
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.espirit.firstspirit.access.store.templatestore.gom.GomElement
getGomElementTag, getIncludeConfiguration, hasRepresentation, setGomElementTag, setIncludeConfiguration
-
Field Details
-
REFERENCENAME_PATTERN
Regular expression for valid reference names- Since:
- 4.2.5
- See Also:
-
PATTERN
Compiled pattern for valid reference names- Since:
- 4.2.5
-
TAG
The tag of this component- Since:
- 4.2.5
- See Also:
-
-
Constructor Details
-
GomCategoryEntry
public GomCategoryEntry()
-
-
Method Details
-
on
Creates a new instance with the given category name- Parameters:
category
- the name of the category- Returns:
- a new instance, never
null
- Since:
- 4.2.9
-
getDefaultTag
Description copied from class:AbstractGomElement
Return the default tag for a gom element.- Specified by:
getDefaultTag
in classAbstractGomElement
- Returns:
- The elements default tag.
-
asConstraint
Description copied from interface:GomProjectEntry
Get a constraint representation of this entry.- Specified by:
asConstraint
in interfaceGomProjectEntry
- Returns:
- The entry's constraint representation.
-
getName
The remote project category name- Since:
- 4.2.5
-
setName
Sets the remote project category name- Since:
- 4.2.5
-
getSources
Restrict access to specific folders (including sub-folders and store roots)- Since:
- 4.2.9
-
equals
-
hashCode
public int hashCode() -
verify
Description copied from interface:GomCheckable
Verify the element to be fulfill its syntactic constraints.- Specified by:
verify
in interfaceGomCheckable
- Throws:
IllegalStateException
- If the element is not correctly set up.
-
validate
Description copied from interface:GomCheckable
Validate the element against the given context.- Specified by:
validate
in interfaceGomCheckable
- Parameters:
context
- The context to validate for, must not benull
.- Throws:
GomValidationError
- If the element is not plausible wrt. its context.
-