/** * Constructs a transform for the declared metadata described by the given * creator. This constructor is only for use by subclasses, callers should * use either {@link AttributeTransform#create(AttributeCreatorImpl)} or * {@link ElementTransform#create(ElementCreatorImpl)} to build transforms * from their builders. */ Transform(MetadataCreatorImpl creator) { this.name = creator.getName(); this.required = creator.getRequired(); this.visible = creator.getVisible(); this.virtualValue = creator.getVirtualValue(); this.source = creator.getSource(); this.path = creator.getPath(); this.isMoved = creator.isMoved(); }
@Override public ElementCreatorImpl setName(QName name) { return (ElementCreatorImpl) super.setName(name); }
@Override public ElementCreatorImpl setRequired(boolean required) { return (ElementCreatorImpl) super.setRequired(required); }
super.merge(other);
super.merge(other);
/** * Constructs a transform for the declared metadata described by the given * creator. This constructor is only for use by subclasses, callers should * use either {@link AttributeTransform#create(AttributeCreatorImpl)} or * {@link ElementTransform#create(ElementCreatorImpl)} to build transforms * from their builders. */ Transform(MetadataCreatorImpl creator) { this.name = creator.getName(); this.required = creator.getRequired(); this.visible = creator.getVisible(); this.virtualValue = creator.getVirtualValue(); this.source = creator.getSource(); this.path = creator.getPath(); this.isMoved = creator.isMoved(); }
@Override public AttributeCreatorImpl setRequired(boolean required) { return (AttributeCreatorImpl) super.setRequired(required); }
@Override public ElementCreatorImpl setName(QName name) { return (ElementCreatorImpl) super.setName(name); }
super.merge(other);
/** * Constructs a transform for the declared metadata described by the given * creator. This constructor is only for use by subclasses, callers should * use either {@link AttributeTransform#create(AttributeCreatorImpl)} or * {@link ElementTransform#create(ElementCreatorImpl)} to build transforms * from their builders. */ Transform(MetadataCreatorImpl creator) { this.name = creator.getName(); this.required = creator.getRequired(); this.visible = creator.getVisible(); this.virtualValue = creator.getVirtualValue(); this.source = creator.getSource(); this.path = creator.getPath(); this.isMoved = creator.isMoved(); }
@Override public AttributeCreatorImpl setRequired(boolean required) { return (AttributeCreatorImpl) super.setRequired(required); }
@Override public ElementCreatorImpl setName(QName name) { return (ElementCreatorImpl) super.setName(name); }
@Override public ElementCreatorImpl setRequired(boolean required) { return (ElementCreatorImpl) super.setRequired(required); }
@Override public AttributeCreatorImpl setName(QName name) { return (AttributeCreatorImpl) super.setName(name); }
@Override public ElementCreatorImpl setRequired(boolean required) { return (ElementCreatorImpl) super.setRequired(required); }
@Override public AttributeCreatorImpl setName(QName name) { return (AttributeCreatorImpl) super.setName(name); }
@Override public AttributeCreatorImpl setRequired(boolean required) { return (AttributeCreatorImpl) super.setRequired(required); }
@Override public AttributeCreatorImpl setName(QName name) { return (AttributeCreatorImpl) super.setName(name); }
/** * Sets the source of this metadata creator */ void setSource(Path path, TransformKey key) { synchronized (registry) { this.path = path; this.source = key; registry.dirty(); // Explicitly set moved elements to optional, only the source should be // required. if (this.required == null) { setRequired(false); } } }
/** * Sets the source of this metadata creator */ void setSource(Path path, TransformKey key) { synchronized (registry) { this.path = path; this.source = key; registry.dirty(); // Explicitly set moved elements to optional, only the source should be // required. if (this.required == null) { setRequired(false); } } }