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 values.public AGRepositoryConnection.AttributeDefinition allowedValue(String value)
value
- public AGRepositoryConnection.AttributeDefinition ordered(boolean value)
value
- public AGRepositoryConnection.AttributeDefinition minimum(long value) throws Exception
value
- Exception
public AGRepositoryConnection.AttributeDefinition maximum(long value) throws Exception
value
- Exception
public AGRepositoryConnection.AttributeDefinition add() throws com.franz.agraph.http.exception.AGHttpException
com.franz.agraph.http.exception.AGHttpException