xml.completion
Class XsdElementDecl

java.lang.Object
  extended by xml.completion.ElementDecl
      extended by xml.completion.XsdElementDecl

public class XsdElementDecl
extends ElementDecl

An extension to ElementDecl specific for w3c xsd schemas, that stores the entire XSElementDeclaration for later reference.

Author:
ezust

Nested Class Summary
 
Nested classes/interfaces inherited from class xml.completion.ElementDecl
ElementDecl.AttributeDecl, ElementDecl.Compare
 
Field Summary
 
Fields inherited from class xml.completion.ElementDecl
any, attributeHash, attributes, completionInfo, content, elementHash, empty, name
 
Constructor Summary
XsdElementDecl(org.apache.xerces.xs.XSElementDeclaration element, CompletionInfo completionInfo, java.lang.String name, java.lang.String content)
           
 
Method Summary
 java.util.List<ElementDecl> findReplacements()
          Returns a List of ElementDecl objects which are equivalent to this one, if it is indeed an abstract class.
 boolean isAbstract()
           
 
Methods inherited from class xml.completion.ElementDecl
addAttribute, getAttribute, getChildElements, getRequiredAttributesString, setContent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XsdElementDecl

public XsdElementDecl(org.apache.xerces.xs.XSElementDeclaration element,
                      CompletionInfo completionInfo,
                      java.lang.String name,
                      java.lang.String content)
Method Detail

isAbstract

public boolean isAbstract()
Overrides:
isAbstract in class ElementDecl
Returns:
true if this is an abstract element, representing a class of other elements (used in w3c xsd)

findReplacements

public java.util.List<ElementDecl> findReplacements()
Returns a List of ElementDecl objects which are equivalent to this one, if it is indeed an abstract class.

Overrides:
findReplacements in class ElementDecl
Returns:
a list of all elements with matching substitutionGroup, or null if there are none.