/** * Define its content model. */ void define(short contentModelType, Term contentModel, Locator locator) { assert this.contentModel==null; // may not be called twice this.contentModelType = contentModelType; this.contentModel = contentModel; this.locator = locator; contentModel.normalize(normalizedBlocks,false); for( Block b : normalizedBlocks ) { if(b.isRepeated || b.elements.size()>1) { for( Element e : b.elements ) { owner.getOrCreateElement(e.name).mustBeClass = true; } } } }
/** * Define its content model. */ void define(short contentModelType, Term contentModel, Locator locator) { assert this.contentModel==null; // may not be called twice this.contentModelType = contentModelType; this.contentModel = contentModel; this.locator = locator; contentModel.normalize(normalizedBlocks,false); for( Block b : normalizedBlocks ) { if(b.isRepeated || b.elements.size()>1) { for( Element e : b.elements ) { owner.getOrCreateElement(e.name).mustBeClass = true; } } } }
/** * Define its content model. */ void define(short contentModelType, Term contentModel, Locator locator) { assert this.contentModel==null; // may not be called twice this.contentModelType = contentModelType; this.contentModel = contentModel; this.locator = locator; contentModel.normalize(normalizedBlocks,false); for( Block b : normalizedBlocks ) { if(b.isRepeated || b.elements.size()>1) { for( Element e : b.elements ) { owner.getOrCreateElement(e.name).mustBeClass = true; } } } }
/** * Define its content model. */ void define(short contentModelType, Term contentModel, Locator locator) { assert this.contentModel==null; // may not be called twice this.contentModelType = contentModelType; this.contentModel = contentModel; this.locator = locator; contentModel.normalize(normalizedBlocks,false); for( Block b : normalizedBlocks ) { if(b.isRepeated || b.elements.size()>1) { for( Element e : b.elements ) { owner.getOrCreateElement(e.name).mustBeClass = true; } } } }
/** * Define its content model. */ void define(short contentModelType, Term contentModel, Locator locator) { assert this.contentModel==null; // may not be called twice this.contentModelType = contentModelType; this.contentModel = contentModel; this.locator = locator; contentModel.normalize(normalizedBlocks,false); for( Block b : normalizedBlocks ) { if(b.isRepeated || b.elements.size()>1) { for( Element e : b.elements ) { owner.getOrCreateElement(e.name).mustBeClass = true; } } } }
void normalize(List<Block> r, boolean optional) { if(isRepeated) { Block b = new Block(isOptional||optional,true); addAllElements(b); r.add(b); } else { term.normalize(r,optional||isOptional); } }
void normalize(List<Block> r, boolean optional) { if(isRepeated) { Block b = new Block(isOptional||optional,true); addAllElements(b); r.add(b); } else { term.normalize(r,optional||isOptional); } }
void normalize(List<Block> r, boolean optional) { if(isRepeated) { Block b = new Block(isOptional||optional,true); addAllElements(b); r.add(b); } else { term.normalize(r,optional||isOptional); } }
void normalize(List<Block> r, boolean optional) { if(isRepeated) { Block b = new Block(isOptional||optional,true); addAllElements(b); r.add(b); } else { term.normalize(r,optional||isOptional); } }
void normalize(List<Block> r, boolean optional) { if(isRepeated) { Block b = new Block(isOptional||optional,true); addAllElements(b); r.add(b); } else { term.normalize(r,optional||isOptional); } }
void normalize(List<Block> r, boolean optional) { switch(kind) { case SEQUENCE: for( Term t : terms ) t.normalize(r,optional); return; case CHOICE: Block b = new Block(isOptional()||optional,isRepeated()); addAllElements(b); r.add(b); return; } }
void normalize(List<Block> r, boolean optional) { switch(kind) { case SEQUENCE: for( Term t : terms ) t.normalize(r,optional); return; case CHOICE: Block b = new Block(isOptional()||optional,isRepeated()); addAllElements(b); r.add(b); return; } }
void normalize(List<Block> r, boolean optional) { switch(kind) { case SEQUENCE: for( Term t : terms ) t.normalize(r,optional); return; case CHOICE: Block b = new Block(isOptional()||optional,isRepeated()); addAllElements(b); r.add(b); return; } }
void normalize(List<Block> r, boolean optional) { switch(kind) { case SEQUENCE: for( Term t : terms ) t.normalize(r,optional); return; case CHOICE: Block b = new Block(isOptional()||optional,isRepeated()); addAllElements(b); r.add(b); return; } }
void normalize(List<Block> r, boolean optional) { switch(kind) { case SEQUENCE: for( Term t : terms ) t.normalize(r,optional); return; case CHOICE: Block b = new Block(isOptional()||optional,isRepeated()); addAllElements(b); r.add(b); return; } }
contentModel.normalize(n,false);
contentModel.normalize(n,false);
contentModel.normalize(n,false);
contentModel.normalize(n,false);
contentModel.normalize(n,false);