org.modeldriven.fuml.xmi
Class ModelSupport

java.lang.Object
  extended by org.modeldriven.fuml.xmi.ModelSupport

public class ModelSupport
extends Object

Stateless model-related logic delegate class. Handles metadata related logic specific for the the XMI package or it's sub-packages.

Author:
Scott Cinnamond

Constructor Summary
ModelSupport()
           
 
Method Summary
 Classifier findClassifier(XmiNode target)
           
 Classifier findClassifier(XmiNode target, Class_ sourceClassifier)
           
 boolean isExternalReferenceElement(XmiNode node, Classifier classifier, boolean hasAttributes)
          If not a primitive type and we have an href attrib (??).
 boolean isInternalReferenceElement(XmiNode node, Classifier classifier, boolean hasAttributes)
          Returns true if an element is not a primitive type and it has characters or an ideref XMI attribute.
 boolean isPrimitiveTypeElement(XmiNode node, Classifier classifier, boolean hasAttributes)
           
 boolean isReferenceAttribute(Property property)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelSupport

public ModelSupport()
Method Detail

findClassifier

public Classifier findClassifier(XmiNode target)

findClassifier

public Classifier findClassifier(XmiNode target,
                                 Class_ sourceClassifier)

isPrimitiveTypeElement

public boolean isPrimitiveTypeElement(XmiNode node,
                                      Classifier classifier,
                                      boolean hasAttributes)

isInternalReferenceElement

public boolean isInternalReferenceElement(XmiNode node,
                                          Classifier classifier,
                                          boolean hasAttributes)
Returns true if an element is not a primitive type and it has characters or an ideref XMI attribute. This constitutes an internal reference element.

Parameters:
node -
classifier -
hasAttributes -
Returns:

isExternalReferenceElement

public boolean isExternalReferenceElement(XmiNode node,
                                          Classifier classifier,
                                          boolean hasAttributes)
If not a primitive type and we have an href attrib (??).

Parameters:
node -
classifier -
hasAttributes -
Returns:

isReferenceAttribute

public boolean isReferenceAttribute(Property property)


Copyright © 2012. All Rights Reserved.