EGF Engine
Release 0.1.0

org.eclipse.egf.common.descriptor.pattern.helper
Class PatternDescriptorStrategy

java.lang.Object
  extended by org.eclipse.egf.common.descriptor.pattern.helper.PatternDescriptorStrategy

public class PatternDescriptorStrategy
extends Object

Pattern descriptor various strategies implementation.


Constructor Summary
PatternDescriptorStrategy()
           
 
Method Summary
static String getDescriptorFullId(IDescriptor descriptor_p)
          Get full id for given library/pattern descriptor.
protected  void handlePatternExtensionDescriptor(IPatternDescriptorHandler handler_p, IDescriptor descriptor_p, String idPrefix_p)
          Handler descriptor for a pattern extension (extension point patternExtension).
 void iterateThroughPatternExtensionDescriptor(IPatternDescriptorHandler handler_p, IDescriptor descriptor_p)
          Iterate through descriptors starting from given parent one.
static void retainRootOnly(GenericDescriptor rootDescriptor_p, IDescriptor childContainer_p)
          Handle root descriptor content by retaining only root libraries.
protected  boolean stopSearch(IDescriptor parentDescriptor_p)
          Should search be stopped for potential children of given descriptor ?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PatternDescriptorStrategy

public PatternDescriptorStrategy()
Method Detail

iterateThroughPatternExtensionDescriptor

public void iterateThroughPatternExtensionDescriptor(IPatternDescriptorHandler handler_p,
                                                     IDescriptor descriptor_p)
Iterate through descriptors starting from given parent one.

Parameters:
handler_p -
descriptor_p -

handlePatternExtensionDescriptor

protected void handlePatternExtensionDescriptor(IPatternDescriptorHandler handler_p,
                                                IDescriptor descriptor_p,
                                                String idPrefix_p)
Handler descriptor for a pattern extension (extension point patternExtension).

Parameters:
handler_p -
descriptor_p -
idPrefix_p -

stopSearch

protected boolean stopSearch(IDescriptor parentDescriptor_p)
Should search be stopped for potential children of given descriptor ?

Parameters:
parentDescriptor_p -
Returns:
true if search should be interrupted, false if it should continue. Default implementation does return false, that is, search is never interrupted for given branch.

retainRootOnly

public static void retainRootOnly(GenericDescriptor rootDescriptor_p,
                                  IDescriptor childContainer_p)
Handle root descriptor content by retaining only root libraries.

Parameters:
rootDescriptor_p -
childContainer_p -

getDescriptorFullId

public static String getDescriptorFullId(IDescriptor descriptor_p)
Get full id for given library/pattern descriptor.

Parameters:
descriptor_p -
Returns:

EGF Engine
Release 0.1.0

Copyright (c) Thales Corporate Services S.A.S, 2009.

This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.