/** * Base interface for an abstract writable resource. * * @author Philip Helger */ @MustImplementEqualsAndHashcode public interface IWritableResource extends IOutputStreamAndWriterProvider, IResourceBase { // Change return type @Nonnull IWritableResource getWritableCloneForPath (@Nonnull String sPath); }
/** * Base interface for an abstract resource that is both readable and writable. * * @author Philip Helger */ @MustImplementEqualsAndHashcode public interface IReadWriteResource extends IReadableResource, IWritableResource { /* empty */ }
/** * Interface for an object creating unique String IDs. * * @author Philip Helger */ @MustImplementEqualsAndHashcode public interface IStringIDFactory extends IIDFactory <String> { /* empty */ }
@MustImplementEqualsAndHashcode public interface ICSSPathProviderWithDependencies extends ICSSPathProvider, IHasDependencies <ICSSPathProvider> { /* empty */ }
/** * Base marker interface for all ID factories. It's only sense is to group all * ID factories with the different types * * @author Philip Helger */ @MustImplementEqualsAndHashcode public interface IBaseIDFactory { /* empty */ }
@MustImplementEqualsAndHashcode public interface IJSPathProviderWithDependencies extends IJSPathProvider, IHasDependencies <IJSPathProvider> { /* empty */ }
/** * Base interface for an abstract readable resource. * * @author Philip Helger */ @MustImplementEqualsAndHashcode public interface IReadableResource extends IInputStreamAndReaderProvider, IResourceBase { // Change return type @Nonnull IReadableResource getReadableCloneForPath (@Nonnull String sPath); }
/** * Represents the type of an event. * * @author philip */ @MustImplementEqualsAndHashcode public interface IEventType extends IHasName { /* empty */ }
/** * Interface for an object creating unique IDs. * * @author Philip Helger */ @MustImplementEqualsAndHashcode public interface IIDFactory <IDTYPE> extends IBaseIDFactory { /** * @return The new unique ID. May never be <code>null</code>. */ @Nonnull IDTYPE getNewID (); }
/** * Represents a single CSS value that is used in a CSS declaration. * * @author Philip Helger */ @MustImplementEqualsAndHashcode public interface ICSSValue extends ICSSWriteable { /** * @return The underlying CSS property from an enum. Never <code>null</code>. */ @Nonnull ECSSProperty getProp (); }
/** * Base interface for a CSS value that contains more than one value * * @author Philip Helger */ @MustImplementEqualsAndHashcode public interface ICSSMultiValue extends ICSSValue { /** * @return The contained CSS values. Never <code>null</code>. */ @Nonnull @ReturnsMutableCopy List <CSSValue> getContainedValues (); }
/** * Represents a single CSS value that is used in a CSS declaration. * * @author Philip Helger */ @MustImplementEqualsAndHashcode public interface ICSSValue extends ICSSWriteable { /** * @return The underlying CSS property from an enum. Never <code>null</code>. */ @Nonnull ECSSProperty getProp (); }
/** * Basic interface for object providing JavaScript code. * * @author Philip Helger */ @MustImplementEqualsAndHashcode public interface IJSCodeProvider extends Serializable { /** * @return The JavaScript code representation. May be <code>null</code> to * indicate no JS code. */ @Nullable String getJSCode (); }
/** * Interface for an object creating unique int IDs. * * @author Philip Helger */ @MustImplementEqualsAndHashcode public interface IIntIDFactory extends IBaseIDFactory { /** * Create a new unique integer ID. * * @return The newly created ID. */ int getNewID (); }
/** * Abstract base implementation of {@link FileFilter} with some conversion * methods. Also implements {@link IFilter} and forwards the calls to the * {@link FileFilter} API. * * @author Philip Helger */ @MustImplementEqualsAndHashcode public abstract class AbstractFileFilter implements FileFilter, IFilter <File> { public final boolean matchesFilter (@Nullable final File aFile) { return accept (aFile); } }
/** * Base interface for a CSS value that contains more than one value * * @author Philip Helger */ @MustImplementEqualsAndHashcode public interface ICSSMultiValue extends ICSSValue { /** * @return The contained CSS values. Never <code>null</code>. */ @Nonnull @ReturnsMutableCopy List <CSSValue> getContainedValues (); }
/** * Interface for a CSS class provider. * * @author Philip Helger */ @MustImplementEqualsAndHashcode public interface ICSSClassProvider { /** * @return The desired CSS class. May be <code>null</code> to indicate no * class. */ @Nullable String getCSSClass (); }
/** * Interface for an object creating unique long IDs. * * @author Philip Helger */ @MustImplementEqualsAndHashcode public interface ILongIDFactory extends IBaseIDFactory { /** * Create a new unique long ID. * * @return The newly created ID. */ long getNewID (); }
/** * A special namespace context interface that allows the iteration of the * contained mappings. * * @author Philip Helger */ @MustImplementEqualsAndHashcode public interface IIterableNamespaceContext extends NamespaceContext { /** * Get all contained mappings. * * @return The map with all prefixes mapped to the namespace URIs. */ @Nonnull @ReturnsMutableCopy Map <String, String> getPrefixToNamespaceURIMap (); }
/** * An explicit {@link ICSSPathProvider} that supports an parameters. This is * e.g. useful if a language-specific CSS file is present! * * @author Philip Helger */ @MustImplementEqualsAndHashcode public interface ICSSPathProviderWithParam extends ICSSPathProvider { /** * Get the {@link ICSSPathProvider} with the parameter resolved. * * @param sParam * The parameter to be used for resolving. * @return Never <code>null</code>. */ @Nonnull ICSSPathProvider getInstance (@Nonnull @Nonempty String sParam); }