Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 71d474c7bf815a9d9fa35a2d23cc2b1347917b23 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package org.eclipse.jst.jsf.designtime.internal.resources;

/**
 * An object that backs a fragment of a JSF resource. A fragment may be a full
 * fledged JSF resource or a may be another interesting related object such as
 * the library folder that holds a resource.
 * 
 * @author cbateman
 * 
 */
public interface IJSFResourceFragment
{

    /**
     * @return true if the fragment is accessible
     */
    public abstract boolean isAccessible();

    /**
     * @return the type of this fragment.
     */
    public abstract Type getType();

    /**
     * @return the id of the fragment
     */
    public ResourceFragmentIdentifier getId();

    /**
     * The type of a fragment
     * 
     */
    public enum Type
    {
        /**
         * A fragment of this type is a full-fledged JSF Resource. A fragment of
         * this type can always be cast to IJSFResource.
         */
        RESOURCE,
        /**
         * A fragment of this type is a container for actual RESOURCE's or other
         * fragments (or both). A fragment of this type can always be cast to
         * IJSFResourceContainer.
         */
        CONTAINER;
    }

}

Back to the top