sk.uniba.euromath.document.schema.impl.tools
Class AttributeExpGetter

java.lang.Object
  extended by sk.uniba.euromath.document.schema.impl.tools.AttributeExpGetter

public final class AttributeExpGetter
extends Object

Computes list of attributes expressions, that are contained in given expression.

Author:
Martin Vysny

Constructor Summary
AttributeExpGetter()
          Constructor.
 
Method Summary
 Set<com.sun.msv.grammar.AttributeExp> getAllAttributes(com.sun.msv.grammar.Expression exp)
          Returns all attributes from empty ("") namespace, regardless of which element they are placed in.
 Set<com.sun.msv.grammar.AttributeExp> getAttributeExps(com.sun.msv.grammar.Expression exp, boolean requiredOnly)
          Returns all AttributeExps, contained in given expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeExpGetter

public AttributeExpGetter()
Constructor.

Method Detail

getAllAttributes

public Set<com.sun.msv.grammar.AttributeExp> getAllAttributes(com.sun.msv.grammar.Expression exp)
Returns all attributes from empty ("") namespace, regardless of which element they are placed in.

Parameters:
exp - expression to examine.
Returns:
Attributes' expressions - set of AttributeExp objects.

getAttributeExps

public Set<com.sun.msv.grammar.AttributeExp> getAttributeExps(com.sun.msv.grammar.Expression exp,
                                                              boolean requiredOnly)
Returns all AttributeExps, contained in given expression. It will not go over elementexps. If exp is ElementExp, then its content model is used.

Parameters:
exp - element expression to check.
requiredOnly - return required attributes only.
Returns:
Set of all required AttributeExp.


Copyright © 2003-2006 null. All Rights Reserved.