/** * Set the metadata to visible or hidden. */ public MetadataCreatorImpl setVisible(boolean visible) { synchronized (registry) { this.visible = visible; registry.dirty(); } return this; }
/** * Marks this metadata creator as having been moved. Moved metadata will be * hidden on output, but will not hide any attributes or child elements that * have been moved elsewhere. */ MetadataCreatorImpl moved() { synchronized (registry) { this.isMoved = true; registry.dirty(); } return this; }
/** * Set the metadata to visible or hidden. */ public MetadataCreatorImpl setVirtualValue(VirtualValue virtualValue) { synchronized (registry) { this.virtualValue = virtualValue; registry.dirty(); } return this; }
/** * Set the name of the metadata. */ public MetadataCreatorImpl setName(QName name) { synchronized (registry) { this.name = name; registry.dirty(); } return this; }
/** * Set the metadata to required or optional. */ public MetadataCreatorImpl setRequired(boolean required) { synchronized (registry) { this.required = required; registry.dirty(); } return this; }
/** * Flattens this element, which just marks the builder as flattened. */ public ElementCreatorImpl flatten() { synchronized (registry) { this.flattened = true; registry.dirty(); } return this; }
/** * Set the name of the metadata. */ public MetadataCreatorImpl setName(QName name) { synchronized (registry) { this.name = name; registry.dirty(); } return this; }
/** * Marks this metadata creator as having been moved. Moved metadata will be * hidden on output, but will not hide any attributes or child elements that * have been moved elsewhere. */ MetadataCreatorImpl moved() { synchronized (registry) { this.isMoved = true; registry.dirty(); } return this; }
/** * Set the name of the metadata. */ public MetadataCreatorImpl setName(QName name) { synchronized (registry) { this.name = name; registry.dirty(); } return this; }
/** * Flattens this element, which just marks the builder as flattened. */ public ElementCreatorImpl flatten() { synchronized (registry) { this.flattened = true; registry.dirty(); } return this; }
/** * Set the metadata to visible or hidden. */ public MetadataCreatorImpl setVisible(boolean visible) { synchronized (registry) { this.visible = visible; registry.dirty(); } return this; }
/** * Set the metadata to required or optional. */ public MetadataCreatorImpl setRequired(boolean required) { synchronized (registry) { this.required = required; registry.dirty(); } return this; }
/** * Set the metadata to visible or hidden. */ public MetadataCreatorImpl setVisible(boolean visible) { synchronized (registry) { this.visible = visible; registry.dirty(); } return this; }
/** * Flattens this element, which just marks the builder as flattened. */ public ElementCreatorImpl flatten() { synchronized (registry) { this.flattened = true; registry.dirty(); } return this; }
/** * Marks this metadata creator as having been moved. Moved metadata will be * hidden on output, but will not hide any attributes or child elements that * have been moved elsewhere. */ MetadataCreatorImpl moved() { synchronized (registry) { this.isMoved = true; registry.dirty(); } return this; }
/** * Sets the virtual element for this creator based on the path. */ private void setElementPath(Path path) { synchronized (registry) { this.virtualElementHolder = VirtualElementHolder.of(path); registry.dirty(); } }
/** * Sets the virtual element for this creator based on the path. */ private void setElementPath(Path path) { synchronized (registry) { this.virtualElementHolder = VirtualElementHolder.of(path); registry.dirty(); } }
/** * Adds an adaptation to the given kind. */ public ElementCreatorImpl adapt(String kind, ElementKey<?, ?> adaptation) { synchronized (registry) { adaptations.put(kind, adaptation); registry.register(adaptation); registry.dirty(); } return this; }
/** * Adds an adaptation to the given kind. */ public ElementCreatorImpl adapt(String kind, ElementKey<?, ?> adaptation) { synchronized (registry) { adaptations.put(kind, adaptation); registry.register(adaptation); registry.dirty(); } return this; }
/** * Sets the virtual element for this creator based on the path. */ private void setElementPath(Path path) { synchronized (registry) { this.virtualElementHolder = VirtualElementHolder.of(path); registry.dirty(); } }