Java Doc for Restriction.java in  » RSS-RDF » Jena-2.5.5 » com » hp » hpl » jena » ontology » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » RSS RDF » Jena 2.5.5 » com.hp.hpl.jena.ontology 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.hp.hpl.jena.ontology.Restriction

All known Subclasses:   com.hp.hpl.jena.ontology.impl.RestrictionImpl,
Restriction
public interface Restriction extends OntClass(Code)

Interface that encapsulates a class description formed by restricting one or more properties to have constrained values and/or cardinalities.


author:
   Ian Dickinson, HP Labs
author:
   (email)
version:
   CVS $Id: Restriction.java,v 1.14 2008/01/02 12:06:42 andy_seaborne Exp $




Method Summary
public  AllValuesFromRestrictionasAllValuesFromRestriction()
    
public  CardinalityRestrictionasCardinalityRestriction()
    
public  HasValueRestrictionasHasValueRestriction()
    
public  MaxCardinalityRestrictionasMaxCardinalityRestriction()
    
public  MinCardinalityRestrictionasMinCardinalityRestriction()
    
public  SomeValuesFromRestrictionasSomeValuesFromRestriction()
    
public  AllValuesFromRestrictionconvertToAllValuesFromRestriction(Resource cls)
    
public  CardinalityRestrictionconvertToCardinalityRestriction(int cardinality)
    
public  HasValueRestrictionconvertToHasValueRestriction(RDFNode value)
    

Convert this restriction to a has value class expression


Parameters:
  value - The value which the restricted property must have, for resource to bein the extension of this restriction.
public  MaxCardinalityRestrictionconvertToMaxCardinalityRestriction(int cardinality)
    
public  MinCardinalityRestrictionconvertToMinCardinalityRestriction(int cardinality)
    
public  SomeValuesFromRestrictionconvertToSomeValuesFromRestriction(Resource cls)
    
public  OntPropertygetOnProperty()
    

Answer the property that this property restriction applies to.

public  booleanisAllValuesFromRestriction()
    
public  booleanisCardinalityRestriction()
    

Answer true if this restriction is a cardinality restriction (ie is a property restriction constructed with an owl:cardinality operator, or similar).

public  booleanisHasValueRestriction()
    
public  booleanisMaxCardinalityRestriction()
    

Answer true if this restriction is a max cardinality restriction (ie is a property restriction constructed with an owl:maxCardinality operator, or similar).

public  booleanisMinCardinalityRestriction()
    

Answer true if this restriction is a min cardinality restriction (ie is a property restriction constructed with an owl:minCardinality operator, or similar).

public  booleanisSomeValuesFromRestriction()
    
public  booleanonProperty(Property prop)
    

Answer true if this restriction is a property restriction on the given property.


Parameters:
  prop - A property to test against True if this restriction is a restriction on prop
exception:
  OntProfileException - If the Profile.ON_PROPERTY property is not supported in the current language profile.
public  voidremoveOnProperty(Property prop)
    

Remove the given property as the property that this restriction applies to.

public  voidsetOnProperty(Property prop)
    

Assert that the property that this restriction applies to is the given property.




Method Detail
asAllValuesFromRestriction
public AllValuesFromRestriction asAllValuesFromRestriction()(Code)

Answer a view of this restriction as an all values from expression

This class, but viewed as an AllValuesFromRestriction node
exception:
  ConversionException - if the class cannot be converted to an all values from restrictiongiven the lanuage profile and the current state of the underlying model.



asCardinalityRestriction
public CardinalityRestriction asCardinalityRestriction()(Code)

Answer a view of this restriction as a cardinality restriction class expression

This class, but viewed as a CardinalityRestriction node
exception:
  ConversionException - if the class cannot be converted to a cardinality restrictiongiven the lanuage profile and the current state of the underlying model.



asHasValueRestriction
public HasValueRestriction asHasValueRestriction()(Code)

Answer a view of this restriction as a has value expression

This class, but viewed as a HasValueRestriction node
exception:
  ConversionException - if the class cannot be converted to a has value restrictiongiven the lanuage profile and the current state of the underlying model.



asMaxCardinalityRestriction
public MaxCardinalityRestriction asMaxCardinalityRestriction()(Code)

Answer a view of this restriction as a max cardinality restriction class expression

This class, but viewed as a MaxCardinalityRestriction node
exception:
  ConversionException - if the class cannot be converted to a max cardinality restrictiongiven the lanuage profile and the current state of the underlying model.



asMinCardinalityRestriction
public MinCardinalityRestriction asMinCardinalityRestriction()(Code)

Answer a view of this restriction as a min cardinality restriction class expression

This class, but viewed as a MinCardinalityRestriction node
exception:
  ConversionException - if the class cannot be converted to a min cardinality restrictiongiven the lanuage profile and the current state of the underlying model.



asSomeValuesFromRestriction
public SomeValuesFromRestriction asSomeValuesFromRestriction()(Code)

Answer a view of this restriction as a some values from expression

This class, but viewed as a SomeValuesFromRestriction node
exception:
  ConversionException - if the class cannot be converted to an all values from restrictiongiven the lanuage profile and the current state of the underlying model.



convertToAllValuesFromRestriction
public AllValuesFromRestriction convertToAllValuesFromRestriction(Resource cls)(Code)

Convert this restriction to an all values from class expression.


Parameters:
  cls - The class to which all values of the restricted property must belong, to be in theextension of this restriction This class, but converted to a AllValuesFromRestriction class expression
exception:
  ProfileException - if Profile.ALL_VALUES_FROM is not supported in the current profile



convertToCardinalityRestriction
public CardinalityRestriction convertToCardinalityRestriction(int cardinality)(Code)

Convert this restriction to a cardinality restriction class expression


Parameters:
  cardinality - The exact cardinality for the restricted property This class, but converted to a CardinalityRestriction node
exception:
  ProfileException - if Profile.CARDINALITY is not supported in the current profile



convertToHasValueRestriction
public HasValueRestriction convertToHasValueRestriction(RDFNode value)(Code)

Convert this restriction to a has value class expression


Parameters:
  value - The value which the restricted property must have, for resource to bein the extension of this restriction. Can be a resource or a literal. This class, but converted to a HasValueRestriction
exception:
  ProfileException - if Profile.HAS_VALUE is not supported in the current profile



convertToMaxCardinalityRestriction
public MaxCardinalityRestriction convertToMaxCardinalityRestriction(int cardinality)(Code)

Convert this restriction to a max cardinality restriction class expression


Parameters:
  cardinality - The maximum cardinality for the restricted property This class, but converted to a MaxCardinalityRestriction node
exception:
  ProfileException - if Profile.MAX_CARDINALITY is not supported in the current profile



convertToMinCardinalityRestriction
public MinCardinalityRestriction convertToMinCardinalityRestriction(int cardinality)(Code)

Convert this restriction to a min cardinality restriction class expression


Parameters:
  cardinality - The minimum cardinality for the restricted property This class, but converted to a MinCardinalityRestriction node
exception:
  ProfileException - if Profile.MIN_CARDINALITY is not supported in the current profile



convertToSomeValuesFromRestriction
public SomeValuesFromRestriction convertToSomeValuesFromRestriction(Resource cls)(Code)

Convert this restriction to a some values from class expression


Parameters:
  cls - The class to which at least one value of the restricted property must belong, to be in theextension of this restriction This class, but converted to a SomeValuesFromRestriction node
exception:
  ProfileException - if Profile.SOME_VALUES_FROM is not supported in the current profile



getOnProperty
public OntProperty getOnProperty()(Code)

Answer the property that this property restriction applies to. If there is more than one such resource, an arbitrary selection is made (though well-defined property restrictions should not have more than one onProperty statement.

The property that this property restriction applies to
exception:
  OntProfileException - If the Profile.ON_PROPERTY property is not supported in the current language profile.



isAllValuesFromRestriction
public boolean isAllValuesFromRestriction()(Code)

Answer true if this restriction is an all values from restriction

True if this is an allValuesFrom property restriction
exception:
  ProfileException - if Profile.ALL_VALUES_FROM is not supported in the current profile



isCardinalityRestriction
public boolean isCardinalityRestriction()(Code)

Answer true if this restriction is a cardinality restriction (ie is a property restriction constructed with an owl:cardinality operator, or similar). This is not a test for a restriction that tests cardinalities in general.

True if this is a cardinality property restriction
exception:
  ProfileException - if Profile.CARDINALITY is not supported in the current profile



isHasValueRestriction
public boolean isHasValueRestriction()(Code)

Answer true if this restriction is a has value restriction

True if this is a hasValue property restriction
exception:
  ProfileException - if Profile.HAS_VALUE is not supported in the current profile



isMaxCardinalityRestriction
public boolean isMaxCardinalityRestriction()(Code)

Answer true if this restriction is a max cardinality restriction (ie is a property restriction constructed with an owl:maxCardinality operator, or similar). This is not a test for a restriction that tests cardinalities in general.

True if this is a maxCardinality property restriction
exception:
  ProfileException - if Profile.MAX_CARDINALITY is not supported in the current profile



isMinCardinalityRestriction
public boolean isMinCardinalityRestriction()(Code)

Answer true if this restriction is a min cardinality restriction (ie is a property restriction constructed with an owl:minCardinality operator, or similar). This is not a test for a restriction that tests cardinalities in general.

True if this is a minCardinality property restriction
exception:
  ProfileException - if Profile.MIN_CARDINALITY is not supported in the current profile



isSomeValuesFromRestriction
public boolean isSomeValuesFromRestriction()(Code)

Answer true if this restriction is a some values from restriction

True if this is a someValuesFrom property restriction
exception:
  ProfileException - if Profile.SOME_VALUES_FROM is not supported in the current profile



onProperty
public boolean onProperty(Property prop)(Code)

Answer true if this restriction is a property restriction on the given property.


Parameters:
  prop - A property to test against True if this restriction is a restriction on prop
exception:
  OntProfileException - If the Profile.ON_PROPERTY property is not supported in the current language profile.



removeOnProperty
public void removeOnProperty(Property prop)(Code)

Remove the given property as the property that this restriction applies to. If this statement is not true of the current model, nothing happens.


Parameters:
  prop - The property to be removed as a the property that this restriction applies to



setOnProperty
public void setOnProperty(Property prop)(Code)

Assert that the property that this restriction applies to is the given property. Any existing statements for onProperty will be removed.


Parameters:
  prop - The property that this restriction applies to
exception:
  OntProfileException - If the Profile.ON_PROPERTY property is not supported in the current language profile.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.