com.sun.xml.xsom.visitor.XSSimpleTypeVisitor Java Examples

The following examples show how to use com.sun.xml.xsom.visitor.XSSimpleTypeVisitor. 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 5 votes vote down vote up
public void simpleType(XSSimpleType type) {

        String str = MessageFormat.format("Simple type {0}",
                new Object[]{type.isLocal() ? "" : " name=\""
                + type.getName() + "\""});

        SchemaTreeNode newNode = new SchemaTreeNode(str, type.getLocator());
        this.currNode.add(newNode);
        this.currNode = newNode;

        type.visit((XSSimpleTypeVisitor) this);

        this.currNode = (SchemaTreeNode) this.currNode.getParent();
    }
 
Example #2
Source File: SchemaWriter.java    From jolie with GNU Lesser General Public License v2.1 5 votes vote down vote up
public void simpleType( XSSimpleType type ) {
    println(MessageFormat.format("<simpleType{0}>",
        new Object[]{
            type.isLocal()?"":" name=\""+type.getName()+'\"'
        }));
    indent++;

    type.visit((XSSimpleTypeVisitor)this);

    indent--;
    println("</simpleType>");
}
 
Example #3
Source File: JumbuneSchemaWriter.java    From jumbune with GNU Lesser General Public License v3.0 5 votes vote down vote up
public void simpleType( XSSimpleType type ) {
      println(MessageFormat.format("<simpleType{0}>", type.isLocal()?"":" name=\""+type.getName()+'\"'));
      indent++;

      type.visit((XSSimpleTypeVisitor)this);

      indent--;
if (type.getBaseType().isLocal())
	println("</simpleType>");
  }
 
Example #4
Source File: SchemaWriter.java    From citygml4j with Apache License 2.0 5 votes vote down vote up
public void simpleType( XSSimpleType type ) {
	println(MessageFormat.format("<simpleType{0}>", type.isLocal()?"":" name=\""+type.getName()+'\"'));
	indent++;

	type.visit((XSSimpleTypeVisitor)this);

	indent--;
	println("</simpleType>");
}
 
Example #5
Source File: RestrictionSimpleTypeImpl.java    From jolie with GNU Lesser General Public License v2.1 4 votes vote down vote up
public void visit( XSSimpleTypeVisitor visitor ) {
    visitor.restrictionSimpleType(this);
}
 
Example #6
Source File: UnionSimpleTypeImpl.java    From jolie with GNU Lesser General Public License v2.1 4 votes vote down vote up
public void visit( XSSimpleTypeVisitor visitor ) {
    visitor.unionSimpleType(this);
}
 
Example #7
Source File: ListSimpleTypeImpl.java    From jolie with GNU Lesser General Public License v2.1 4 votes vote down vote up
public void visit( XSSimpleTypeVisitor visitor ) {
    visitor.listSimpleType(this);
}
 
Example #8
Source File: CollectEnumerationValuesVisitor.java    From jsonix-schema-compiler with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public void attributeDecl(XSAttributeDecl decl) {
	decl.getType().visit((XSSimpleTypeVisitor) this);
}
 
Example #9
Source File: XSSimpleType.java    From jolie with GNU Lesser General Public License v2.1 votes vote down vote up
void visit( XSSimpleTypeVisitor visitor ); 
Example #10
Source File: SchemaSetImpl.java    From jolie with GNU Lesser General Public License v2.1 votes vote down vote up
public void visit( XSSimpleTypeVisitor visitor ) {visitor.restrictionSimpleType(this); }