org.openanzo.jastor.ant
Class JastorTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.tools.ant.taskdefs.MatchingTask
              extended by org.openanzo.jastor.ant.JastorTask
All Implemented Interfaces:
org.apache.tools.ant.types.selectors.SelectorContainer

public class JastorTask
extends org.apache.tools.ant.taskdefs.MatchingTask

Author:
Ben Szekely ( bhszekel@us.ibm.com ), Elias Torres ( eliast@us.ibm.com )

Constructor Summary
JastorTask()
           
 
Method Summary
 void addBaseTypes(BaseTypesElement baseTypeElement)
          Add a BaseTypesElement to this task
 void addCustomThing(CustomThingElement thing)
          Add a custom thing to this task
 void addOntology(OntologyElement ont)
          Add an ontologyElement to this task
 void addPrefix(PrefixElement tmp)
          Add a prefix element to this task
 void addTemplate(TemplateElement tmp)
          Add template to this task
 void execute()
           
 BaseTypesElement getBaseTypes()
          Get the base types for this task
 CustomThingElement getCustomThing()
          Get the custom thing for this task
 java.io.File getDestdir()
          Get the destination directory for this task
 java.util.List<OntologyElement> getOntologies()
          Get the OntologyElements for this task
 boolean isAddAllRDFTypesInHierarchy()
          Get if all RDF types should be added to a classes hierarchy
 boolean isGenerateCacheInFactory()
          Return true if a cache should be created in the factory
 boolean isGenerateListeners()
          Return true if listeners should be generated for the jastor objects
 boolean isGeneratePropertyCache()
          Return true if there should be property caches for the jastor objects
 boolean isGenerateStandardCode()
          Get if task should generate standard code
 boolean isGenerateVocublaryOnly()
          Return true if the jastor objects should only be vocabulary files
 boolean isThingExtendsResource()
          Get if Thing should extend Resource
 boolean isUseEntireURIForIdentifiers()
          Get if this task should use the entire URI for identifiers
 boolean isUsePackageNamesForRestrictedRanges()
          Get if this task should use package names for restricted ranges
 boolean isUseStrictTypeChecking()
          Get if this task should use strict type checking
 boolean isUseTypedLiterals()
          Get if task should use typed literals
 void setAddAllRDFTypesInHierarchy(boolean addAllRDFTypesInHierarchy)
          Set if all RDF types should be added to a classes hierarchy
 void setDestdir(java.io.File destdir)
          Set the destination directory for this task
 void setGenerateCacheInFactory(boolean generateCacheInFactory)
          Set if a cache should be created in the factory
 void setGenerateListeners(boolean generateListeners)
          Set if listeners should be generated for the jastor objects
 void setGeneratePropertyCache(boolean generatePropertyCache)
          Set if there should be property caches
 void setGenerateStandardCode(boolean generateStandardCode)
          Set if task should generate standard code
 void setGenerateVocublaryOnly(boolean generateVocublaryOnly)
          Set if the jastor objects should only be vocabulary files
 void setOntologies(java.util.List<OntologyElement> ontologies)
          Set the OntologyElements for this task
 void setThingExtendsResource(boolean thingExtendsResource)
          Set if Thing should extend Resource
 void setUseEntireURIForIdentifiers(boolean useEntireURIForIdentifiers)
          Set if this task should use the entire URI for identifiers
 void setUsePackageNamesForRestrictedRanges(boolean usePackageNamesForRestrictedRanges)
          Set if this task should use package names for restricted ranges
 void setUseStrictTypeChecking(boolean useStrictTypeChecking)
          Set if this task should use strict type checking
 void setUseTypedLiterals(boolean useTypedLiterals)
          Set if task should use typed literals
 
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, init, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JastorTask

public JastorTask()
Method Detail

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException

getDestdir

public java.io.File getDestdir()
Get the destination directory for this task

Returns:
the destination directory for this task

setDestdir

public void setDestdir(java.io.File destdir)
Set the destination directory for this task

Parameters:
destdir - the destination directory for this task

isGenerateCacheInFactory

public boolean isGenerateCacheInFactory()
Return true if a cache should be created in the factory

Returns:
true if a cache should be created in the factory

setGenerateCacheInFactory

public void setGenerateCacheInFactory(boolean generateCacheInFactory)
Set if a cache should be created in the factory

Parameters:
generateCacheInFactory - set if a cache should be created in the factory

isGenerateListeners

public boolean isGenerateListeners()
Return true if listeners should be generated for the jastor objects

Returns:
true if listeners should be generated for the jastor objects

setGenerateListeners

public void setGenerateListeners(boolean generateListeners)
Set if listeners should be generated for the jastor objects

Parameters:
generateListeners - set if listeners should be generated for the jastor objects

isGeneratePropertyCache

public boolean isGeneratePropertyCache()
Return true if there should be property caches for the jastor objects

Returns:
true if there should be property caches for the jastor objects

setGeneratePropertyCache

public void setGeneratePropertyCache(boolean generatePropertyCache)
Set if there should be property caches

Parameters:
generatePropertyCache - set if there should be property caches

isGenerateVocublaryOnly

public boolean isGenerateVocublaryOnly()
Return true if the jastor objects should only be vocabulary files

Returns:
true if the jastor objects should only be vocabulary files

setGenerateVocublaryOnly

public void setGenerateVocublaryOnly(boolean generateVocublaryOnly)
Set if the jastor objects should only be vocabulary files

Parameters:
generateVocublaryOnly - set the jastor objects should only be vocabulary files

getOntologies

public java.util.List<OntologyElement> getOntologies()
Get the OntologyElements for this task

Returns:
the OntologyElements for this task

setOntologies

public void setOntologies(java.util.List<OntologyElement> ontologies)
Set the OntologyElements for this task

Parameters:
ontologies - OntologyElements for this task

getCustomThing

public CustomThingElement getCustomThing()
                                  throws JastorException
Get the custom thing for this task

Returns:
the custom thing for this task
Throws:
JastorException

getBaseTypes

public BaseTypesElement getBaseTypes()
                              throws JastorException
Get the base types for this task

Returns:
the base types for this task
Throws:
JastorException

isUseEntireURIForIdentifiers

public boolean isUseEntireURIForIdentifiers()
Get if this task should use the entire URI for identifiers

Returns:
if this task should use the entire URI for identifiers

setUseEntireURIForIdentifiers

public void setUseEntireURIForIdentifiers(boolean useEntireURIForIdentifiers)
Set if this task should use the entire URI for identifiers

Parameters:
useEntireURIForIdentifiers - set if this task should use the entire URI for identifiers

isUsePackageNamesForRestrictedRanges

public boolean isUsePackageNamesForRestrictedRanges()
Get if this task should use package names for restricted ranges

Returns:
if this task should use package names for restricted ranges

setUsePackageNamesForRestrictedRanges

public void setUsePackageNamesForRestrictedRanges(boolean usePackageNamesForRestrictedRanges)
Set if this task should use package names for restricted ranges

Parameters:
usePackageNamesForRestrictedRanges - set if this task should use package names for restricted ranges

isUseStrictTypeChecking

public boolean isUseStrictTypeChecking()
Get if this task should use strict type checking

Returns:
if this task should use strict type checking

setUseStrictTypeChecking

public void setUseStrictTypeChecking(boolean useStrictTypeChecking)
Set if this task should use strict type checking

Parameters:
useStrictTypeChecking - set if this task should use strict type checking

isThingExtendsResource

public boolean isThingExtendsResource()
Get if Thing should extend Resource

Returns:
if Thing should extend Resource

setThingExtendsResource

public void setThingExtendsResource(boolean thingExtendsResource)
Set if Thing should extend Resource

Parameters:
thingExtendsResource -

isGenerateStandardCode

public boolean isGenerateStandardCode()
Get if task should generate standard code

Returns:
if task should generate standard code

setGenerateStandardCode

public void setGenerateStandardCode(boolean generateStandardCode)
Set if task should generate standard code

Parameters:
generateStandardCode - set if task should generate standard code

isUseTypedLiterals

public boolean isUseTypedLiterals()
Get if task should use typed literals

Returns:
if task should use typed literals

setUseTypedLiterals

public void setUseTypedLiterals(boolean useTypedLiterals)
Set if task should use typed literals

Parameters:
useTypedLiterals - set if task should use typed literals

isAddAllRDFTypesInHierarchy

public boolean isAddAllRDFTypesInHierarchy()
Get if all RDF types should be added to a classes hierarchy

Returns:
true if all RDF types should be added to a classes hierarchy

setAddAllRDFTypesInHierarchy

public void setAddAllRDFTypesInHierarchy(boolean addAllRDFTypesInHierarchy)
Set if all RDF types should be added to a classes hierarchy

Parameters:
addAllRDFTypesInHierarchy - set if all RDF types should be added to a classes hierarchy

addOntology

public void addOntology(OntologyElement ont)
Add an ontologyElement to this task

Parameters:
ont - an ontologyElement to this task

addCustomThing

public void addCustomThing(CustomThingElement thing)
Add a custom thing to this task

Parameters:
thing - a custom thing to this task

addTemplate

public void addTemplate(TemplateElement tmp)
Add template to this task

Parameters:
tmp - template to add to this task

addPrefix

public void addPrefix(PrefixElement tmp)
Add a prefix element to this task

Parameters:
tmp - a prefix element to this task

addBaseTypes

public void addBaseTypes(BaseTypesElement baseTypeElement)
Add a BaseTypesElement to this task

Parameters:
baseTypeElement - baseTypeElement to add to this task


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.