lets import the parser

    >>> import xmiparser

we load and parse the UML file

    >>> model = xmiparser.parse('../doc/umlsample.zargo')
    >>> model.getClasses()
    [<XMIClass Person>, <XMIClass Company>, <XMIAssociationClass WorksFor>]

    >>> person=model.getClasses()[0]
    >>> person.getAttributeNames()
    ['firstname', 'lastname']

    >>> person.getAttributeDefs()
    [<XMIAttribute firstname>, <XMIAttribute lastname>]

    >>> firstname=person.getAttributeDefs()[0]
    >>> firstname.getType()
    'string'

    >>> firstname.getName()
    'firstname'
    
    >>> assocs=person.getFromAssociations()
    >>> assoc=assocs[0]
    >>> print assocs
    [<XMIAssociationClass WorksFor>]

the from end of this assoc has multiplicity 0..*
    >>> assoc.fromEnd.mult
    (0, -1)

get the target class for all associations
    >>> targets=[ass.toEnd.getTarget() for ass in person.getFromAssociations()]
    >>> print targets
    [<XMIClass Company>]


