Package com.saperion.annotation
Class AbstractAnnotation
- java.lang.Object
-
- com.saperion.annotation.AbstractAnnotation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractAnnotation.AnnotationPropertyProperties of annotations.static classAbstractAnnotation.AnnotationTypeAvailable annotation types.
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractAnnotation(AbstractAnnotation.AnnotationType annotationType, java.util.Map<AbstractAnnotation.AnnotationProperty,java.lang.String> properties, java.util.Set<AbstractAnnotation.AnnotationProperty> requiredProperties)Creates a new AbstractAnnotation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)intgetPage()Gets the page.java.util.Map<AbstractAnnotation.AnnotationProperty,java.lang.String>getProperties()Gets the properties.java.lang.StringgetProperty(AbstractAnnotation.AnnotationProperty property)Gets the property.AbstractAnnotation.AnnotationTypegetType()Gets the type.inthashCode()booleanisEdit()Checks if annotation can be edited.voidsetProperty(AbstractAnnotation.AnnotationProperty property, java.lang.String value)Sets the property.java.lang.StringtoString()
-
-
-
Constructor Detail
-
AbstractAnnotation
protected AbstractAnnotation(AbstractAnnotation.AnnotationType annotationType, java.util.Map<AbstractAnnotation.AnnotationProperty,java.lang.String> properties, java.util.Set<AbstractAnnotation.AnnotationProperty> requiredProperties)
Creates a new AbstractAnnotation.- Parameters:
annotationType- typeproperties- properties of the annotationrequiredProperties- required properties for the type
-
-
Method Detail
-
getType
public AbstractAnnotation.AnnotationType 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
public java.util.Map<AbstractAnnotation.AnnotationProperty,java.lang.String> getProperties()
Gets the properties.- Returns:
- the properties
-
getProperty
public java.lang.String getProperty(AbstractAnnotation.AnnotationProperty property)
Gets the property.- Parameters:
property- the property- Returns:
- the value of the property
-
setProperty
public void setProperty(AbstractAnnotation.AnnotationProperty property, java.lang.String value)
Sets the property.- Parameters:
property- the propertyvalue- the value
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object- See Also:
Object.hashCode()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object- See Also:
Object.equals(java.lang.Object)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- See Also:
Object.toString()
-
-