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
public abstract class Feature extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Feature()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
afterModelCreated()
This method is called before the termination of any constructor of classModel
.AbstractType<?>
getAbstractType()
<A extends Annotation>
AgetAnnotation(Class<A> annotationClass)
String
getID()
List<String>
getLocalizationKeys()
String
getName()
Pattern
getPattern()
Returns the pattern, this feature is a source feature of.Type<?>
getType()
boolean
isAnnotationPresent(Class<? extends Annotation> annotationClass)
boolean
isSourceAlready()
void
mount(AbstractType<?> type, String name, String string, Serializable serializable, AnnotatedElement annotationSource)
protected Object
readResolve()
Block malicious data streams.static <T> T
requireMounted(T result)
String
toString()
void
toString(StringBuilder bf, Type<?> defaultType)
protected Object
writeReplace()
-
-
-
Method Detail
-
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
public AbstractType<?> getAbstractType()
- See Also:
getType()
-
getType
public Type<?> getType()
- See Also:
getAbstractType()
-
getName
public final String getName()
-
getID
public final String getID()
- See Also:
Model.getFeature(String)
-
isAnnotationPresent
public final boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
- See Also:
Class.isAnnotationPresent(Class)
-
getAnnotation
public final <A extends Annotation> A getAnnotation(Class<A> annotationClass)
- See Also:
Class.getAnnotation(Class)
-
getLocalizationKeys
public final List<String> getLocalizationKeys()
- See Also:
LocalizationKeys
-
toString
public final void toString(StringBuilder bf, Type<?> defaultType)
-
isSourceAlready
public final boolean isSourceAlready()
-
getPattern
public final Pattern 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:
Pattern.getSourceFeatures()
-
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
protected final Object writeReplace() throws ObjectStreamException
- Throws:
ObjectStreamException
-
readResolve
protected final Object readResolve() throws InvalidObjectException
Block malicious data streams.- Throws:
InvalidObjectException
- See Also:
writeReplace()
-
-