Package com.exedio.cope
Class Feature
java.lang.Object
com.exedio.cope.Feature
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CheckConstraint
,CopyConstraint
,Field
,Pattern
,Sequence
,This
,UniqueConstraint
,View
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
This method is called before the termination of any constructor of classModel
.AbstractType<?>
final <A extends Annotation>
AgetAnnotation
(Class<A> annotationClass) final String
getID()
final String
getName()
final Pattern
Returns the pattern, this feature is a source feature of.Type<?>
getType()
final boolean
isAnnotationPresent
(Class<? extends Annotation> annotationClass) final boolean
final void
mount
(AbstractType<?> type, String name, String string, Serializable serializable, AnnotatedElement annotationSource) protected final Object
Block malicious data streams.static final <T> T
requireMounted
(T result) final String
toString()
final void
toString
(StringBuilder bf, Type<?> defaultType) protected final Object
-
Constructor Details
-
Feature
public Feature()
-
-
Method Details
-
mount
public final void mount(AbstractType<?> type, String name, String string, Serializable serializable, AnnotatedElement annotationSource) -
requireMounted
public static final <T> T requireMounted(T result) -
getAbstractType
- See Also:
-
getType
- See Also:
-
getName
-
getID
- See Also:
-
isAnnotationPresent
- See Also:
-
getAnnotation
- See Also:
-
getLocalizationKeys
- See Also:
-
toString
-
toString
-
isSourceAlready
public final boolean isSourceAlready() -
getPattern
Returns the pattern, this feature is a source feature of. NOTE: Does not return the pattern that created the type of this feature. For such cases usegetType()
.getPattern()
.- See Also:
-
afterModelCreated
protected void afterModelCreated()This method is called before the termination of any constructor of classModel
. It allows any initialization of the feature, that cannot be done earlier. The default implementation is empty. -
writeReplace
- Throws:
ObjectStreamException
-
readResolve
Block malicious data streams.- Throws:
InvalidObjectException
- See Also:
-