org.modeldriven.fuml.xmi
Class AbstractXmiNodeVisitor

java.lang.Object
  extended by org.modeldriven.fuml.xmi.AbstractXmiNodeVisitor
Direct Known Subclasses:
ElementGraphAssembler, ValidationErrorCollector

public abstract class AbstractXmiNodeVisitor
extends Object

General XMINodeVisitor implementation superclass encapsulating common structure and logic across both XMI validation and target structure assembly processing.

Author:
Scott Cinnamond

Field Summary
protected  Map<XmiNode,Classifier> classifierMap
           
protected  ModelSupport modelSupport
           
protected  Map<String,XmiNode> nodeMap
           
protected  List<XmiReference> references
           
protected  XmiNode xmiRoot
           
 
Constructor Summary
protected AbstractXmiNodeVisitor()
           
protected AbstractXmiNodeVisitor(XmiNode root)
           
 
Method Summary
protected  Attribute findAttribute(StreamNode node, String localName)
          Deprecated. 
protected  Classifier findClassifier(XmiNode target, XmiNode source)
           
protected  Classifier findClassifierFromImportAdapter(XmiNode target)
           
protected  boolean isAbstract(Classifier classifier)
           
protected  boolean isExternalReferenceElement(XmiNode node, Classifier classifier, boolean hasAttributes)
           
protected  boolean isInternalReferenceElement(XmiNode node, Classifier classifier, boolean hasAttributes)
           
protected  boolean isPrimitiveTypeElement(XmiNode node, Classifier classifier, boolean hasAttributes)
           
protected  boolean isReferenceAttribute(Property property)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xmiRoot

protected XmiNode xmiRoot

modelSupport

protected ModelSupport modelSupport

classifierMap

protected Map<XmiNode,Classifier> classifierMap

nodeMap

protected Map<String,XmiNode> nodeMap

references

protected List<XmiReference> references
Constructor Detail

AbstractXmiNodeVisitor

protected AbstractXmiNodeVisitor()

AbstractXmiNodeVisitor

protected AbstractXmiNodeVisitor(XmiNode root)
Method Detail

findClassifier

protected Classifier findClassifier(XmiNode target,
                                    XmiNode source)

findClassifierFromImportAdapter

protected Classifier findClassifierFromImportAdapter(XmiNode target)

isPrimitiveTypeElement

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

isInternalReferenceElement

protected boolean isInternalReferenceElement(XmiNode node,
                                             Classifier classifier,
                                             boolean hasAttributes)

isExternalReferenceElement

protected boolean isExternalReferenceElement(XmiNode node,
                                             Classifier classifier,
                                             boolean hasAttributes)

isAbstract

protected boolean isAbstract(Classifier classifier)

isReferenceAttribute

protected boolean isReferenceAttribute(Property property)

findAttribute

@Deprecated
protected Attribute findAttribute(StreamNode node,
                                             String localName)
Deprecated. 



Copyright © 2014. All rights reserved.