Package org.drools.traits.core.metadata
Class ToOnePropertyLiteral<T,R>
- java.lang.Object
-
- org.drools.traits.core.metadata.PropertyLiteral<T,R,R>
-
- org.drools.traits.core.metadata.ToOnePropertyLiteral<T,R>
-
- All Implemented Interfaces:
Serializable,Comparable<org.drools.traits.core.metadata.MetaProperty<T,R,R>>,Identifiable,org.drools.traits.core.metadata.MetaProperty<T,R,R>,OneValuedMetaProperty<T,R>
- Direct Known Subclasses:
ManyToOnePropertyLiteral,OneToOnePropertyLiteral
public abstract class ToOnePropertyLiteral<T,R> extends PropertyLiteral<T,R,R> implements OneValuedMetaProperty<T,R>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ToOnePropertyLiteral(int index, Class<T> klass, String name)ToOnePropertyLiteral(int index, String name, URI key)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description OneValuedMetaProperty<T,R>asFunctionalProperty()ManyValuedMetaProperty<T,R,Collection<R>>asManyValuedProperty()booleanisManyValued()abstract voidset(T object, R value)voidset(T object, R value, Lit lit)-
Methods inherited from class org.drools.traits.core.metadata.PropertyLiteral
compareTo, equals, getId, getIndex, getKey, getName, getUri, hashCode, isDatatype
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface org.drools.traits.core.metadata.Identifiable
getId, getUri
-
Methods inherited from interface org.drools.traits.core.metadata.MetaProperty
getIndex, getKey, getName, isDatatype
-
Methods inherited from interface org.drools.traits.core.metadata.OneValuedMetaProperty
get
-
-
-
-
Method Detail
-
set
public abstract void set(T object, R value)
- Specified by:
setin interfaceOneValuedMetaProperty<T,R>
-
set
public void set(T object, R value, Lit lit)
- Specified by:
setin interfaceOneValuedMetaProperty<T,R>
-
isManyValued
public boolean isManyValued()
-
asFunctionalProperty
public OneValuedMetaProperty<T,R> asFunctionalProperty()
-
asManyValuedProperty
public ManyValuedMetaProperty<T,R,Collection<R>> asManyValuedProperty()
-
-