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:
java.io.Serializable,java.lang.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, java.lang.Class<T> klass, java.lang.String name)ToOnePropertyLiteral(int index, java.lang.String name, java.net.URI key)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description OneValuedMetaProperty<T,R>asFunctionalProperty()ManyValuedMetaProperty<T,R,java.util.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 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
-
-
-
-
Constructor Detail
-
ToOnePropertyLiteral
public ToOnePropertyLiteral(int index, java.lang.Class<T> klass, java.lang.String name)
-
ToOnePropertyLiteral
public ToOnePropertyLiteral(int index, java.lang.String name, java.net.URI key)
-
-
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()
-
-