org.drools.factmodel.traits
Class TripleBasedStruct

java.lang.Object
  extended by org.drools.factmodel.traits.TripleBasedStruct
All Implemented Interfaces:
Externalizable, Serializable, Map<String,Object>
Direct Known Subclasses:
TripleBasedBean, TripleBasedTypes

public abstract class TripleBasedStruct
extends Object
implements Map<String,Object>, Externalizable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
protected  TripleStore store
           
protected  String storeId
           
 
Constructor Summary
TripleBasedStruct()
           
 
Method Summary
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 Set<Map.Entry<String,Object>> entrySet()
           
 boolean equals(Object o)
           
 Object get(Object key)
           
protected abstract  Object getObject()
           
protected  Collection<Triple> getTriplesForSubject(Object subj)
           
 boolean isEmpty()
           
 Set<String> keySet()
           
protected  TripleImpl property(String property, Object value)
           
protected  TripleImpl propertyKey(Object property)
           
protected  TripleImpl propertyKey(String property)
           
 Object put(String key, Object value)
           
 void putAll(Map<? extends String,? extends Object> m)
           
 void readExternal(ObjectInput in)
           
 Object remove(Object key)
           
protected abstract  void setObject(Object o)
           
 int size()
           
 String toString()
           
 Collection<Object> values()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
hashCode
 

Field Detail

store

protected transient TripleStore store

storeId

protected String storeId
Constructor Detail

TripleBasedStruct

public TripleBasedStruct()
Method Detail

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

propertyKey

protected TripleImpl propertyKey(Object property)

propertyKey

protected TripleImpl propertyKey(String property)

property

protected TripleImpl property(String property,
                              Object value)

size

public int size()
Specified by:
size in interface Map<String,Object>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<String,Object>

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map<String,Object>

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map<String,Object>

get

public Object get(Object key)
Specified by:
get in interface Map<String,Object>

put

public Object put(String key,
                  Object value)
Specified by:
put in interface Map<String,Object>

remove

public Object remove(Object key)
Specified by:
remove in interface Map<String,Object>

clear

public void clear()
Specified by:
clear in interface Map<String,Object>

putAll

public void putAll(Map<? extends String,? extends Object> m)
Specified by:
putAll in interface Map<String,Object>

keySet

public Set<String> keySet()
Specified by:
keySet in interface Map<String,Object>

values

public Collection<Object> values()
Specified by:
values in interface Map<String,Object>

entrySet

public Set<Map.Entry<String,Object>> entrySet()
Specified by:
entrySet in interface Map<String,Object>

equals

public boolean equals(Object o)
Specified by:
equals in interface Map<String,Object>
Overrides:
equals in class Object

getTriplesForSubject

protected Collection<Triple> getTriplesForSubject(Object subj)

getObject

protected abstract Object getObject()

setObject

protected abstract void setObject(Object o)

toString

public String toString()
Overrides:
toString in class Object


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