/** * @see com.sun.xml.xsom.visitor.XSContentTypeFunction#simpleType(XSSimpleType) */ public String simpleType(XSSimpleType simpleType) { String name = simpleType.getName(); if( name == null ) name = "anonymous"; return name + " " + nameGetter.simpleType( simpleType ); }
/** * @see com.sun.xml.xsom.visitor.XSContentTypeFunction#simpleType(XSSimpleType) */ public String simpleType(XSSimpleType simpleType) { String name = simpleType.getName(); if( name == null ) name = "anonymous"; return name + " " + nameGetter.simpleType( simpleType ); }
/** * @see com.sun.xml.xsom.visitor.XSContentTypeFunction#simpleType(XSSimpleType) */ public String simpleType(XSSimpleType simpleType) { String name = simpleType.getName(); if( name == null ) name = "anonymous"; return name + " " + nameGetter.simpleType( simpleType ); }
private String findBaseConversion(XSSimpleType owner) { // find the base simple type mapping. for( XSSimpleType st=owner; st!=null; st = st.getSimpleBaseType() ) { if( !WellKnownNamespace.XML_SCHEMA.equals(st.getTargetNamespace()) ) continue; // user-defined type String name = st.getName().intern(); for( String s : knownBases ) if(name.equalsIgnoreCase(s)) return s; } return null; }
private String findBaseConversion(XSSimpleType owner) { // find the base simple type mapping. for( XSSimpleType st=owner; st!=null; st = st.getSimpleBaseType() ) { if( !WellKnownNamespace.XML_SCHEMA.equals(st.getTargetNamespace()) ) continue; // user-defined type String name = st.getName().intern(); for( String s : knownBases ) if(name.equalsIgnoreCase(s)) return s; } return null; }
private void processText(String name, XSSimpleType xsSimpleType, ParseContext parseContext) throws Exception { ParseContext attributeContext = new ParseContext(); attributeContext.minOccurs = 1; attributeContext.currentClass = parseContext.currentClass; attributeContext.maxOccurs = 1; attributeContext.path = parseContext.path + "/@" + name; System.out.print(parseContext.indent + "[Text " + attributeContext.path + " " + attributeContext.getOccurs() + "] of type [" + xsSimpleType.getName() + "]"); addSimpleType(name, xsSimpleType, attributeContext, ElementType.TEXT); }
public void simpleType( XSSimpleType type ) { println(MessageFormat.format("<simpleType{0}>", type.isLocal()?"":" name=\""+type.getName()+'\"')); indent++; type.visit((XSSimpleTypeVisitor)this); indent--; println("</simpleType>"); }
public void simpleType( XSSimpleType type ) { println(MessageFormat.format("<simpleType{0}>", type.isLocal()?"":" name=\""+type.getName()+'\"')); indent++; type.visit((XSSimpleTypeVisitor)this); indent--; println("</simpleType>"); }
public void simpleType( XSSimpleType type ) { println(MessageFormat.format("<simpleType{0}>", type.isLocal()?"":" name=\""+type.getName()+'\"')); indent++; type.visit((XSSimpleTypeVisitor)this); indent--; println("</simpleType>"); }
public void simpleType( XSSimpleType type ) { println(MessageFormat.format("<simpleType{0}>", type.isLocal()?"":" name=\""+type.getName()+'\"')); indent++; type.visit((XSSimpleTypeVisitor)this); indent--; println("</simpleType>"); }
public void simpleType( XSSimpleType type ) { println(MessageFormat.format("<simpleType{0}>", type.isLocal()?"":" name=\""+type.getName()+'\"')); indent++; type.visit((XSSimpleTypeVisitor)this); indent--; println("</simpleType>"); }
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(); }
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(); }
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(); }
public CElement simpleType(XSSimpleType type) { CElement c = allow(type,type.getName()); if(c!=null) return c; if(getGlobalBinding().isSimpleTypeSubstitution() && type.isGlobal()) { return new CClassInfo(model,selector.getClassScope(), deriveName(type), type.getLocator(), getName(type), null, type, null ); } return never(); }
public CElement simpleType(XSSimpleType type) { CElement c = allow(type,type.getName()); if(c!=null) return c; if(getGlobalBinding().isSimpleTypeSubstitution() && type.isGlobal()) { return new CClassInfo(model,selector.getClassScope(), deriveName(type), type.getLocator(), getName(type), null, type, null ); } return never(); }
public CElement simpleType(XSSimpleType type) { CElement c = allow(type,type.getName()); if(c!=null) return c; if(getGlobalBinding().isSimpleTypeSubstitution() && type.isGlobal()) { return new CClassInfo(model,selector.getClassScope(), deriveName(type), type.getLocator(), getName(type), null, type, null ); } return never(); }
public CElement simpleType(XSSimpleType type) { CElement c = allow(type,type.getName()); if(c!=null) return c; if(getGlobalBinding().isSimpleTypeSubstitution() && type.isGlobal()) { return new CClassInfo(model,selector.getClassScope(), deriveName(type), type.getLocator(), getName(type), null, type, null ); } return never(); }