Class AbstractArtifactRepresentation

  • All Implemented Interfaces:
    IArtifactRepresentation, IVilType
    Direct Known Subclasses:
    Binary, Text

    public abstract class AbstractArtifactRepresentation
    extends java.lang.Object
    implements IArtifactRepresentation
    An abstract implementation of artifact representations which cares for modifiability and for listeners.
    Author:
    Holger Eichelberger
    • Constructor Detail

      • AbstractArtifactRepresentation

        protected AbstractArtifactRepresentation​(boolean modifiable)
        Creates a artifact representation and sets the modifiability flag.
        Parameters:
        modifiable - whether the representation is modifiable
    • Method Detail

      • isModifiable

        protected boolean isModifiable()
        Returns whether the representation is modifiable.
        Returns:
        true if it is modifiable, false else
      • triggerArtifactChanged

        public void triggerArtifactChanged()
                                    throws VilException
        Triggers all registerered listeners in getListeners().
        Throws:
        VilException - in case that some listeners fail
      • setTriggerEnabled

        public void setTriggerEnabled​(boolean triggerEnabled)
        May be used to avoid superfluous listener triggers.
        Parameters:
        triggerEnabled - enabled if true, disabled if false