xml.completion
Class XsdElementDecl
java.lang.Object
xml.completion.ElementDecl
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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
XsdElementDecl
public XsdElementDecl(org.apache.xerces.xs.XSElementDeclaration element,
CompletionInfo completionInfo,
java.lang.String name,
java.lang.String content)
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.