Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.schema.presets.extension.internal
Class PredefinedSchemaImpl

java.lang.Object
  extended by eu.esdihumboldt.hale.ui.schema.presets.extension.internal.PredefinedSchemaImpl
All Implemented Interfaces:
de.cs3d.util.eclipse.extension.simple.IdentifiableExtension.Identifiable, SchemaPreset

public class PredefinedSchemaImpl
extends Object
implements SchemaPreset

Predefined schema based on a configuration element.

Author:
Simon Templer

Constructor Summary
PredefinedSchemaImpl(org.eclipse.core.runtime.IConfigurationElement element, String elementId)
          Create a predefined schema from a configuration element.
 
Method Summary
 String getDescription()
          Get the schema description.
 URL getIconURL()
          Get the icon URL.
 String getId()
           
 LocatableInputSupplier<? extends InputStream> getLocation()
          Get the schema location.
 String getName()
          Get the schema name.
 String getTag()
          Get a tag to discern it from other versions of the same schema, e.g.
 String getVersion()
          Get the schema version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PredefinedSchemaImpl

public PredefinedSchemaImpl(org.eclipse.core.runtime.IConfigurationElement element,
                            String elementId)
Create a predefined schema from a configuration element.

Parameters:
element - the configuration element
elementId - the element ID
Method Detail

getName

public String getName()
Description copied from interface: SchemaPreset
Get the schema name.

Specified by:
getName in interface SchemaPreset
Returns:
the schema name
See Also:
SchemaPreset.getName()

getDescription

public String getDescription()
Description copied from interface: SchemaPreset
Get the schema description.

Specified by:
getDescription in interface SchemaPreset
Returns:
the description, may be null
See Also:
SchemaPreset.getDescription()

getLocation

public LocatableInputSupplier<? extends InputStream> getLocation()
Description copied from interface: SchemaPreset
Get the schema location.

Specified by:
getLocation in interface SchemaPreset
Returns:
the input supplier
See Also:
SchemaPreset.getLocation()

getIconURL

public URL getIconURL()
Description copied from interface: SchemaPreset
Get the icon URL.

Specified by:
getIconURL in interface SchemaPreset
Returns:
the icon URL, may be null
See Also:
SchemaPreset.getIconURL()

getId

public String getId()
Specified by:
getId in interface de.cs3d.util.eclipse.extension.simple.IdentifiableExtension.Identifiable
Specified by:
getId in interface SchemaPreset
See Also:
SchemaPreset.getId()

getTag

public String getTag()
Description copied from interface: SchemaPreset
Get a tag to discern it from other versions of the same schema, e.g. specifying a repository name.

Specified by:
getTag in interface SchemaPreset
Returns:
the schema tag, may be null
See Also:
SchemaPreset.getTag()

getVersion

public String getVersion()
Description copied from interface: SchemaPreset
Get the schema version.

Specified by:
getVersion in interface SchemaPreset
Returns:
the schema version, may be null
See Also:
SchemaPreset.getVersion()

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d