public interface AttributeCreator extends MetadataCreator
AttributeKey
associated with the metadata. Setting
the name here will override the default.Modifier and Type | Method and Description |
---|---|
AttributeCreator |
setName(QName name)
Sets the name of the attribute.
|
AttributeCreator |
setRequired(boolean required)
Sets the requiredness of this attribute.
|
AttributeCreator |
setVirtualValue(Metadata.VirtualValue virtualValue)
Sets the virtual value for the attribute.
|
AttributeCreator |
setVisible(boolean visible)
Sets whether this attribute is visible.
|
AttributeCreator setName(QName name)
AttributeKey
.setName
in interface MetadataCreator
name
- the new name to use for the attribute.AttributeCreator setRequired(boolean required)
setRequired
in interface MetadataCreator
required
- true to set the attribute to required, false to set it
to optional (the default).AttributeCreator setVisible(boolean visible)
setVisible
in interface MetadataCreator
visible
- true to make the attribute visible (the default), false to
hide it from the output.AttributeCreator setVirtualValue(Metadata.VirtualValue virtualValue)
setVirtualValue
in interface MetadataCreator