Class ClientComplexValueImpl
java.lang.Object
org.apache.olingo.client.api.domain.AbstractClientValue
org.apache.olingo.client.core.domain.ClientComplexValueImpl
- All Implemented Interfaces:
Iterable<ClientProperty>,ClientAnnotatable,ClientComplexValue,ClientLinked,ClientValue
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(ClientProperty field) Adds field to the complex type.booleanaddLink(ClientLink link) Puts the given link into one of available lists, based on its type.asEnum()Casts to enum value.Converts this instance as POJO collection.booleanGets field.getAssociationLink(String name) Gets association link with given name, if available, otherwise null.Returns all entity association links.getNavigationLink(String name) Gets navigation link with given name, if available, otherwise null.Returns all entity navigation links (including inline entities / entity sets).inthashCode()booleanCheck is is a complex value.booleanisEnum()Check is is an enum value.iterator()Complex property fields iterator.booleanremoveLink(ClientLink link) Removes the given link from any list (association, navigation, edit-media).intsize()Gets number of fields.toString()Methods inherited from class org.apache.olingo.client.api.domain.AbstractClientValue
asCollection, asComplex, asPrimitive, getTypeName, isCollection, isPrimitiveMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.olingo.client.api.domain.ClientValue
asCollection, asComplex, asPrimitive, getTypeName, isCollection, isPrimitiveMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ClientComplexValueImpl
Constructor.- Parameters:
typeName- type name.
-
-
Method Details
-
isEnum
public boolean isEnum()Description copied from interface:ClientValueCheck is is an enum value.- Specified by:
isEnumin interfaceClientValue- Returns:
- 'TRUE' if enum; 'FALSE' otherwise.
-
asEnum
Description copied from interface:ClientValueCasts to enum value.- Specified by:
asEnumin interfaceClientValue- Returns:
- enum value.
-
isComplex
public boolean isComplex()Description copied from class:AbstractClientValueCheck is is a complex value.- Specified by:
isComplexin interfaceClientValue- Overrides:
isComplexin classAbstractClientValue- Returns:
- 'TRUE' if complex; 'FALSE' otherwise.
-
addLink
Description copied from interface:ClientLinkedPuts the given link into one of available lists, based on its type.- Specified by:
addLinkin interfaceClientLinked- Parameters:
link- to be added- Returns:
- true if the given link was added in one of available lists
-
removeLink
Description copied from interface:ClientLinkedRemoves the given link from any list (association, navigation, edit-media).- Specified by:
removeLinkin interfaceClientLinked- Parameters:
link- to be removed- Returns:
- true if the given link was contained in one of available lists
-
getAssociationLink
Description copied from interface:ClientLinkedGets association link with given name, if available, otherwise null.- Specified by:
getAssociationLinkin interfaceClientLinked- Parameters:
name- candidate link name- Returns:
- association link with given name, if available, otherwise null
-
getAssociationLinks
Description copied from interface:ClientLinkedReturns all entity association links.- Specified by:
getAssociationLinksin interfaceClientLinked- Returns:
- OData entity links.
-
asJavaMap
Description copied from interface:ClientComplexValueConverts this instance as POJO collection.- Specified by:
asJavaMapin interfaceClientComplexValue- Returns:
- this instance as POJO collection
-
getAnnotations
- Specified by:
getAnnotationsin interfaceClientAnnotatable
-
add
Adds field to the complex type.- Specified by:
addin interfaceClientComplexValue- Parameters:
field- field to be added.- Returns:
- this (for fluent-style calls)
-
get
Gets field.- Specified by:
getin interfaceClientComplexValue- Parameters:
name- name of the field to be retrieved.- Returns:
- requested field.
-
iterator
Complex property fields iterator.- Specified by:
iteratorin interfaceIterable<ClientProperty>- Returns:
- fields iterator.
-
size
public int size()Gets number of fields.- Specified by:
sizein interfaceClientComplexValue- Returns:
- number of fields.
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractClientValue
-
equals
- Overrides:
equalsin classAbstractClientValue
-
toString
- Overrides:
toStringin classAbstractClientValue
-