ua.gradsoft.termware
Interface Attributed

All Known Implementing Classes:
AttributedTerm, NodeTerm, NTerm

public interface Attributed

Interface for entities, which can holds attributes.

Author:
Ruslan Shevchenko

Method Summary
 Term getAttribute(String name)
          get attribute with name name .
 Map<String,Term> getAttributes()
          return map, where keys are attribute names, value - values of attributes.
 void setAttribute(String name, Term value)
          set attribute with name name and value value .
 

Method Detail

setAttribute

void setAttribute(String name,
                  Term value)
set attribute with name name and value value . If value is NIL, then attribute is erased from set.


getAttribute

Term getAttribute(String name)
get attribute with name name . When such attribute does not exists -- return NIL.


getAttributes

Map<String,Term> getAttributes()
return map, where keys are attribute names, value - values of attributes.