com.centrasite.registry.revision
Class RevisionDoctypeQuery

java.lang.Object
  extended by com.centrasite.registry.revision.RevisionDoctypeQuery

public class RevisionDoctypeQuery
extends java.lang.Object

Class responsible for translation of an objectType ( {namespace}type ) into elements used for xquery. For example given the object '{mynamespace}mytype' the values for the corresponsing xquery will be delivered:

 -  declare namespace dtns = "mynamespace"
 -  dtns:mytype  (to be used with: for $i in collection("v.CentraSite")/dtns:mytype)
 


Constructor Summary
RevisionDoctypeQuery()
          Constructor for finding all doctypes
RevisionDoctypeQuery(com.centrasite.jaxr.CentraSiteRevisionManager revManager, javax.xml.registry.infomodel.RegistryObject regObj)
          Constructor.
RevisionDoctypeQuery(com.centrasite.jaxr.CentraSiteRevisionManager revManager, java.lang.String objectType)
          Constructor.
 
Method Summary
 java.lang.String getDoctypeName()
          Deliver doctype name that can be used for xqueries
 java.lang.String getNamespaceDeclaration()
          Deliver the namespace declaration for xqueries
 java.lang.String getObjectType()
          Deliver object type as string
 java.lang.String toString()
          Just deliver string repr. of class
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RevisionDoctypeQuery

public RevisionDoctypeQuery(com.centrasite.jaxr.CentraSiteRevisionManager revManager,
                            java.lang.String objectType)
                     throws javax.xml.registry.JAXRException
Constructor.

Parameters:
revManager - revision manager
objectType - the object type associated with the doctype
Throws:
javax.xml.registry.JAXRException

RevisionDoctypeQuery

public RevisionDoctypeQuery(com.centrasite.jaxr.CentraSiteRevisionManager revManager,
                            javax.xml.registry.infomodel.RegistryObject regObj)
                     throws javax.xml.registry.JAXRException
Constructor.

Parameters:
revManager - revision manager
regObj - the registry object associated with the doctype
Throws:
javax.xml.registry.JAXRException

RevisionDoctypeQuery

public RevisionDoctypeQuery()
                     throws javax.xml.registry.JAXRException
Constructor for finding all doctypes

Throws:
javax.xml.registry.JAXRException
Method Detail

getObjectType

public java.lang.String getObjectType()
Deliver object type as string

Returns:
"{namespace}/type"

getDoctypeName

public java.lang.String getDoctypeName()
Deliver doctype name that can be used for xqueries

Returns:
"dtns:type"

getNamespaceDeclaration

public java.lang.String getNamespaceDeclaration()
Deliver the namespace declaration for xqueries

Returns:
"declare namespace typns "..."

toString

public java.lang.String toString()
Just deliver string repr. of class

Overrides:
toString in class java.lang.Object