EGF Engine
Release 0.1.0

org.eclipse.egf.common.helper
Class PatternLibrarySequenceHelper

java.lang.Object
  extended by org.eclipse.egf.common.helper.PatternLibrarySequenceHelper

public class PatternLibrarySequenceHelper
extends Object


Field Summary
static String SEQUENCE_SEPARATORS
          Pattern library sequence separators.
 
Constructor Summary
PatternLibrarySequenceHelper()
           
 
Method Summary
static List<String> extractSequenceIds(String fullSequence_p)
          Extract sequence ids from sequence serialized form (also called a full sequence).
static String getFullSequence(List<String> ids_p)
          Get full sequence from composing ids.
static String removeIdFromSequence(String fullSequence_p, String id_p)
          Remove all given id occurrences in given sequence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEQUENCE_SEPARATORS

public static final String SEQUENCE_SEPARATORS
Pattern library sequence separators.

See Also:
Constant Field Values
Constructor Detail

PatternLibrarySequenceHelper

public PatternLibrarySequenceHelper()
Method Detail

getFullSequence

public static String getFullSequence(List<String> ids_p)
Get full sequence from composing ids.

Parameters:
ids_p -
Returns:
empty string if provided list is null or empty.

extractSequenceIds

public static List<String> extractSequenceIds(String fullSequence_p)
Extract sequence ids from sequence serialized form (also called a full sequence).

Parameters:
fullSequence_p -
Returns:
Empty list if given sequence is null or a singleton list with given full sequence if it is not a valid one.

removeIdFromSequence

public static String removeIdFromSequence(String fullSequence_p,
                                          String id_p)
Remove all given id occurrences in given sequence.

Parameters:
fullSequence_p -
id_p -
Returns:
Given sequence if it does not contain any id, or id could not be found, or it is not a valid sequence.

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.