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.booleanprotected StringReturn the default tag for a gom element.getName()The remote project category name@NotNull GomStoreFolderListRestrict access to specific folders (including sub-folders and store roots)inthashCode()static @NotNull GomCategoryEntryCreates a new instance with the given category namevoidSets the remote project category namevoidvalidate(GomCheckable.Context context) Validate the element against the given context.voidverify()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, setIncludeConfigurationMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:AbstractGomElementReturn the default tag for a gom element.- Specified by:
getDefaultTagin classAbstractGomElement- Returns:
- The elements default tag.
-
asConstraint
Description copied from interface:GomProjectEntryGet a constraint representation of this entry.- Specified by:
asConstraintin 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:GomCheckableVerify the element to be fulfill its syntactic constraints.- Specified by:
verifyin interfaceGomCheckable- Throws:
IllegalStateException- If the element is not correctly set up.
-
validate
Description copied from interface:GomCheckableValidate the element against the given context.- Specified by:
validatein interfaceGomCheckable- Parameters:
context- The context to validate for, must not benull.- Throws:
GomValidationError- If the element is not plausible wrt. its context.
-