org.apache.ws.muws.impl
Class CategoryImpl

java.lang.Object
  extended byorg.apache.ws.muws.impl.CategoryImpl
All Implemented Interfaces:
Category, org.apache.ws.XmlObjectWrapper

public class CategoryImpl
extends java.lang.Object
implements Category, org.apache.ws.XmlObjectWrapper

An XMLBeans-based implementation of a MUWS Category.


Constructor Summary
CategoryImpl(javax.xml.namespace.QName name)
           
CategoryImpl(javax.xml.namespace.QName name, Category generalization)
           
 
Method Summary
 Category getGeneralization()
          Returns the next most general category in the categorization taxonomy.
 javax.xml.namespace.QName getName()
          Returns the name of this category.
 org.apache.xmlbeans.XmlObject getXmlObject()
           
 boolean hasGeneralization()
          Returns true if the category has a generalization.
 void setGeneralization(Category category)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CategoryImpl

public CategoryImpl(javax.xml.namespace.QName name)

CategoryImpl

public CategoryImpl(javax.xml.namespace.QName name,
                    Category generalization)
Method Detail

getName

public javax.xml.namespace.QName getName()
Description copied from interface: Category
Returns the name of this category.

Specified by:
getName in interface Category
Returns:
the name of this category

getGeneralization

public Category getGeneralization()
Description copied from interface: Category
Returns the next most general category in the categorization taxonomy.

Specified by:
getGeneralization in interface Category
Returns:
the next most general category in the categorization taxonomy

hasGeneralization

public boolean hasGeneralization()
Description copied from interface: Category
Returns true if the category has a generalization. (In other words, returns true if getGeneralization would return a more general category rather than throwing an exception.)

Specified by:
hasGeneralization in interface Category
Returns:
true if the category

setGeneralization

public void setGeneralization(Category category)

getXmlObject

public org.apache.xmlbeans.XmlObject getXmlObject()
Specified by:
getXmlObject in interface org.apache.ws.XmlObjectWrapper


Copyright © 2004-2005 Apache Software Foundation. All Rights Reserved.