com.ibm.portal.resolver.helper.cor
Class AbstractContentLocationFactory

java.lang.Object
  extended by com.ibm.portal.resolver.helper.cor.AbstractContentLocationFactory
Direct Known Subclasses:
SingleContentLocationFactory

public abstract class AbstractContentLocationFactory
extends java.lang.Object

Basis for the COR contentlocation factory implementations. It implements IExecutableExtension which allows to access the configuration elements.

Since:
6.1.0

Field Summary
static java.lang.String ATTR_CLASS
          the class attribute
static java.lang.String ATTR_ID
          ID attribute
static java.lang.String ATTR_MATCH_URI_SCHEME
          the match URI scheme attribute
static java.lang.String ATTR_TITLE
          the title attribute
 
Constructor Summary
AbstractContentLocationFactory()
           
 
Method Summary
 java.net.URI findByURI(java.net.URI uri)
           
protected  org.eclipse.core.runtime.IConfigurationElement getConfigurationElement()
           
protected  java.lang.Object getData()
           
protected  java.lang.String getLocationID()
           
protected  java.util.Properties getProperties()
           
protected  java.lang.String getPropertyName()
           
protected  java.lang.String getScheme()
           
protected  java.lang.String[] getSchemes()
           
protected  java.lang.String getTitle()
          Return the title of the location
protected abstract  boolean isValid(java.net.URI uri)
          Checks, if the URI can be handled by this content location factory
 void setInitializationData(org.eclipse.core.runtime.IConfigurationElement aConfig, java.lang.String aPropertyName, java.lang.Object aData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTR_CLASS

public static final java.lang.String ATTR_CLASS
the class attribute

See Also:
Constant Field Values

ATTR_ID

public static final java.lang.String ATTR_ID
ID attribute

See Also:
Constant Field Values

ATTR_MATCH_URI_SCHEME

public static final java.lang.String ATTR_MATCH_URI_SCHEME
the match URI scheme attribute

See Also:
Constant Field Values

ATTR_TITLE

public static final java.lang.String ATTR_TITLE
the title attribute

See Also:
Constant Field Values
Constructor Detail

AbstractContentLocationFactory

public AbstractContentLocationFactory()
Method Detail

findByURI

public java.net.URI findByURI(java.net.URI uri)

getConfigurationElement

protected org.eclipse.core.runtime.IConfigurationElement getConfigurationElement()
Returns:
the config

getData

protected java.lang.Object getData()
Returns:
the data

getLocationID

protected java.lang.String getLocationID()
Returns:
the locationID

getProperties

protected java.util.Properties getProperties()
Returns:
the props

getPropertyName

protected java.lang.String getPropertyName()
Returns:
the propertyName

getScheme

protected java.lang.String getScheme()
Returns:
the scheme

getSchemes

protected java.lang.String[] getSchemes()
Returns:
the schemes

getTitle

protected java.lang.String getTitle()
Return the title of the location

Returns:

isValid

protected abstract boolean isValid(java.net.URI uri)
Checks, if the URI can be handled by this content location factory

Parameters:
uri - URI to check
Returns:
true, if the URI can be handled, else false

setInitializationData

public void setInitializationData(org.eclipse.core.runtime.IConfigurationElement aConfig,
                                  java.lang.String aPropertyName,
                                  java.lang.Object aData)
                           throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException