net.sourceforge.nrl.parser.model.xsd
Class XSDModelUtils

java.lang.Object
  extended by net.sourceforge.nrl.parser.model.xsd.XSDModelUtils

public class XSDModelUtils
extends Object

Utility methods for working with models loaded from an XSD.

Author:
Matthew Smith

Constructor Summary
XSDModelUtils()
           
 
Method Summary
static List<IAttribute> getXsdAttributes(IClassifier container, boolean includeInherited)
          Return all attributes of the given IClassifier that are tagged as having been generated from an XSD attribute.
static List<IAttribute> getXsdElements(IClassifier container, boolean includeInherited)
          Return all attributes of the given IClassifier that are tagged as having been generated from an XSD element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSDModelUtils

public XSDModelUtils()
Method Detail

getXsdAttributes

public static List<IAttribute> getXsdAttributes(IClassifier container,
                                                boolean includeInherited)
Return all attributes of the given IClassifier that are tagged as having been generated from an XSD attribute.

Parameters:
container - The IClassifier to search for attributes.
includeInherited - Whether to include attributes inherited from super types in the search.
Returns:
A list of IAttribute that are taggged as IXSDUserData.XSD_ATTRIBUTE_KIND

getXsdElements

public static List<IAttribute> getXsdElements(IClassifier container,
                                              boolean includeInherited)
Return all attributes of the given IClassifier that are tagged as having been generated from an XSD element.

Parameters:
container - The IClassifier to search for attributes.
includeInherited - Whether to include attributes inherited from super types in the search.
Returns:
A list of IAttribute that are taggged as IXSDUserData.XSD_ELEMENT_KIND


Copyright © 2006-2013. All Rights Reserved.