public class ClientComplexValueImpl extends AbstractClientValue implements ClientComplexValue
| Constructor and Description |
|---|
ClientComplexValueImpl(String typeName)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ClientComplexValue |
add(ClientProperty field)
Adds field to the complex type.
|
boolean |
addLink(ClientLink link)
Puts the given link into one of available lists, based on its type.
|
ClientEnumValue |
asEnum()
Casts to enum value.
|
Map<String,Object> |
asJavaMap()
Converts this instance as POJO collection.
|
boolean |
equals(Object obj) |
ClientProperty |
get(String name)
Gets field.
|
List<ClientAnnotation> |
getAnnotations() |
ClientLink |
getAssociationLink(String name)
Gets association link with given name, if available, otherwise null.
|
List<ClientLink> |
getAssociationLinks()
Returns all entity association links.
|
ClientLink |
getNavigationLink(String name)
Gets navigation link with given name, if available, otherwise null.
|
List<ClientLink> |
getNavigationLinks()
Returns all entity navigation links (including inline entities / entity sets).
|
int |
hashCode() |
boolean |
isComplex()
Check is is a complex value.
|
boolean |
isEnum()
Check is is an enum value.
|
Iterator<ClientProperty> |
iterator()
Complex property fields iterator.
|
boolean |
removeLink(ClientLink link)
Removes the given link from any list (association, navigation, edit-media).
|
int |
size()
Gets number of fields.
|
String |
toString() |
asCollection, asComplex, asPrimitive, getTypeName, isCollection, isPrimitiveclone, finalize, getClass, notify, notifyAll, wait, wait, waitasCollection, asComplex, asPrimitive, getTypeName, isCollection, isPrimitiveforEach, spliteratorpublic ClientComplexValueImpl(String typeName)
typeName - type name.public boolean isEnum()
ClientValueisEnum in interface ClientValuepublic ClientEnumValue asEnum()
ClientValueasEnum in interface ClientValuepublic boolean isComplex()
AbstractClientValueisComplex in interface ClientValueisComplex in class AbstractClientValuepublic boolean addLink(ClientLink link)
ClientLinkedaddLink in interface ClientLinkedlink - to be addedpublic boolean removeLink(ClientLink link)
ClientLinkedremoveLink in interface ClientLinkedlink - to be removedpublic ClientLink getNavigationLink(String name)
ClientLinkedgetNavigationLink in interface ClientLinkedname - candidate link namepublic List<ClientLink> getNavigationLinks()
ClientLinkedgetNavigationLinks in interface ClientLinkedpublic ClientLink getAssociationLink(String name)
ClientLinkedgetAssociationLink in interface ClientLinkedname - candidate link namepublic List<ClientLink> getAssociationLinks()
ClientLinkedgetAssociationLinks in interface ClientLinkedpublic Map<String,Object> asJavaMap()
ClientComplexValueasJavaMap in interface ClientComplexValuepublic List<ClientAnnotation> getAnnotations()
getAnnotations in interface ClientAnnotatablepublic ClientComplexValue add(ClientProperty field)
add in interface ClientComplexValuefield - field to be added.public ClientProperty get(String name)
get in interface ClientComplexValuename - name of the field to be retrieved.public Iterator<ClientProperty> iterator()
iterator in interface Iterable<ClientProperty>public int size()
size in interface ClientComplexValuepublic int hashCode()
hashCode in class AbstractClientValuepublic boolean equals(Object obj)
equals in class AbstractClientValuepublic String toString()
toString in class AbstractClientValueCopyright © 2023. All rights reserved.