public class TemplateUtil extends Object
| Constructor and Description |
|---|
TemplateUtil() |
| Modifier and Type | Method and Description |
|---|---|
String |
toString(Object object)
Formats and object to a String as it is shown in requirements and capabilities.
|
String |
translateClauseMap(Map<String,Object> clauseMap,
String equalExpr)
Converts a clause Map (Attributes or Directives) to its
String representation. |
String |
translateStateMask(int stateMask)
Translates a Bundle stateMask to a human readable format.
|
public String toString(Object object)
Requirement or a Capability.public String translateClauseMap(Map<String,Object> clauseMap, String equalExpr)
String representation.clauseMap - Attributes or directives of the clause.equalExpr - In case of directives this should be ':=', while in case of attributes it should be a
simple '='.String representation of clauseMap.public String translateStateMask(int stateMask)
Bundle.RESOLVED,
Bundle.STARTING, Bundle.ACTIVE and Bundle.STOPPING states are
translated.stateMask - The stateMask of the Bundle.String representation of the stateMask. E.g.: 'RESOLVED, STARTING'.Copyright © 2011–2015 Everit Kft.. All rights reserved.