test_class.declarator: tto = "</>;rt=\"oma.lwm2m\";ct=100, </1/101>,</1/102>, </2/0>, </2/1> ;empty"
test_class.original_string: String tto = "</>;rt=\"oma.lwm2m\";ct=100, </1/101>,</1/102>, </2/0>, </2/1> ;empty";
test_class.type: String
test_class.var_name: tto
test_class.file: leshan-server-core/src/test/java/org/eclipse/leshan/server/registration/RegistrationTest.java
test_class.identifier: RegistrationTest
test_case.body: @Test
      public void test_supported_object_given_an_object_link_with_rootpath() {
          Registration reg = given_a_registration_with_object_link_like("</root>;rt=\"oma.lwm2m\", </root/1/0>,</3/0>");
  
          // Ensure supported objects are correct
          Map<Integer, String> supportedObject = reg.getSupportedObject();
          assertEquals(1, supportedObject.size());
          assertEquals(ObjectModel.DEFAULT_VERSION, supportedObject.get(1));
          assertNull(supportedObject.get(3));
      }
test_case.class_method_signature: RegistrationTest.test_supported_object_given_an_object_link_with_rootpath()
test_case.full_signature: @Test public void test_supported_object_given_an_object_link_with_rootpath()
test_case.identifier: test_supported_object_given_an_object_link_with_rootpath
test_case.invocations: given_a_registration_with_object_link_like getSupportedObject assertEquals size assertEquals get assertNull get
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test_supported_object_given_an_object_link_with_rootpath()
focal_class.declarator: serialVersionUID = 1L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = 1L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: DEFAULT_LIFETIME_IN_SEC = 86400L
focal_class.modifier: private static final
focal_class.original_string: private static final long DEFAULT_LIFETIME_IN_SEC = 86400L;
focal_class.type: long
focal_class.var_name: DEFAULT_LIFETIME_IN_SEC
focal_class.declarator: registrationDate
focal_class.modifier: private final
focal_class.original_string: private final Date registrationDate;
focal_class.type: Date
focal_class.var_name: registrationDate
focal_class.declarator: identity
focal_class.modifier: private final
focal_class.original_string: private final Identity identity;
focal_class.type: Identity
focal_class.var_name: identity
focal_class.declarator: lifeTimeInSec
focal_class.modifier: private final
focal_class.original_string: private final long lifeTimeInSec;
focal_class.type: long
focal_class.var_name: lifeTimeInSec
focal_class.declarator: smsNumber
focal_class.modifier: private final
focal_class.original_string: private final String smsNumber;
focal_class.type: String
focal_class.var_name: smsNumber
focal_class.declarator: lwM2mVersion
focal_class.modifier: private final
focal_class.original_string: private final String lwM2mVersion;
focal_class.type: String
focal_class.var_name: lwM2mVersion
focal_class.declarator: bindingMode
focal_class.modifier: private final
focal_class.original_string: private final BindingMode bindingMode;
focal_class.type: BindingMode
focal_class.var_name: bindingMode
focal_class.declarator: endpoint
focal_class.modifier: private final
focal_class.original_string: private final String endpoint;
focal_class.type: String
focal_class.var_name: endpoint
focal_class.declarator: id
focal_class.modifier: private final
focal_class.original_string: private final String id;
focal_class.type: String
focal_class.var_name: id
focal_class.declarator: objectLinks
focal_class.modifier: private final
focal_class.original_string: private final Link[] objectLinks;
focal_class.type: Link[]
focal_class.var_name: objectLinks
focal_class.declarator: supportedObjects
focal_class.modifier: private final
focal_class.original_string: private final AtomicReference<Map<Integer, String>> supportedObjects;
focal_class.type: AtomicReference<Map<Integer, String>>
focal_class.var_name: supportedObjects
focal_class.declarator: additionalRegistrationAttributes
focal_class.modifier: private final
focal_class.original_string: private final Map<String, String> additionalRegistrationAttributes;
focal_class.type: Map<String, String>
focal_class.var_name: additionalRegistrationAttributes
focal_class.declarator: rootPath
focal_class.modifier: private final
focal_class.original_string: private final String rootPath;
focal_class.type: String
focal_class.var_name: rootPath
focal_class.declarator: lastUpdate
focal_class.modifier: private final
focal_class.original_string: private final Date lastUpdate;
focal_class.type: Date
focal_class.var_name: lastUpdate
focal_class.file: leshan-server-core/src/main/java/org/eclipse/leshan/server/registration/Registration.java
focal_class.identifier: Registration
focal_class.interfaces: implements Serializable
focal_class.class_method_signature: Registration.Registration(String id, String endpoint, Identity identity, String lwM2mVersion, Long lifetimeInSec,
              String smsNumber, BindingMode bindingMode, Link[] objectLinks, Date registrationDate, Date lastUpdate,
              Map<String, String> additionalRegistrationAttributes, Map<Integer, String> supportedObjects)
focal_class.full_signature: protected  Registration(String id, String endpoint, Identity identity, String lwM2mVersion, Long lifetimeInSec,
              String smsNumber, BindingMode bindingMode, Link[] objectLinks, Date registrationDate, Date lastUpdate,
              Map<String, String> additionalRegistrationAttributes, Map<Integer, String> supportedObjects)
focal_class.identifier: Registration
focal_class.modifiers: protected
focal_class.parameters: (String id, String endpoint, Identity identity, String lwM2mVersion, Long lifetimeInSec,
              String smsNumber, BindingMode bindingMode, Link[] objectLinks, Date registrationDate, Date lastUpdate,
              Map<String, String> additionalRegistrationAttributes, Map<Integer, String> supportedObjects)
focal_class.signature:  Registration(String id, String endpoint, Identity identity, String lwM2mVersion, Long lifetimeInSec,
              String smsNumber, BindingMode bindingMode, Link[] objectLinks, Date registrationDate, Date lastUpdate,
              Map<String, String> additionalRegistrationAttributes, Map<Integer, String> supportedObjects)
focal_class.class_method_signature: Registration.getId()
focal_class.full_signature: public String getId()
focal_class.identifier: getId
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getId()
focal_class.class_method_signature: Registration.getRegistrationDate()
focal_class.full_signature: public Date getRegistrationDate()
focal_class.identifier: getRegistrationDate
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Date
focal_class.signature: Date getRegistrationDate()
focal_class.class_method_signature: Registration.getIdentity()
focal_class.full_signature: public Identity getIdentity()
focal_class.identifier: getIdentity
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Identity
focal_class.signature: Identity getIdentity()
focal_class.class_method_signature: Registration.getSocketAddress()
focal_class.full_signature: public InetSocketAddress getSocketAddress()
focal_class.identifier: getSocketAddress
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: InetSocketAddress
focal_class.signature: InetSocketAddress getSocketAddress()
focal_class.class_method_signature: Registration.getAddress()
focal_class.full_signature: public InetAddress getAddress()
focal_class.identifier: getAddress
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: InetAddress
focal_class.signature: InetAddress getAddress()
focal_class.class_method_signature: Registration.getPort()
focal_class.full_signature: public int getPort()
focal_class.identifier: getPort
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getPort()
focal_class.class_method_signature: Registration.getObjectLinks()
focal_class.full_signature: public Link[] getObjectLinks()
focal_class.identifier: getObjectLinks
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Link[]
focal_class.signature: Link[] getObjectLinks()
focal_class.class_method_signature: Registration.getSortedObjectLinks()
focal_class.full_signature: public Link[] getSortedObjectLinks()
focal_class.identifier: getSortedObjectLinks
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Link[]
focal_class.signature: Link[] getSortedObjectLinks()
focal_class.class_method_signature: Registration.isNumber(String s)
focal_class.full_signature: private static boolean isNumber(String s)
focal_class.identifier: isNumber
focal_class.modifiers: private static
focal_class.parameters: (String s)
focal_class.return: boolean
focal_class.signature: boolean isNumber(String s)
focal_class.class_method_signature: Registration.getLifeTimeInSec()
focal_class.full_signature: public Long getLifeTimeInSec()
focal_class.identifier: getLifeTimeInSec
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Long
focal_class.signature: Long getLifeTimeInSec()
focal_class.class_method_signature: Registration.getSmsNumber()
focal_class.full_signature: public String getSmsNumber()
focal_class.identifier: getSmsNumber
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getSmsNumber()
focal_class.class_method_signature: Registration.getLwM2mVersion()
focal_class.full_signature: public String getLwM2mVersion()
focal_class.identifier: getLwM2mVersion
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getLwM2mVersion()
focal_class.class_method_signature: Registration.getBindingMode()
focal_class.full_signature: public BindingMode getBindingMode()
focal_class.identifier: getBindingMode
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: BindingMode
focal_class.signature: BindingMode getBindingMode()
focal_class.class_method_signature: Registration.getRootPath()
focal_class.full_signature: public String getRootPath()
focal_class.identifier: getRootPath
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getRootPath()
focal_class.class_method_signature: Registration.getEndpoint()
focal_class.full_signature: public String getEndpoint()
focal_class.identifier: getEndpoint
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getEndpoint()
focal_class.class_method_signature: Registration.getLastUpdate()
focal_class.full_signature: public Date getLastUpdate()
focal_class.identifier: getLastUpdate
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Date
focal_class.signature: Date getLastUpdate()
focal_class.class_method_signature: Registration.getExpirationTimeStamp()
focal_class.full_signature: public long getExpirationTimeStamp()
focal_class.identifier: getExpirationTimeStamp
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getExpirationTimeStamp()
focal_class.class_method_signature: Registration.getExpirationTimeStamp(long gracePeriodInSec)
focal_class.full_signature: public long getExpirationTimeStamp(long gracePeriodInSec)
focal_class.identifier: getExpirationTimeStamp
focal_class.modifiers: public
focal_class.parameters: (long gracePeriodInSec)
focal_class.return: long
focal_class.signature: long getExpirationTimeStamp(long gracePeriodInSec)
focal_class.class_method_signature: Registration.canInitiateConnection()
focal_class.full_signature: public boolean canInitiateConnection()
focal_class.identifier: canInitiateConnection
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean canInitiateConnection()
focal_class.class_method_signature: Registration.isAlive()
focal_class.full_signature: public boolean isAlive()
focal_class.identifier: isAlive
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isAlive()
focal_class.class_method_signature: Registration.isAlive(long gracePeriodInSec)
focal_class.full_signature: public boolean isAlive(long gracePeriodInSec)
focal_class.identifier: isAlive
focal_class.modifiers: public
focal_class.parameters: (long gracePeriodInSec)
focal_class.return: boolean
focal_class.signature: boolean isAlive(long gracePeriodInSec)
focal_class.class_method_signature: Registration.getAdditionalRegistrationAttributes()
focal_class.full_signature: public Map<String, String> getAdditionalRegistrationAttributes()
focal_class.identifier: getAdditionalRegistrationAttributes
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> getAdditionalRegistrationAttributes()
focal_class.class_method_signature: Registration.usesQueueMode()
focal_class.full_signature: public boolean usesQueueMode()
focal_class.identifier: usesQueueMode
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean usesQueueMode()
focal_class.class_method_signature: Registration.getSupportedVersion(Integer objectid)
focal_class.full_signature: public String getSupportedVersion(Integer objectid)
focal_class.identifier: getSupportedVersion
focal_class.modifiers: public
focal_class.parameters: (Integer objectid)
focal_class.return: String
focal_class.signature: String getSupportedVersion(Integer objectid)
focal_class.class_method_signature: Registration.getSupportedObject()
focal_class.full_signature: public Map<Integer, String> getSupportedObject()
focal_class.identifier: getSupportedObject
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Map<Integer, String>
focal_class.signature: Map<Integer, String> getSupportedObject()
focal_class.class_method_signature: Registration.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: Registration.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: Registration.equals(Object obj)
focal_class.full_signature: @Override public boolean equals(Object obj)
focal_class.identifier: equals
focal_class.modifiers: @Override public
focal_class.parameters: (Object obj)
focal_class.return: boolean
focal_class.signature: boolean equals(Object obj)
focal_class.class_method_signature: Registration.getSupportedObject(String rootPath, Link[] objectLinks)
focal_class.full_signature: public static Map<Integer, String> getSupportedObject(String rootPath, Link[] objectLinks)
focal_class.identifier: getSupportedObject
focal_class.modifiers: public static
focal_class.parameters: (String rootPath, Link[] objectLinks)
focal_class.return: Map<Integer, String>
focal_class.signature: Map<Integer, String> getSupportedObject(String rootPath, Link[] objectLinks)
focal_method.body: public Map<Integer, String> getSupportedObject() {
          Map<Integer, String> objects = supportedObjects.get();
          if (objects != null)
              return objects;
  
          supportedObjects.compareAndSet(null, Collections.unmodifiableMap(getSupportedObject(rootPath, objectLinks)));
          return supportedObjects.get();
      }
focal_method.class_method_signature: Registration.getSupportedObject()
focal_method.full_signature: public Map<Integer, String> getSupportedObject()
focal_method.identifier: getSupportedObject
focal_method.invocations: get compareAndSet unmodifiableMap getSupportedObject get
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: Map<Integer, String>
focal_method.signature: Map<Integer, String> getSupportedObject()