/** * Adds an Any to a given sequence. If isCollection is true, maxOccurs will * be set to unbounded. * * @param seq * @param isCollection * @see Any * @see Occurs.UNBOUNDED */ protected void processAnyMapping(Sequence seq, boolean isCollection) { Any any = new Any(); any.setProcessContents(Any.LAX); any.setMinOccurs(Occurs.ZERO); if (isCollection) { any.setMaxOccurs(Occurs.UNBOUNDED); } seq.addAny(any); }
/** * Adds an Any to a given sequence. If isCollection is true, maxOccurs will * be set to unbounded. * * @param seq * @param isCollection * @see Any * @see Occurs.UNBOUNDED */ protected void processAnyMapping(Sequence seq, boolean isCollection) { Any any = new Any(); any.setProcessContents(Any.LAX); any.setMinOccurs(Occurs.ZERO); if (isCollection) { any.setMaxOccurs(Occurs.UNBOUNDED); } seq.addAny(any); }
/** * Adds an Any to a given sequence. If isCollection is true, maxOccurs will * be set to unbounded. * * @param seq * @param isCollection * @see Any * @see Occurs.UNBOUNDED */ protected void processAnyMapping(Sequence seq, boolean isCollection) { Any any = new Any(); any.setProcessContents(Any.LAX); any.setMinOccurs(Occurs.ZERO); if (isCollection) { any.setMaxOccurs(Occurs.UNBOUNDED); } seq.addAny(any); }
/** * Convenience method for processing an any property. Required * schema components will be generated and set accordingly. * * @param property the choice property to be processed * @param compositor the sequence/choice/all to modify * @param isCollection if true will be unbounded * @param anyNamespace value for the Any's namespace attribute */ private void addAnyToSchema(Property property, TypeDefParticle compositor, boolean isCollection, String anyNamespace) { Any any = new Any(); any.setNamespace(anyNamespace); if (property.isLax()) { any.setProcessContents(Any.LAX); } else { any.setProcessContents(SKIP); } if (isCollection) { any.setMinOccurs(Occurs.ZERO); any.setMaxOccurs(Occurs.UNBOUNDED); } if (compositor instanceof Sequence) { ((Sequence) compositor).addAny(any); } else if (compositor instanceof Choice) { ((Choice) compositor).addAny(any); } }
/** * Convenience method for processing an any property. Required * schema components will be generated and set accordingly. * * @param property the choice property to be processed * @param compositor the sequence/choice/all to modify * @param isCollection if true will be unbounded * @param anyNamespace value for the Any's namespace attribute */ private void addAnyToSchema(Property property, TypeDefParticle compositor, boolean isCollection, String anyNamespace) { Any any = new Any(); any.setNamespace(anyNamespace); if (property.isLax()) { any.setProcessContents(Any.LAX); } else { any.setProcessContents(SKIP); } if (isCollection) { any.setMinOccurs(Occurs.ZERO); any.setMaxOccurs(Occurs.UNBOUNDED); } if (compositor instanceof Sequence) { ((Sequence) compositor).addAny(any); } else if (compositor instanceof Choice) { ((Choice) compositor).addAny(any); } }