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 enumProperties of annotations.static enumAvailable annotation types. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractAnnotation(AbstractAnnotation.AnnotationType annotationType, Map<AbstractAnnotation.AnnotationProperty, String> properties, Set<AbstractAnnotation.AnnotationProperty> requiredProperties) Creates a new AbstractAnnotation. -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetPage()Gets the page.Gets the properties.Gets the property.getType()Gets the type.inthashCode()booleanisEdit()Checks if annotation can be edited.voidsetProperty(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
-