Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 4de62aef63a7480def5934212e512c03bb75ddbe (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
package org.eclipse.jst.jsf.designtime.internal.resources;

/**
 * 
 * @author cbateman
 * 
 */
public abstract class JSFResourceFragment implements IJSFResourceFragment
{
    private final ResourceFragmentIdentifier _id;
    private final Type _type;

    /**
     * @param id
     * @param type
     */
    public JSFResourceFragment(final ResourceFragmentIdentifier id,
            final Type type)
    {
        _id = id;
        _type = type;
    }

    public ResourceFragmentIdentifier getId()
    {
        return _id;
    }

    public final Type getType()
    {
        return _type;
    }

    public abstract boolean isAccessible();
    
    public String toString()
    {
        String toString = _id != null ? _id.toString() : "?"; //$NON-NLS-1$
        return String.format("%s[%s]", toString, _type.toString()); //$NON-NLS-1$
    }
}

Back to the top