Class GAnnotation

  • All Implemented Interfaces:
    IPropReference, java.lang.Cloneable

    public class GAnnotation
    extends java.lang.Object
    implements java.lang.Cloneable, IPropReference
    This is a data holder class for annotations in resource source files.
    Mikael Andersson, Christopher Mindus
    • Method Detail

      • getSimpleNamedType

        public static AnnotationType getSimpleNamedType​(java.lang.String s)
        Gets a Type from a String such as "PropRef" or "VSAction", i.e. without the qualifiers in the package name. If this doesn't match, the fully qualified name is tried.
        s - The string.
        The Type or null if none matches.
      • getFQNType

        public static AnnotationType getFQNType​(java.lang.String fqnClass)
        Gets a Type from a fully qualified annotation class (includes package name).
        The Type or null if none matches.
      • getReferenceDescription

        public java.lang.String getReferenceDescription()
        Gets a short description of this reference, e.g. "VirtualSpace" or "Label For".
        Specified by:
        getReferenceDescription in interface IPropReference
        The reference description string.
      • isReferenceValid

        public boolean isReferenceValid​(GProp<?> property)
        Validates the property reference that has been looked up.
        Specified by:
        isReferenceValid in interface IPropReference
        property - The property to validate.
        true, always.