Package com.saperion.annotation
Class AbstractAnnotation
java.lang.Object
com.saperion.annotation.AbstractAnnotation
Abstract annotation class containing common methods.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Properties of annotations.static enum
Available annotation types. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractAnnotation
(AbstractAnnotation.AnnotationType annotationType, Map<AbstractAnnotation.AnnotationProperty, String> properties, Set<AbstractAnnotation.AnnotationProperty> requiredProperties) Creates a new AbstractAnnotation. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
getPage()
Gets the page.Gets the properties.Gets the property.getType()
Gets the type.int
hashCode()
boolean
isEdit()
Checks if annotation can be edited.void
setProperty
(AbstractAnnotation.AnnotationProperty property, String value) Sets the property.toString()
-
Constructor Details
-
AbstractAnnotation
protected AbstractAnnotation(AbstractAnnotation.AnnotationType annotationType, Map<AbstractAnnotation.AnnotationProperty, String> properties, Set<AbstractAnnotation.AnnotationProperty> requiredProperties) Creates a new AbstractAnnotation.- Parameters:
annotationType
- typeproperties
- properties of the annotationrequiredProperties
- required properties for the type
-
-
Method Details
-
getType
Gets the type.- Returns:
- the type
-
getPage
public int getPage()Gets the page.- Returns:
- the page
-
isEdit
public boolean isEdit()Checks if annotation can be edited.- Returns:
- true, the annotation can be edited
-
getProperties
Gets the properties.- Returns:
- the properties
-
getProperty
Gets the property.- Parameters:
property
- the property- Returns:
- the value of the property
-
setProperty
Sets the property.- Parameters:
property
- the propertyvalue
- the value
-
hashCode
public int hashCode() -
equals
-
toString
-