Class JSLinksImpl
- java.lang.Object
-
- org.bedework.jsforj.impl.values.JSValueImpl
-
- org.bedework.jsforj.impl.values.collections.JSMapImpl<K,E>
-
- org.bedework.jsforj.impl.values.collections.JSIdMapImpl<String,JSLink>
-
- org.bedework.jsforj.impl.values.collections.JSLinksImpl
-
-
Field Summary
-
Fields inherited from class org.bedework.jsforj.impl.values.JSValueImpl
factory, type
-
-
Constructor Summary
Constructors Constructor Description JSLinksImpl(String type, com.fasterxml.jackson.databind.JsonNode node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringconvertFieldName(String fieldName)protected StringconvertKey(String key)JSProperty<JSLink>findLink(String href)Try to find the link object with the given hrefList<JSProperty<JSLink>>getAll(String rel)protected StringgetPropertyType()JSProperty<JSLink>makeLink()Create and add a new link object with a random uuid as key-
Methods inherited from class org.bedework.jsforj.impl.values.collections.JSIdMapImpl
nextId
-
Methods inherited from class org.bedework.jsforj.impl.values.collections.JSMapImpl
get, get, getKeys, makeEntry, makeProperty, postCreate, put, put, remove, remove, size
-
Methods inherited from class org.bedework.jsforj.impl.values.JSValueImpl
assertArray, assertBooleanNode, assertIntNode, assertObject, assertStringNode, clear, equals, getBooleanProperty, getBooleanValue, getChanged, getFactory, getNode, getObjectType, getOverrideGenerated, getOwner, getParentProperty, getProperties, getProperty, getProperty, getPropertyValue, getStringProperty, getStringValue, getType, getUnsignedIntegerProperty, getValue, hasChanges, hasProperty, isString, makeProperty, markOverrideGenerated, newProperty, preWrite, removeProperty, setMasterCopy, setOwner, setParentProperty, setProperty, setProperty, setProperty, setProperty, setProperty, writeValue, writeValueAsString, writeValueAsStringFormatted
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bedework.jsforj.model.values.collections.JSMap
get, get, getKeys, makeEntry, put, put, remove, remove, size
-
Methods inherited from interface org.bedework.jsforj.model.values.JSValue
clear, copy, getBooleanProperty, getBooleanValue, getChanged, getNode, getObjectType, getOverrideGenerated, getOwner, getParentProperty, getProperties, getProperty, getProperty, getPropertyValue, getStringProperty, getStringValue, getType, getUnsignedIntegerProperty, getValue, hasChanges, hasProperty, isString, makeProperty, markOverrideGenerated, newProperty, preWrite, removeProperty, setProperty, setProperty, setProperty, setProperty, setProperty, writeValue, writeValueAsString, writeValueAsStringFormatted
-
-
-
-
Constructor Detail
-
JSLinksImpl
public JSLinksImpl(String type, com.fasterxml.jackson.databind.JsonNode node)
-
-
Method Detail
-
getPropertyType
protected String getPropertyType()
- Specified by:
getPropertyTypein classJSMapImpl<String,JSLink>
-
convertKey
protected String convertKey(String key)
- Specified by:
convertKeyin classJSMapImpl<String,JSLink>- Parameters:
key- external form- Returns:
- String
-
convertFieldName
protected String convertFieldName(String fieldName)
- Specified by:
convertFieldNamein classJSMapImpl<String,JSLink>
-
getAll
public List<JSProperty<JSLink>> getAll(String rel)
-
makeLink
public JSProperty<JSLink> makeLink()
Description copied from interface:JSLinksCreate and add a new link object with a random uuid as key
-
-