<commit_before>package org.jboss.windup.rules.apps.java.model.mixin;

import com.tinkerpop.frames.Adjacency;
import org.jboss.windup.graph.model.WindupVertexFrame;

import com.tinkerpop.frames.Property;
import com.tinkerpop.frames.modules.typedgraph.TypeValue;
import org.jboss.windup.rules.apps.java.model.JavaClassModel;

/**
 * A model mix-in for models that reference a Java type, for instance, resource-ref in web.xml.
 *
 * @author <a href="mailto:<EMAIL>"><NAME></a>
*/
@TypeValue(HasTypeModel.TYPE)
public interface HasTypeModel extends WindupVertexFrame
{
    public static final String TYPE = "HasTypeModel";

    public static final String JAVA_TYPE_NAME = TYPE + "-javaType";
    public static final String JAVA_TYPE = TYPE + "-javaType";

    /**
     * The referenced type name.
     */
    @Property(JAVA_TYPE_NAME)
    public String getJavaTypeName();

    /**
     * The referenced type name.
     */
    @Property(JAVA_TYPE_NAME)
    public void getJavaTypeName(String clazz);

    /**
     * The referenced type, if available.
     */
    @Adjacency(label = JAVA_TYPE)
    public JavaClassModel getJavaType();

    /**
     * The referenced type, if available.
     */
    @Property(JAVA_TYPE)
    public void setJavaType(JavaClassModel clazz);

}
<commit_msg>Fix the annotation to properly reflect that it is a Adjacency relationship rather than a property (#1047)<commit_after>package org.jboss.windup.rules.apps.java.model.mixin;

import com.tinkerpop.frames.Adjacency;
import org.jboss.windup.graph.model.WindupVertexFrame;

import com.tinkerpop.frames.Property;
import com.tinkerpop.frames.modules.typedgraph.TypeValue;
import org.jboss.windup.rules.apps.java.model.JavaClassModel;

/**
 * A model mix-in for models that reference a Java type, for instance, resource-ref in web.xml.
 *
 * @author <a href="mailto:<EMAIL>"><NAME></a>
*/
@TypeValue(HasTypeModel.TYPE)
public interface HasTypeModel extends WindupVertexFrame
{
    String TYPE = "HasTypeModel";

    String JAVA_TYPE_NAME = TYPE + "-javaType";
    String JAVA_TYPE = TYPE + "-javaType";

    /**
     * The referenced type name.
     */
    @Property(JAVA_TYPE_NAME)
    String getJavaTypeName();

    /**
     * The referenced type name.
     */
    @Property(JAVA_TYPE_NAME)
    void getJavaTypeName(String clazz);

    /**
     * The referenced type, if available.
     */
    @Adjacency(label = JAVA_TYPE)
    JavaClassModel getJavaType();

    /**
     * The referenced type, if available.
     */
    @Adjacency(label = JAVA_TYPE)
    void setJavaType(JavaClassModel clazz);

}

{'fraction_non_alphanumeric': 0.11357448463632827, 'fraction_numerical': 0.0015558148580318942, 'mean_word_length': 3.512280701754386, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7665037', 'n_tokens_mistral': 867, 'n_tokens_neox': 811, 'n_words': 190}