org.chromattic.metamodel.mapping
Class AttributeMapping

java.lang.Object
  extended by org.chromattic.metamodel.mapping.PropertyMapping<SingleValuedPropertyInfo<SimpleValueInfo>,SimpleValueInfo>
      extended by org.chromattic.metamodel.mapping.AttributeMapping

public class AttributeMapping
extends PropertyMapping<SingleValuedPropertyInfo<SimpleValueInfo>,SimpleValueInfo>

Version:
$Revision$
Author:
Julien Viet

Constructor Summary
AttributeMapping(SingleValuedPropertyInfo<SimpleValueInfo> property, NodeAttributeType type)
           
 
Method Summary
 void accept(MappingVisitor visitor)
           
 NodeAttributeType getType()
           
 boolean isTypeCovariant()
          Returns true if the property type is covariant, meaning that it redefines the type from an ancestor with a subclass.
 
Methods inherited from class org.chromattic.metamodel.mapping.PropertyMapping
getName, getOwner, getParent, getProperty, getValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeMapping

public AttributeMapping(SingleValuedPropertyInfo<SimpleValueInfo> property,
                        NodeAttributeType type)
Method Detail

isTypeCovariant

public boolean isTypeCovariant()
Description copied from class: PropertyMapping
Returns true if the property type is covariant, meaning that it redefines the type from an ancestor with a subclass.

Specified by:
isTypeCovariant in class PropertyMapping<SingleValuedPropertyInfo<SimpleValueInfo>,SimpleValueInfo>
Returns:
true if the property is type covariant

getType

public NodeAttributeType getType()

accept

public void accept(MappingVisitor visitor)
Specified by:
accept in class PropertyMapping<SingleValuedPropertyInfo<SimpleValueInfo>,SimpleValueInfo>


Copyright © 2011 eXo Platform SAS. All Rights Reserved.