org.xcmis.spi
Class QueryNameTypeManager

java.lang.Object
  extended by org.xcmis.spi.DelegatedTypeManager
      extended by org.xcmis.spi.QueryNameTypeManager
All Implemented Interfaces:
TypeManager

public class QueryNameTypeManager
extends DelegatedTypeManager

A wrapper for TypeManager implementation that make possible to get TypeDefinition by queryName attribute.

Version:
$Id: $
Author:
Andrey Parfonov

Constructor Summary
QueryNameTypeManager(TypeManager typeManager)
           
 
Method Summary
 TypeDefinition getTypeDefinitionByQueryName(String queryName, boolean includePropertyDefinition)
          Get TypeDefinition by queryName of type.
 
Methods inherited from class org.xcmis.spi.DelegatedTypeManager
addType, getTypeChildren, getTypeDefinition, removeType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryNameTypeManager

public QueryNameTypeManager(TypeManager typeManager)
Method Detail

getTypeDefinitionByQueryName

public TypeDefinition getTypeDefinitionByQueryName(String queryName,
                                                   boolean includePropertyDefinition)
                                            throws TypeNotFoundException
Get TypeDefinition by queryName of type.

Parameters:
queryName - queryName attribute of type definition
includePropertyDefinition - if true property definition should be included
Returns:
type definition
Throws:
TypeNotFoundException - if type queryName does not exist


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.