Class BasicPostProcessorDescriptorImpl
java.lang.Object
org.eclipse.emf.compare.postprocessor.BasicPostProcessorDescriptorImpl
- All Implemented Interfaces:
IPostProcessor.Descriptor
A simple implementation of
IPostProcessor.Descriptor that will delegate its method implementation to values given
to its constructor.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.emf.compare.postprocessor.IPostProcessor.Descriptor
IPostProcessor.Descriptor.Registry<K> -
Constructor Summary
ConstructorsConstructorDescriptionBasicPostProcessorDescriptorImpl(IPostProcessor postProcessor, Pattern nsURI, Pattern resourceURI) Constructs a new descriptor with the given value. -
Method Summary
Modifier and TypeMethodDescriptionReturns the class name of the instance that will be returned byIPostProcessor.Descriptor.getPostProcessor().getNsURI()Returns the pattern of namespace URI on which this post processor can be applied.intReturns the ordinal of this post processor.Returns the wrapped post processor.Returns the pattern of resource URI on which this post processor can be applied.voidsetOrdinal(int parseInt) Set the ordinal of this post processor.
-
Constructor Details
-
BasicPostProcessorDescriptorImpl
public BasicPostProcessorDescriptorImpl(IPostProcessor postProcessor, Pattern nsURI, Pattern resourceURI) Constructs a new descriptor with the given value.- Parameters:
postProcessor- the described post processornsURI- The nsURI pattern on which the described post processor applied to. May benull.resourceURI- The resourceURI pattern on which the described post processor applied to. May benull
-
-
Method Details
-
getNsURI
Returns the pattern of namespace URI on which this post processor can be applied.- Specified by:
getNsURIin interfaceIPostProcessor.Descriptor- Returns:
- The namespace URI pattern.
- See Also:
-
getResourceURI
Returns the pattern of resource URI on which this post processor can be applied.- Specified by:
getResourceURIin interfaceIPostProcessor.Descriptor- Returns:
- The resource URI.
- See Also:
-
getInstanceClassName
Returns the class name of the instance that will be returned byIPostProcessor.Descriptor.getPostProcessor().- Specified by:
getInstanceClassNamein interfaceIPostProcessor.Descriptor- Returns:
- the class name of the instance that will be returned by
IPostProcessor.Descriptor.getPostProcessor(). - See Also:
-
getPostProcessor
Returns the wrapped post processor.- Specified by:
getPostProcessorin interfaceIPostProcessor.Descriptor- Returns:
- the wrapped post processor
- See Also:
-
getOrdinal
public int getOrdinal()Returns the ordinal of this post processor.- Specified by:
getOrdinalin interfaceIPostProcessor.Descriptor- Returns:
- The ordinal.
- See Also:
-
setOrdinal
public void setOrdinal(int parseInt) Set the ordinal of this post processor.- Specified by:
setOrdinalin interfaceIPostProcessor.Descriptor- Parameters:
parseInt- The ordinal.- See Also:
-