Package com.saperion.annotation
Class AbstractAnnotation
- java.lang.Object
-
- com.saperion.annotation.AbstractAnnotation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractAnnotation.AnnotationProperty
Properties of annotations.static class
AbstractAnnotation.AnnotationType
Available annotation types.
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractAnnotation(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 boolean
equals(java.lang.Object obj)
int
getPage()
Gets the page.java.util.Map<AbstractAnnotation.AnnotationProperty,java.lang.String>
getProperties()
Gets the properties.java.lang.String
getProperty(AbstractAnnotation.AnnotationProperty property)
Gets the property.AbstractAnnotation.AnnotationType
getType()
Gets the type.int
hashCode()
boolean
isEdit()
Checks if annotation can be edited.void
setProperty(AbstractAnnotation.AnnotationProperty property, java.lang.String value)
Sets the property.java.lang.String
toString()
-
-
-
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:
hashCode
in classjava.lang.Object
- See Also:
Object.hashCode()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
- See Also:
Object.equals(java.lang.Object)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
-