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

bt.bencoding.model.BEObjectModel Maven / Gradle / Ivy

There is a newer version: 1.10
Show newest version
package bt.bencoding.model;

import bt.bencoding.BEType;

/**
 * Object model.
 *
 * @since 1.0
 */
public interface BEObjectModel {

    /**
     * @return BEncoding type of the objects that this model can be applied to.
     * @since 1.0
     */
    BEType getType();

    /**
     * Validate a given object.
     *
     * @param object Object of this model's BEncoding type.
     * @return Validation result (failed, if this model cannot be applied to the {@code object}'s type).
     * @since 1.0
     */
    ValidationResult validate(Object object);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy