com.github.arachnidium.model.interfaces.IDecomposable Maven / Gradle / Ivy
package com.github.arachnidium.model.interfaces;
import com.github.arachnidium.model.support.HowToGetByFrames;
/**
* There is an assumption that any object (whole application, page/screen and so on)
* could be decomposed to limited set of logically final and reusable parts.
*
* This interface specifies decomposition model
* provided by Arachnidium Java framework.
*/
public interface IDecomposable {
/**
* This method should provide the getting of more specific
* part from another which is more generalized.
*
* @param partClass is required class that implements {@link IDecomposable}
*
* @return The instance of required class specified by partClass
* parameter
*/
public T getPart(Class partClass);
/**
* This method should provide the getting of more specific
* part from another which is more generalized.
*
* As it is all about UI of browser and mobile applications,
* the usage of frames is possible (browser applications, hybrid mobile clients).
* So this fact is considered by method.
*
* @param partClass is required class that implements {@link IDecomposable}
*
* @param pathStrategy is a path to frame which is specified by {@link HowToGetByFrames}
*
* @return The instance of required class specified by @param partClass
*/
public T getPart(Class partClass,
HowToGetByFrames pathStrategy);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy