Java Doc for Version.java in  » Search-Engine » semweb4j » org » ontoware » semversion » 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 » Search Engine » semweb4j » org.ontoware.semversion 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.ontoware.semversion.VersionedItem
      org.ontoware.semversion.Version

Version
public class Version extends VersionedItem (Code)
A SemVersion Version. Each version is a non-mutable state of an RDF model. A version has a number of metadata attached to it. Each version is identified by a URI. A VersionedModel has none or one root version. Each version can have a number of chuld versions. Versions can have branch labels. The default branch is called 'main'. Each model can have a number of 'suggested' children. Suggestions can have further children, but these must also be suggestions.
 Example:
 root
 - version 1
 - version 2
 - version 2.1 (suggestion)
 - version 2.1.1 (must be a suggestion)
 - version 2.2 
 - version 2.3
 

author:
   voelkel



Constructor Summary
public  Version(Model model, Session session, URI uri, boolean write)
    
public  Version(org.ontoware.semversion.impl.generated.Version version, Session session)
    

Method Summary
public  Versioncommit(Diff diff, String comment, URI versionURI, URI provenance, boolean suggestion)
    
public  Versioncommit(Model childContent, String comment, boolean suggestion)
    
public  Versioncommit(Model childContent, String comment, URI versionURI, URI provenance, boolean suggestion)
     Create a new child version by committing explicitly the content of the child.
public  VersioncommitAsBranch(Diff diff, String branchLabel, String comment, URI versionURI, URI provenance, boolean suggestion)
     Commit a new version by applying a diff to this versions content.
public  VersioncommitAsBranch(Model childContent, String branchLabel, String comment, boolean suggestion)
    
public  VersioncommitAsBranch(Model childContent, String branchLabel, String comment, URI versionURI, URI provenance, boolean suggestion)
     Creates a new child version with the given URI.
public  voiddelete()
    
public  Stringdump()
    
public  booleanequals(Object other)
    
public  List<Version>getAllChildren()
    
public  StringgetBranchLabel()
    
public  StringgetChangeCause()
    
public  ModelgetContent()
    
protected  VersiongetFirstParent()
    
public  List<Version>getNextVersions()
    
public  VersiongetPrevVersion()
    
protected  org.ontoware.semversion.impl.generated.VersiongetReactorVersion()
    
public  VersiongetSecondParent()
     the second parent (a Version) if this version has been the resultof a merge.
public  longgetStatementCount()
    
public  List<Version>getSuggestions()
    
public  List<Version>getValidChildren()
     all valid children of this version (i.e.
public  VersionedModelgetVersionedModel()
    
protected  booleanhasChildWithSameBranchLabel()
    
public  booleanhasValidChildren()
    
public  booleanisInSameBranch(Version other)
    
public  booleanisSuggestion()
    
public  booleanisValid()
     true if this version is an accepted version (i.e.
public  Versionmerge(Version otherVersion, String comment, URI provenance, boolean suggestion)
    
public  voidsetAsRelease()
    
public  voidsetAsSuggestion()
    
protected  voidsetChangeCause(String value)
    
protected  voidsetContainer(VersionedModel value)
    
protected  voidsetContent(RDFModel rdfmodel)
    
protected  voidsetFirstParent(Version value)
    
protected  voidsetInvalid()
    
protected  voidsetValid()
    


Constructor Detail
Version
public Version(Model model, Session session, URI uri, boolean write)(Code)
SHOULD NOT BE CALLED FROM API USERS
Parameters:
  model -
Parameters:
  uri -
Parameters:
  write -



Version
public Version(org.ontoware.semversion.impl.generated.Version version, Session session)(Code)
SHOULD NOT BE CALLED FROM API USERS
Parameters:
  version -




Method Detail
commit
public Version commit(Diff diff, String comment, URI versionURI, URI provenance, boolean suggestion) throws CommitConflictException(Code)

Parameters:
  diff -
Parameters:
  comment -
Parameters:
  versionURI - the contextURI of the new model
Parameters:
  provenance -
Parameters:
  suggestion - if true, the the version is a suggestion
throws:
  CommitConflictException -



commit
public Version commit(Model childContent, String comment, boolean suggestion) throws CommitConflictException, InvalidChildOfSuggestionException(Code)
Create a new child version by committing explicitly the content of the child
Parameters:
  childContent -
Parameters:
  comment -
Parameters:
  suggestion - if true, the new version has not been accepted yet, it is justa suggestion the child version of this version that has the content'childContent'
throws:
  CommitConflictException -
throws:
  InvalidChildOfSuggestionException -



commit
public Version commit(Model childContent, String comment, URI versionURI, URI provenance, boolean suggestion)(Code)
Create a new child version by committing explicitly the content of the child. The new version has the given URI.
Parameters:
  childContent -
Parameters:
  comment -
Parameters:
  versionURI -
Parameters:
  provenance -
Parameters:
  suggestion -



commitAsBranch
public Version commitAsBranch(Diff diff, String branchLabel, String comment, URI versionURI, URI provenance, boolean suggestion) throws BranchlabelAlreadyUsedException, InvalidChildOfSuggestionException(Code)
Commit a new version by applying a diff to this versions content. The new version lives in a new branch, named 'branchLabel'
Parameters:
  diff -
Parameters:
  branchLabel - may not be null
Parameters:
  comment -
Parameters:
  versionURI - may not be null
Parameters:
  provenance - may be null
Parameters:
  suggestion -
throws:
  BranchlabelAlreadyUsedException -
throws:
  InvalidChildOfSuggestionException -



commitAsBranch
public Version commitAsBranch(Model childContent, String branchLabel, String comment, boolean suggestion) throws BranchlabelAlreadyUsedException, InvalidChildOfSuggestionException(Code)
Create a new child version in a different branch by explicitly committing 'childContent' as the new content
Parameters:
  childContent -
Parameters:
  branchLabel -
Parameters:
  comment -
Parameters:
  suggestion -
throws:
  BranchlabelAlreadyUsedException -
throws:
  InvalidChildOfSuggestionException -



commitAsBranch
public Version commitAsBranch(Model childContent, String branchLabel, String comment, URI versionURI, URI provenance, boolean suggestion) throws BranchlabelAlreadyUsedException, InvalidChildOfSuggestionException(Code)
Creates a new child version with the given URI.
Parameters:
  childContent -
Parameters:
  branchLabel -
Parameters:
  comment -
Parameters:
  versionURI -
Parameters:
  provenance -
Parameters:
  suggestion -
throws:
  BranchlabelAlreadyUsedException -
throws:
  InvalidChildOfSuggestionException -



delete
public void delete()(Code)



dump
public String dump()(Code)
a String which contains all content of this model in aself-invented strange format.



equals
public boolean equals(Object other)(Code)



getAllChildren
public List<Version> getAllChildren()(Code)
all child versions (suggestions and accepted) of this version



getBranchLabel
public String getBranchLabel()(Code)
the branch label of this version



getChangeCause
public String getChangeCause()(Code)
the change cause



getContent
public Model getContent()(Code)
a an in-memory copy of the RDF content of this model



getFirstParent
protected Version getFirstParent()(Code)
predecessor, which is always a Version



getNextVersions
public List<Version> getNextVersions()(Code)
all accepted child versions (including suggestions)



getPrevVersion
public Version getPrevVersion()(Code)
the first parent



getReactorVersion
protected org.ontoware.semversion.impl.generated.Version getReactorVersion()(Code)



getSecondParent
public Version getSecondParent()(Code)
the second parent (a Version) if this version has been the resultof a merge. Return null otherwise.



getStatementCount
public long getStatementCount()(Code)
the size of the versioned RDF graph of this version



getSuggestions
public List<Version> getSuggestions()(Code)
all suggestions to this version



getValidChildren
public List<Version> getValidChildren()(Code)
all valid children of this version (i.e. children that are not asuggestion)



getVersionedModel
public VersionedModel getVersionedModel() throws RDFDataException(Code)
the VersionedModel in which this version lives.



hasChildWithSameBranchLabel
protected boolean hasChildWithSameBranchLabel()(Code)



hasValidChildren
public boolean hasValidChildren()(Code)
true if this version has at least one valid child version



isInSameBranch
public boolean isInSameBranch(Version other)(Code)

Parameters:
  other - true if this version has the same branch label as the otherversion



isSuggestion
public boolean isSuggestion()(Code)
true if this version is just a suggested version that has notbeen accepted yet



isValid
public boolean isValid()(Code)
true if this version is an accepted version (i.e. not asuggestion)



merge
public Version merge(Version otherVersion, String comment, URI provenance, boolean suggestion) throws CommitConflictException, InvalidChildOfSuggestionException(Code)

Parameters:
  otherVersion -
Parameters:
  comment -
Parameters:
  provenance -
Parameters:
  suggestion - a new version which is the result of the merge (union) of twoother versions (this version and 'other' version)
throws:
  CommitConflictException -
throws:
  InvalidChildOfSuggestionException -



setAsRelease
public void setAsRelease()(Code)
Changes the flag from "suggestion" to "released"



setAsSuggestion
public void setAsSuggestion()(Code)
Changes the flag from "released" to "suggestion"



setChangeCause
protected void setChangeCause(String value)(Code)



setContainer
protected void setContainer(VersionedModel value)(Code)



setContent
protected void setContent(RDFModel rdfmodel) throws RDFDataException(Code)



setFirstParent
protected void setFirstParent(Version value) throws RDFDataException(Code)



setInvalid
protected void setInvalid()(Code)
Sets this version as invalid (= suggestion)



setValid
protected void setValid()(Code)



Methods inherited from org.ontoware.semversion.VersionedItem
public String getComment()(Code)(Java Doc)
public Calendar getCreationTime() throws RDFDataException(Code)(Java Doc)
public String getLabel()(Code)(Java Doc)
public URI getProvenance() throws RDFDataException(Code)(Java Doc)
protected SemVersion getSemVersion()(Code)(Java Doc)
public Session getSession()(Code)(Java Doc)
protected String getTag() throws RDFDataException(Code)(Java Doc)
public URI getURI()(Code)(Java Doc)
public User getUser()(Code)(Java Doc)
public URI getUserdefinedMetadata()(Code)(Java Doc)
public void setComment(String comment)(Code)(Java Doc)
protected void setCreationTime(Calendar value) throws RDFDataException(Code)(Java Doc)
public void setLabel(String label)(Code)(Java Doc)
protected void setProvenance(URI value) throws RDFDataException(Code)(Java Doc)
protected void setTag(String value) throws RDFDataException(Code)(Java Doc)
protected void setUser(User value) throws RDFDataException(Code)(Java Doc)
protected void setUserdefinedMetadata(URI value)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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