public TypeUse listSimpleType(XSListSimpleType type) { // bind item type individually and then compose them into a list // facets on the list shouldn't be taken account when binding item types, // so weed to call build(), not compose(). XSSimpleType itemType = type.getItemType(); refererStack.push(itemType); TypeUse tu = TypeUseFactory.makeCollection(build(type.getItemType())); refererStack.pop(); return tu; }
public TypeUse listSimpleType(XSListSimpleType type) { // bind item type individually and then compose them into a list // facets on the list shouldn't be taken account when binding item types, // so weed to call build(), not compose(). XSSimpleType itemType = type.getItemType(); refererStack.push(itemType); TypeUse tu = TypeUseFactory.makeCollection(build(type.getItemType())); refererStack.pop(); return tu; }
public TypeUse listSimpleType(XSListSimpleType type) { // bind item type individually and then compose them into a list // facets on the list shouldn't be taken account when binding item types, // so weed to call build(), not compose(). XSSimpleType itemType = type.getItemType(); refererStack.push(itemType); TypeUse tu = TypeUseFactory.makeCollection(build(type.getItemType())); refererStack.pop(); return tu; }
public TypeUse listSimpleType(XSListSimpleType type) { // bind item type individually and then compose them into a list // facets on the list shouldn't be taken account when binding item types, // so weed to call build(), not compose(). XSSimpleType itemType = type.getItemType(); refererStack.push(itemType); TypeUse tu = TypeUseFactory.makeCollection(build(type.getItemType())); refererStack.pop(); return tu; }
public TypeUse listSimpleType(XSListSimpleType type) { // bind item type individually and then compose them into a list // facets on the list shouldn't be taken account when binding item types, // so weed to call build(), not compose(). XSSimpleType itemType = type.getItemType(); refererStack.push(itemType); TypeUse tu = TypeUseFactory.makeCollection(build(type.getItemType())); refererStack.pop(); return tu; }
public T listSimpleType(XSListSimpleType listSimpleType) { return listSimpleType.getItemType().apply( (XSSimpleTypeFunction<T>) this); }
public T listSimpleType(XSListSimpleType listSimpleType) { return listSimpleType.getItemType().apply( (XSSimpleTypeFunction<T>) this); }
public void listSimpleType(XSListSimpleType type) { if(check(type)) type.getItemType().visit((XSSimpleTypeVisitor)this); }
public void listSimpleType(XSListSimpleType type) { if(check(type)) type.getItemType().visit((XSSimpleTypeVisitor)this); }
public void listSimpleType(XSListSimpleType type) { if(check(type)) type.getItemType().visit((XSSimpleTypeVisitor)this); }
public void listSimpleType(XSListSimpleType type) { if(check(type)) type.getItemType().visit((XSSimpleTypeVisitor)this); }
public void listSimpleType(XSListSimpleType type) { if(check(type)) type.getItemType().visit((XSSimpleTypeVisitor)this); }
public Iterator<XSSimpleType> simpleType(XSSimpleType type) { XSListSimpleType baseList = type.getBaseListType(); if(baseList==null) return empty(); return singleton(baseList.getItemType()); }
public Iterator<XSSimpleType> simpleType(XSSimpleType type) { XSListSimpleType baseList = type.getBaseListType(); if(baseList==null) return empty(); return singleton(baseList.getItemType()); }
public Iterator<XSSimpleType> simpleType(XSSimpleType type) { XSListSimpleType baseList = type.getBaseListType(); if(baseList==null) return empty(); return singleton(baseList.getItemType()); }
public Iterator<XSSimpleType> simpleType(XSSimpleType type) { XSListSimpleType baseList = type.getBaseListType(); if(baseList==null) return empty(); return singleton(baseList.getItemType()); }
public Iterator<XSSimpleType> simpleType(XSSimpleType type) { XSListSimpleType baseList = type.getBaseListType(); if(baseList==null) return empty(); return singleton(baseList.getItemType()); }
public void listSimpleType( XSListSimpleType type ) { XSSimpleType itemType = type.getItemType(); if(itemType.isLocal()) { println("<list>"); indent++; simpleType(itemType); indent--; println("</list>"); } else { // global type println(MessageFormat.format("<list itemType=\"'{'{0}'}'{1}\" />", itemType.getTargetNamespace(), itemType.getName())); } }
public void listSimpleType( XSListSimpleType type ) { XSSimpleType itemType = type.getItemType(); if(itemType.isLocal()) { println("<list>"); indent++; simpleType(itemType); indent--; println("</list>"); } else { // global type println(MessageFormat.format("<list itemType=\"'{'{0}'}'{1}\" />", itemType.getTargetNamespace(), itemType.getName())); } }
private void write(Struct st, XSAttributeDecl decl, boolean goingup) { if (decl.getType().isRestriction() && (decl.getType().getName() == null || !basicTypes .contains(decl.getType().getName()))) { String typeName = processSimpleType(decl.getType(), decl.getName()); st.addField(decl.getName(), typeName, goingup, false, decl.getFixedValue(), xsdMapping); } else if (decl.getType().isList()) { st.addField(decl.getName(), decl.getType().asList().getItemType() .getName(), goingup, true, null, xsdMapping); } else { st.addField(decl.getName(), decl.getType().getName(), goingup, false, decl.getFixedValue(), xsdMapping); } }