org.milyn.ect.ecore
Interface SmooksMetadata


public interface SmooksMetadata

Interface to access Smooks-related EMF Annotations

Author:
zubairov

Field Summary
static java.lang.String ANNOTATION_TYPE
           
static java.lang.String ANNOTATION_TYPE_KEY
           
static java.lang.String COMPONENT_TYPE
           
static java.lang.String FIELD_TYPE
           
static SmooksMetadata INSTANCE
          SINGLETON instance
static java.lang.String SEGCODE
           
static java.lang.String SEGMENT_GROUP_TYPE
           
static java.lang.String SEGMENT_TYPE
           
 
Method Summary
 java.lang.String getSegcode(org.eclipse.emf.ecore.EModelElement element)
          Return segcode or throws IllegalArgumentException
 org.eclipse.emf.ecore.EAnnotation getSmooksAnnotation(org.eclipse.emf.ecore.EModelElement element)
          Returns EAnnotation or throws IllegalArgumentException
 boolean isComponent(org.eclipse.emf.ecore.EModelElement feature)
          Returns true of false or throws IllegalArgumentException
 boolean isField(org.eclipse.emf.ecore.EModelElement element)
          Returns true or false or throws IllegalArgumentException
 boolean isSegment(org.eclipse.emf.ecore.EModelElement element)
          Returns true if given EModelElement annotated as segment
 boolean isSegmentGroup(org.eclipse.emf.ecore.EModelElement element)
          Returns true if given EModelElement has annotation type group
 

Field Detail

ANNOTATION_TYPE

static final java.lang.String ANNOTATION_TYPE
See Also:
Constant Field Values

SEGMENT_TYPE

static final java.lang.String SEGMENT_TYPE
See Also:
Constant Field Values

SEGMENT_GROUP_TYPE

static final java.lang.String SEGMENT_GROUP_TYPE
See Also:
Constant Field Values

FIELD_TYPE

static final java.lang.String FIELD_TYPE
See Also:
Constant Field Values

COMPONENT_TYPE

static final java.lang.String COMPONENT_TYPE
See Also:
Constant Field Values

ANNOTATION_TYPE_KEY

static final java.lang.String ANNOTATION_TYPE_KEY
See Also:
Constant Field Values

SEGCODE

static final java.lang.String SEGCODE
See Also:
Constant Field Values

INSTANCE

static final SmooksMetadata INSTANCE
SINGLETON instance

Method Detail

getSmooksAnnotation

org.eclipse.emf.ecore.EAnnotation getSmooksAnnotation(org.eclipse.emf.ecore.EModelElement element)
Returns EAnnotation or throws IllegalArgumentException

Parameters:
element -
Returns:

isSegment

boolean isSegment(org.eclipse.emf.ecore.EModelElement element)
Returns true if given EModelElement annotated as segment

Parameters:
element -
Returns:

getSegcode

java.lang.String getSegcode(org.eclipse.emf.ecore.EModelElement element)
Return segcode or throws IllegalArgumentException

Parameters:
feature -
Returns:

isSegmentGroup

boolean isSegmentGroup(org.eclipse.emf.ecore.EModelElement element)
Returns true if given EModelElement has annotation type group

Parameters:
feature -
Returns:

isField

boolean isField(org.eclipse.emf.ecore.EModelElement element)
Returns true or false or throws IllegalArgumentException

Parameters:
element -
Returns:

isComponent

boolean isComponent(org.eclipse.emf.ecore.EModelElement feature)
Returns true of false or throws IllegalArgumentException

Parameters:
feature -
Returns:


Copyright © 2011. All Rights Reserved.