org.drools.factmodel.traits
Class TraitProxy

java.lang.Object
  extended by org.drools.factmodel.traits.TraitProxy
All Implemented Interfaces:
Externalizable, Serializable

public abstract class TraitProxy
extends Object
implements Externalizable

See Also:
Serialized Form

Field Summary
protected  Map<String,Object> fields
           
protected  TripleFactory tripleFactory
           
 
Constructor Summary
TraitProxy()
           
 
Method Summary
static Map.Entry<String,Object> buildEntry(String k, Object v)
           
 boolean equals(Object o)
           
 Map<String,Object> getFields()
           
abstract  Object getObject()
           
 TripleFactory getTripleFactory()
           
 int hashCode()
           
protected  Triple property(String property, Object value)
           
protected  Triple propertyKey(Object property)
           
protected  Triple propertyKey(String property)
           
 void readExternal(ObjectInput in)
           
protected  void setFields(Map<String,Object> m)
           
 void setTripleFactory(TripleFactory tripleFactory)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tripleFactory

protected TripleFactory tripleFactory

fields

protected Map<String,Object> fields
Constructor Detail

TraitProxy

public TraitProxy()
Method Detail

getFields

public Map<String,Object> getFields()

setFields

protected void setFields(Map<String,Object> m)

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

buildEntry

public static Map.Entry<String,Object> buildEntry(String k,
                                                  Object v)

getObject

public abstract Object getObject()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

propertyKey

protected Triple propertyKey(String property)

property

protected Triple property(String property,
                          Object value)

propertyKey

protected Triple propertyKey(Object property)

getTripleFactory

public TripleFactory getTripleFactory()

setTripleFactory

public void setTripleFactory(TripleFactory tripleFactory)


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.