public class AGRepositoryConnection.AttributeDefinition extends Object
add
method will submit the definition to AG.
The object can be discarded once add is called.
| Constructor and Description |
|---|
AttributeDefinition(String name)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
AGRepositoryConnection.AttributeDefinition |
add()
Pass the current attribute definition to AllegroGraph for defining.
|
AGRepositoryConnection.AttributeDefinition |
allowedValue(String value)
Add an allowed value to the current list of allowed values for this attribute definition
|
AGRepositoryConnection.AttributeDefinition |
allowedValues(List<String> values)
Overwrite current setting of allowedValues with the argument List.
|
AGRepositoryConnection.AttributeDefinition |
maximum(long value)
The maximum number of times this attribute can be provided with a triple.
|
AGRepositoryConnection.AttributeDefinition |
minimum(long value)
The minimum number of times this attribute must be provided for a triple.
|
AGRepositoryConnection.AttributeDefinition |
ordered(boolean value)
Specifies whether the values allowed by this attribute definition are ordered.
|
public AttributeDefinition(String name)
name - of the attributepublic AGRepositoryConnection.AttributeDefinition allowedValues(List<String> values)
values, - a List<String> of allowed valuespublic AGRepositoryConnection.AttributeDefinition allowedValue(String value)
value - an allowed value for this attributepublic AGRepositoryConnection.AttributeDefinition ordered(boolean value)
value - boolean, if this attribute is orderedpublic AGRepositoryConnection.AttributeDefinition minimum(long value) throws Exception
value, - the minimum number of times this attribute can be specifiedException - if value is invalidpublic AGRepositoryConnection.AttributeDefinition maximum(long value) throws Exception
value - the maximum number of times this attribute can be specifiedException - if value is invalidpublic AGRepositoryConnection.AttributeDefinition add() throws AGHttpException
AGHttpException - if there is an error with the requestCopyright © 2024 Franz Inc.. All rights reserved.