public abstract class

EdmStructuralType

extends EdmNonSimpleType
implements Named
java.lang.Object
   ↳ org.odata4j.edm.EdmItem
     ↳ org.odata4j.edm.EdmType
       ↳ org.odata4j.edm.EdmNonSimpleType
         ↳ org.odata4j.edm.EdmStructuralType
Known Direct Subclasses

Class Overview

In the Entity Data Model (EDM), structural types are EDM types that have members. Members define the content of the types derived from the StructuralType class. The StructuralType class has several derived types, such as the EdmEntityType and the EdmComplexType.

The EntityType represents a top-level concept, such as a customer or an order in the EDM.

The ComplexType represents a type that includes a set of properties like an entity type but does not include a key property.

Summary

Nested Classes
class EdmStructuralType.Builder<T, TBuilder> Mutable builder for EdmStructuralType objects. 
Fields
private EdmEntityType baseType
private final List<EdmProperty> declaredProperties
private final Boolean isAbstract
private final String name
private final String namespace
[Expand]
Inherited Fields
From class org.odata4j.edm.EdmType
From class org.odata4j.edm.EdmItem
Protected Constructors
EdmStructuralType(EdmEntityType baseType, String namespace, String name, List<EdmProperty.Builder> declaredProperties, EdmDocumentation doc, ImmutableList<EdmAnnotation<?>> annotations, Boolean isAbstract)
Public Methods
EdmProperty findDeclaredProperty(String name)
Finds a property by name on this structural type not including inherited properties.
EdmProperty findProperty(String name)
Finds a property by name, searching up the type hierarchy if necessary.
EdmEntityType getBaseType()
Enumerable<EdmProperty> getDeclaredProperties()
Gets the properties defined for this structural type not including inherited properties.
Boolean getIsAbstract()
String getName()
Gets the name.
String getNamespace()
Enumerable<EdmProperty> getProperties()
Gets the properties defined for this structural type including inherited properties.
boolean isRootType()
[Expand]
Inherited Methods
From class org.odata4j.edm.EdmNonSimpleType
From class org.odata4j.edm.EdmType
From class org.odata4j.edm.EdmItem
From class java.lang.Object
From interface org.odata4j.core.Named

Fields

private EdmEntityType baseType

private final List<EdmProperty> declaredProperties

private final Boolean isAbstract

private final String name

private final String namespace

Protected Constructors

protected EdmStructuralType (EdmEntityType baseType, String namespace, String name, List<EdmProperty.Builder> declaredProperties, EdmDocumentation doc, ImmutableList<EdmAnnotation<?>> annotations, Boolean isAbstract)

Parameters
baseType
namespace
name
declaredProperties
doc
annotations
isAbstract

Public Methods

public EdmProperty findDeclaredProperty (String name)

Finds a property by name on this structural type not including inherited properties.

Parameters
name

public EdmProperty findProperty (String name)

Finds a property by name, searching up the type hierarchy if necessary.

Parameters
name

public EdmEntityType getBaseType ()

public Enumerable<EdmProperty> getDeclaredProperties ()

Gets the properties defined for this structural type not including inherited properties.

public Boolean getIsAbstract ()

public String getName ()

Gets the name.

Returns
  • the name

public String getNamespace ()

public Enumerable<EdmProperty> getProperties ()

Gets the properties defined for this structural type including inherited properties.

public boolean isRootType ()