void addAllElements(Block b) { for( Term t : terms ) t.addAllElements(b); }
boolean isOptional() { return isOptional||term.isOptional(); }
boolean isRepeated() { return isRepeated||term.isRepeated(); } }
/** * 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 addAllElements(Block b) { for( Term t : terms ) t.addAllElements(b); }
boolean isRepeated() { return isRepeated||term.isRepeated(); } }
boolean isOptional() { return isOptional||term.isOptional(); }
/** * 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 addAllElements(Block b) { for( Term t : terms ) t.addAllElements(b); }
boolean isRepeated() { return isRepeated||term.isRepeated(); } }
boolean isOptional() { return isOptional||term.isOptional(); }
/** * 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 addAllElements(Block b) { for( Term t : terms ) t.addAllElements(b); }
boolean isRepeated() { return isRepeated||term.isRepeated(); } }
boolean isOptional() { return isOptional||term.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 addAllElements(Block b) { term.addAllElements(b); }
boolean isRepeated() { return isRepeated||term.isRepeated(); } }