Java Code Examples for com.sun.xml.xsom.XSAttGroupDecl#getName()

The following examples show how to use com.sun.xml.xsom.XSAttGroupDecl#getName() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SchemaTreeTraverser.java    From jolie with GNU Lesser General Public License v2.1 6 votes vote down vote up
public void attGroupDecl(XSAttGroupDecl decl) {
    SchemaTreeNode newNode = new SchemaTreeNode("Attribute group \""
            + decl.getName() + "\"", decl.getLocator());
    this.currNode.add(newNode);
    this.currNode = newNode;

    Iterator itr;

    itr = decl.iterateAttGroups();
    while (itr.hasNext()) {
        dumpRef((XSAttGroupDecl) itr.next());
    }

    itr = decl.iterateDeclaredAttributeUses();
    while (itr.hasNext()) {
        attributeUse((XSAttributeUse) itr.next());
    }

    this.currNode = (SchemaTreeNode) this.currNode.getParent();
}
 
Example 2
Source File: SchemaTreeTraverser.java    From jolie with GNU Lesser General Public License v2.1 5 votes vote down vote up
/**
 * Creates node of attribute group decalration reference.
 *
 * @param decl Attribute group decalration reference.
 */
public void dumpRef(XSAttGroupDecl decl) {
    SchemaTreeNode newNode = new SchemaTreeNode("Attribute group ref \"{"
            + decl.getTargetNamespace() + "}" + decl.getName() + "\"", decl
            .getLocator());
    this.currNode.add(newNode);
}
 
Example 3
Source File: ComponentNameFunction.java    From jolie with GNU Lesser General Public License v2.1 4 votes vote down vote up
/**
 * @see com.sun.xml.xsom.visitor.XSFunction#attGroupDecl(XSAttGroupDecl)
 */
public String attGroupDecl(XSAttGroupDecl decl) {
    String name = decl.getName();
    if( name == null ) name = "";
    return name + " " + nameGetter.attGroupDecl( decl );
}