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
           
 
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()
           
 int hashCode()
           
protected  TripleImpl property(String property, Object value)
           
protected  TripleImpl propertyKey(Object property)
           
protected  TripleImpl propertyKey(String property)
           
 void readExternal(ObjectInput in)
           
protected  void setFields(Map<String,Object> m)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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 TripleImpl propertyKey(String property)

property

protected TripleImpl property(String property,
                              Object value)

propertyKey

protected TripleImpl propertyKey(Object property)


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