Class CsdlNavigationProperty
java.lang.Object
org.apache.olingo.commons.api.edm.provider.CsdlAbstractEdmItem
org.apache.olingo.commons.api.edm.provider.CsdlNavigationProperty
- All Implemented Interfaces:
CsdlAnnotatable
,CsdlNamed
public class CsdlNavigationProperty
extends CsdlAbstractEdmItem
implements CsdlNamed, CsdlAnnotatable
The type Csdl navigation property.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a list of annotationsgetName()
Gets name.Gets on delete.Gets partner.Gets referential constraints.getType()
Gets type.Gets type fQN.boolean
Is collection.boolean
Is contains target.Is nullable.setAnnotations
(List<CsdlAnnotation> annotations) Sets a list of annotationssetCollection
(boolean isCollection) Sets collection.setContainsTarget
(boolean containsTarget) Sets contains target.Sets name.setNullable
(Boolean nullable) Sets nullable.setOnDelete
(CsdlOnDelete onDelete) Sets on delete.setPartner
(String partner) Sets partner.setReferentialConstraints
(List<CsdlReferentialConstraint> referentialConstraints) Sets referential constraints.Sets type.setType
(FullQualifiedName type) Sets type.Methods inherited from class org.apache.olingo.commons.api.edm.provider.CsdlAbstractEdmItem
getAllByName, getOneByName
-
Constructor Details
-
CsdlNavigationProperty
public CsdlNavigationProperty()
-
-
Method Details
-
getName
Description copied from interface:CsdlNamed
Gets name. -
isCollection
public boolean isCollection()Is collection.- Returns:
- the boolean
-
setCollection
Sets collection.- Parameters:
isCollection
- the is collection- Returns:
- the collection
-
setName
Sets name.- Parameters:
name
- the name- Returns:
- the name
-
getTypeFQN
Gets type fQN.- Returns:
- the type fQN
-
getType
Gets type.- Returns:
- the type
-
setType
Sets type.- Parameters:
type
- the type- Returns:
- the type
-
setType
Sets type.- Parameters:
type
- the type- Returns:
- the type
-
getPartner
Gets partner.- Returns:
- the partner
-
setPartner
Sets partner.- Parameters:
partner
- the partner- Returns:
- the partner
-
isContainsTarget
public boolean isContainsTarget()Is contains target.- Returns:
- the boolean
-
setContainsTarget
Sets contains target.- Parameters:
containsTarget
- the contains target- Returns:
- the contains target
-
getReferentialConstraints
Gets referential constraints.- Returns:
- the referential constraints
-
setReferentialConstraints
public CsdlNavigationProperty setReferentialConstraints(List<CsdlReferentialConstraint> referentialConstraints) Sets referential constraints.- Parameters:
referentialConstraints
- the referential constraints- Returns:
- the referential constraints
-
isNullable
Is nullable.- Returns:
- the boolean
-
setNullable
Sets nullable.- Parameters:
nullable
- the nullable- Returns:
- the nullable
-
getOnDelete
Gets on delete.- Returns:
- the on delete
-
setOnDelete
Sets on delete.- Parameters:
onDelete
- the on delete- Returns:
- the on delete
-
getAnnotations
Description copied from interface:CsdlAnnotatable
Returns a list of annotations- Specified by:
getAnnotations
in interfaceCsdlAnnotatable
- Returns:
- list of annotations
-
setAnnotations
Sets a list of annotations- Parameters:
annotations
- list of annotations- Returns:
- this instance
-