public final class AttributeMetaData
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Gets the name of the attribute.
|
boolean |
isSameForAll()
Does the attribute have a "SameForAll" constraint or not.
|
static AttributeMetaData |
of(io.sphere.sdk.products.attributes.AttributeDefinition attributeDefinition)
Uses the supplied
AttributeDefinition instance to infer the name and whether it has the
constraint "SameForAll" or not, to instantiate a new AttributeMetaData containing the
aforementioned information. |
public static AttributeMetaData of(@Nonnull io.sphere.sdk.products.attributes.AttributeDefinition attributeDefinition)
AttributeDefinition
instance to infer the name and whether it has the
constraint "SameForAll" or not, to instantiate a new AttributeMetaData
containing the
aforementioned information.attributeDefinition
- the instance for which the needed information is used.AttributeMetaData
.public java.lang.String getName()
public boolean isSameForAll()