|
JPF 1.5.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface Extension.Parameter
This interface abstracts extension parameter according to extension declaration in manifest.
Method Summary | |
---|---|
Extension |
getDeclaringExtension()
|
ExtensionPoint.ParameterDefinition |
getDefinition()
Returns definition for this extension parameter. |
Extension.Parameter |
getSubParameter(java.lang.String id)
Returns sub-parameter with given ID or null if no
sub-parameters exist. |
java.util.Collection<Extension.Parameter> |
getSubParameters()
Returns collection of all sub-parameters defined in this parameter. |
java.util.Collection<Extension.Parameter> |
getSubParameters(java.lang.String id)
|
Extension.Parameter |
getSuperParameter()
|
java.lang.String |
rawValue()
|
java.lang.Boolean |
valueAsBoolean()
Returns "typed" value of parameter. |
java.util.Date |
valueAsDate()
Returns "typed" value of parameter. |
Extension |
valueAsExtension()
Returns "typed" value of parameter. |
ExtensionPoint |
valueAsExtensionPoint()
Returns "typed" value of parameter. |
java.lang.Number |
valueAsNumber()
Returns "typed" value of parameter. |
PluginDescriptor |
valueAsPluginDescriptor()
Returns "typed" value of parameter. |
java.lang.String |
valueAsString()
Returns "typed" value of parameter. |
java.net.URL |
valueAsUrl()
Returns "typed" value of parameter. |
java.net.URL |
valueAsUrl(PathResolver pathResolver)
Returns "typed" value of parameter. |
Methods inherited from interface org.java.plugin.registry.PluginElement |
---|
getDeclaringPluginDescriptor, getDeclaringPluginFragment |
Methods inherited from interface org.java.plugin.registry.Identity |
---|
getId |
Methods inherited from interface org.java.plugin.registry.Documentable |
---|
getDocsPath, getDocumentation |
Method Detail |
---|
java.lang.String rawValue()
java.util.Collection<Extension.Parameter> getSubParameters()
Extension.Parameter
objectsExtension.Parameter getSubParameter(java.lang.String id)
null
if no
sub-parameters exist. If more than one sub-parameters with given ID
found, the method should throw an IllegalArgumentException
.
id
- ID of sub-parameter to look for
java.util.Collection<Extension.Parameter> getSubParameters(java.lang.String id)
id
- ID of sub-parameter to look for
Extension getDeclaringExtension()
ExtensionPoint.ParameterDefinition getDefinition()
null
for "invalid" parameters.
null
, if this parameter
is "invalid"Extension.Parameter getSuperParameter()
null
if
this is top level parameterjava.lang.String valueAsString()
ParameterType.STRING
, this method
should throw an UnsupportedOperationException
.
java.lang.Boolean valueAsBoolean()
ParameterType.BOOLEAN
, this method
should throw an UnsupportedOperationException
.
java.lang.Number valueAsNumber()
ParameterType.NUMBER
, this method
should throw an UnsupportedOperationException
.
java.util.Date valueAsDate()
ParameterType.DATE
, ParameterType.TIME
or ParameterType.DATE_TIME
, this method should throw an
UnsupportedOperationException
.
PluginDescriptor valueAsPluginDescriptor()
ParameterType.PLUGIN_ID
, this
method should throw an UnsupportedOperationException
.
ExtensionPoint valueAsExtensionPoint()
ParameterType.EXTENSION_POINT_ID
,
this method should throw an UnsupportedOperationException
.
Extension valueAsExtension()
ParameterType.EXTENSION_ID
, this
method should throw an UnsupportedOperationException
.
java.net.URL valueAsUrl()
ParameterType.RESOURCE
, this
method should throw an UnsupportedOperationException
.
java.net.URL valueAsUrl(PathResolver pathResolver)
ParameterType.RESOURCE
, this
method should throw an UnsupportedOperationException
.
pathResolver
- path resolver to make URL absolute
|
JPF 1.5.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |