All Downloads are FREE. Search and download functionalities are using the official Maven repository.

patterntesting.runtime.annotation.DrawSequenceDiagram Maven / Gradle / Ivy

/*
 * $Id: DrawSequenceDiagram.java,v 1.8 2016/01/06 20:46:27 oboehm Exp $
 *
 * Copyright (c) 2013 by Oliver Boehm
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express orimplied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * (c)reated 06.09.2013 by oliver ([email protected])
 */

package patterntesting.runtime.annotation;

import java.lang.annotation.*;

/**
 * With this annotation you can control the generation of sequence diagrams.
 * You can put this annotation before a constructor or method.
 *
 * @author oliver
 * @see IgnoreForSequenceDiagram
 * @since 1.4 (06.09.2013)
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.CONSTRUCTOR, ElementType.METHOD})
public @interface DrawSequenceDiagram {

    /**
     * If this value is given a new diagram with this filename will be
     * generated. If the given filename ends with ".pic" the generated file can
     * be used as input for UMLGraph and can
     * be converted with the pic2plot of the GNU plutils into other
     * graphic formats.
     * 

* If the given filename ends with ".txt" the message sequence diagram will * be genearted as simple text file which can be used as input for websequence diagrams. *

*

* If no value is given the marked method or constructor will appended to * the last generated diagram. *

* * @return the string */ String value() default ""; /** * If you don't want the call to a class of the "com.pany" package you can * add "com.pany.*" as pattern. *

* For the pattern the same syntax as in AspectJ is supported. *

*

* NOTE: not yet realized *

* * @return the string[] */ String[] excluded() default ""; /** * By default all classes are included. If you do not like that you can * define a pattern wich packages and/or classes should be include. *

* For the pattern the same syntax as in AspectJ is supported. *

*

* NOTE: not yet realized *

* * @return the string[] */ String[] included() default "*"; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy