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 voidThis method is called before the termination of any constructor of classModel.AbstractType<?>final <A extends Annotation>
AgetAnnotation(Class<A> annotationClass) final StringgetID()final StringgetName()final PatternReturns the pattern, this feature is a source feature of.Type<?>getType()final booleanisAnnotationPresent(Class<? extends Annotation> annotationClass) final booleanfinal voidmount(AbstractType<?> type, String name, String string, Serializable serializable, AnnotatedElement annotationSource) protected final ObjectBlock malicious data streams.static final <T> TrequireMounted(T result) final StringtoString()final voidtoString(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:
-