org.chromattic.metamodel.mapping
Class ValueMapping<K extends ValueKind>

java.lang.Object
  extended by org.chromattic.metamodel.mapping.PropertyMapping<PropertyInfo<SimpleValueInfo<K>,ValueKind.Single>,SimpleValueInfo<K>,ValueKind.Single>
      extended by org.chromattic.metamodel.mapping.ValueMapping<K>

public class ValueMapping<K extends ValueKind>
extends PropertyMapping<PropertyInfo<SimpleValueInfo<K>,ValueKind.Single>,SimpleValueInfo<K>,ValueKind.Single>

Version:
$Revision$
Author:
Julien Viet

Constructor Summary
ValueMapping(PropertyInfo<SimpleValueInfo<K>,ValueKind.Single> property, PropertyDefinitionMapping propertyDefinition)
           
 
Method Summary
 void accept(MappingVisitor visitor)
           
 PropertyDefinitionMapping<?> getPropertyDefinition()
           
 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

ValueMapping

public ValueMapping(PropertyInfo<SimpleValueInfo<K>,ValueKind.Single> property,
                    PropertyDefinitionMapping propertyDefinition)
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<PropertyInfo<SimpleValueInfo<K extends ValueKind>,ValueKind.Single>,SimpleValueInfo<K extends ValueKind>,ValueKind.Single>
Returns:
true if the property is type covariant

getPropertyDefinition

public PropertyDefinitionMapping<?> getPropertyDefinition()

accept

public void accept(MappingVisitor visitor)
Specified by:
accept in class PropertyMapping<PropertyInfo<SimpleValueInfo<K extends ValueKind>,ValueKind.Single>,SimpleValueInfo<K extends ValueKind>,ValueKind.Single>


Copyright © 2011 eXo Platform SAS. All Rights Reserved.