com.redhat.persistence.pdl
Class VersioningMetadata

java.lang.Object
  extended bycom.redhat.persistence.pdl.VersioningMetadata

public class VersioningMetadata
extends Object

Versioning metadata.

Since:
2003-02-18
Version:
$Revision: #7 $ $Date: 2004/04/07 $
Author:
Vadim Nasardinov (vadimn@redhat.com)

Nested Class Summary
 class VersioningMetadata.NodeSwitch
           
static interface VersioningMetadata.NodeVisitor
           
 
Method Summary
static VersioningMetadata getVersioningMetadata()
           
 boolean isMarkedUnversioned(String containerName, String propertyName)
          Returns true if the object type property whose name is propertyName is marked unversioned in the PDL definition.
 boolean isMarkedVersioned(String qualifiedName)
          Returns true if the object type named by qualifiedName is marked versioned in the PDL definition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getVersioningMetadata

public static VersioningMetadata getVersioningMetadata()

isMarkedVersioned

public boolean isMarkedVersioned(String qualifiedName)

Returns true if the object type named by qualifiedName is marked versioned in the PDL definition. Note that this a weaker test than checking of an object type is versioned. For example, a type may be versioned if one of its ancestor types is marked versioned.

This method is provided for unit testing only.

Parameters:
qualifiedName - the fully qualified name of an object type

isMarkedUnversioned

public boolean isMarkedUnversioned(String containerName,
                                   String propertyName)
Returns true if the object type property whose name is propertyName is marked unversioned in the PDL definition.

This method is provided for unit testing only.

Parameters:
propertyName - the fully qualified name of an object type property


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC