net.sourceforge.fluxion.runcible.impl
Class MappingImpl

java.lang.Object
  extended by net.sourceforge.fluxion.runcible.impl.MappingImpl
All Implemented Interfaces:
Mapping

public class MappingImpl
extends java.lang.Object
implements Mapping

Javadocs go here.

Version:
1.0
Author:
Tony Burdett

Constructor Summary
MappingImpl()
           
 
Method Summary
 void addRule(Rule rule)
          Add a Rule to this Mapping
 void deregisterMappingListener(MappingListener listener)
          Removes a MappingListener from this Mapping.
 Rule findBoundVariable(java.lang.String boundVariableID)
          Locate a rule within this Mapping with the bound data variable, using the given bound variable ID.
 Rule findRule(java.lang.String variableID)
          Locate a rule within this Mapping with the a "forall" statement with the given variable ID.
 java.util.Set<Rule> getRules()
          Returns the Set of Rules that make up this mapping.
 java.net.URI getSourceOntologyURI()
          Get the URI of the source ontology.
 java.net.URI getTargetOntologyURI()
          Get the URI of the target ontology.
 void registerMappingListener(MappingListener listener)
          Adds a MappingListener to this Mapping.
 void removeRule(Rule rule)
          Remove a rule from this mapping
 void setSourceOntologyURI(java.net.URI sourceURI)
          Set the URI of the source ontology for this mapping.
 void setTargetOntologyURI(java.net.URI targetURI)
          Set the URI of the target ontology for this mapping.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappingImpl

public MappingImpl()
Method Detail

setSourceOntologyURI

public void setSourceOntologyURI(java.net.URI sourceURI)
Description copied from interface: Mapping
Set the URI of the source ontology for this mapping.

Specified by:
setSourceOntologyURI in interface Mapping
Parameters:
sourceURI - the URI of the source ontology

getSourceOntologyURI

public java.net.URI getSourceOntologyURI()
Description copied from interface: Mapping
Get the URI of the source ontology.

Specified by:
getSourceOntologyURI in interface Mapping
Returns:
the source ontology uri

setTargetOntologyURI

public void setTargetOntologyURI(java.net.URI targetURI)
Description copied from interface: Mapping
Set the URI of the target ontology for this mapping.

Specified by:
setTargetOntologyURI in interface Mapping
Parameters:
targetURI - the URI of the target ontology

getTargetOntologyURI

public java.net.URI getTargetOntologyURI()
Description copied from interface: Mapping
Get the URI of the target ontology.

Specified by:
getTargetOntologyURI in interface Mapping
Returns:
the target ontology uri

addRule

public void addRule(Rule rule)
Description copied from interface: Mapping
Add a Rule to this Mapping

Specified by:
addRule in interface Mapping
Parameters:
rule - the Rule to add

getRules

public java.util.Set<Rule> getRules()
Description copied from interface: Mapping
Returns the Set of Rules that make up this mapping.

Specified by:
getRules in interface Mapping
Returns:
the set of Rules making up this mapping

removeRule

public void removeRule(Rule rule)
Description copied from interface: Mapping
Remove a rule from this mapping

Specified by:
removeRule in interface Mapping
Parameters:
rule - the Rule to remove

registerMappingListener

public void registerMappingListener(MappingListener listener)
Description copied from interface: Mapping
Adds a MappingListener to this Mapping.

Specified by:
registerMappingListener in interface Mapping
Parameters:
listener - a MappingListener to register to this Mapping

deregisterMappingListener

public void deregisterMappingListener(MappingListener listener)
Description copied from interface: Mapping
Removes a MappingListener from this Mapping.

Specified by:
deregisterMappingListener in interface Mapping
Parameters:
listener - the MappingListener to deregister from this Mapping

findRule

public Rule findRule(java.lang.String variableID)
Description copied from interface: Mapping
Locate a rule within this Mapping with the a "forall" statement with the given variable ID. This will walk all rules in this mapping until it locates a rule with a forall statement which declares this variable ID, and if found will return the rule. If there is no rule with this ID, null is returned.

Specified by:
findRule in interface Mapping
Parameters:
variableID - the variable ID of the forall statement in the Rule we wish to locate
Returns:
the Rule containing this forall ID

findBoundVariable

public Rule findBoundVariable(java.lang.String boundVariableID)
Description copied from interface: Mapping
Locate a rule within this Mapping with the bound data variable, using the given bound variable ID. This will walk all rules in this mapping until it locates a rule with a DataClause about the given bound variable ID, and if found will return it. If there is no rule with this ID, null is returned.

Specified by:
findBoundVariable in interface Mapping
Parameters:
boundVariableID - the variable ID of a dataclause within the Rule being located
Returns:
the Rule which contains a dataclause with this variable ID.


Copyright © 2010. All Rights Reserved.