<commit_before>package com.guardtime.ksi.unisignature;

import com.guardtime.ksi.tlv.TLVStructure;

public interface LinkMetadata {

    IdentityMetadata getIdentityMetadata();

    TLVStructure getMetadataStructure();
}<commit_msg>Added licence text and javadoc to LinkMetadata<commit_after>/*
 * Copyright 2013-2015 Guardtime, Inc.
 *
 * This file is part of the Guardtime client SDK.
 *
 * 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, CONDITIONS, OR OTHER LICENSES OF ANY KIND, either
 * express or implied. See the License for the specific language governing
 * permissions and limitations under the License.
 * "Guardtime" and "KSI" are trademarks or registered trademarks of
 * Guardtime, Inc., and no license to trademarks is granted; Guardtime
 * reserves and retains all trademark rights.
 */

package com.guardtime.ksi.unisignature;

import com.guardtime.ksi.tlv.TLVStructure;

/**
 * Wrapper interface that provides access to {@link IdentityMetadata} and its raw {@link TLVStructure} that is contained
 * in the {@link AggregationChainLink}.
 */
public interface LinkMetadata {

    /**
     * Provides access to {@link IdentityMetadata} contained in {@link AggregationChainLink}.
     *
     * @return Instance of {@link IdentityMetadata}.
     */
    IdentityMetadata getIdentityMetadata();

    /**
     * Provides access to {@link TLVStructure} which contains raw data for {@link IdentityMetadata} as well as any extra
     * components specified by RFC.
     *
     * @return {@link TLVStructure} as described by RFC.
     */
    TLVStructure getMetadataStructure();
}
{'fraction_non_alphanumeric': 0.08147379346133887, 'fraction_numerical': 0.006227296315516347, 'mean_word_length': 3.9309462915601023, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, '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': '419537', 'n_tokens_mistral': 519, 'n_tokens_neox': 488, 'n_words': 209}