Package org.drools.traits.core.metadata
Class MetadataContainer<T extends Metadatable>
- java.lang.Object
-
- org.drools.traits.core.metadata.MetadataContainer<T>
-
- All Implemented Interfaces:
Serializable
public abstract class MetadataContainer<T extends Metadatable> extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected MetaClassmetaClassInfoprotected Ttarget
-
Constructor Summary
Constructors Constructor Description MetadataContainer(T metadatableObject)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static StringcreateObjectIdentifier(Object target)protected static StringcreateObjectIdentifier(String classUri, Object target)static URIgetIdentifier(Object object)MetaClass<T>getMetaClassInfo()protected <T,R>
org.drools.traits.core.metadata.MetaPropertygetProperty(int index)protected <T,R>
org.drools.traits.core.metadata.MetaProperty<T,R,?>getProperty(String name)protected TgetTarget()List<org.drools.traits.core.metadata.MetaProperty<T,?,?>>properties()String[]propertyNames()voidsetTarget(T target)
-
-
-
Field Detail
-
target
protected transient T extends Metadatable target
-
metaClassInfo
protected MetaClass metaClassInfo
-
-
Constructor Detail
-
MetadataContainer
public MetadataContainer(T metadatableObject)
-
-
Method Detail
-
getTarget
protected T getTarget()
-
setTarget
public void setTarget(T target)
-
propertyNames
public String[] propertyNames()
-
getProperty
protected <T,R> org.drools.traits.core.metadata.MetaProperty<T,R,?> getProperty(String name)
-
getProperty
protected <T,R> org.drools.traits.core.metadata.MetaProperty getProperty(int index)
-
-