/** * Instantiates a new client entity descriptor. * * @param clientIdentifier the client identifier */ public ClientEntityDescriptor(@Nonnull final String clientIdentifier) { this.clientId = Constraint.isNotNull(clientIdentifier, "Client cannot be null"); this.objectMetadata = new LockableClassToInstanceMultiMap(true); }
/** * Constructor. * * @param namespaceURI the namespace the element is in * @param elementLocalName the local name of the XML element this Object represents * @param namespacePrefix the prefix for the given namespace */ protected AbstractXMLObject(@Nullable final String namespaceURI, @Nonnull @NotEmpty final String elementLocalName, @Nullable final String namespacePrefix) { nsManager = new NamespaceManager(this); idIndex = new IDIndex(this); elementQname = QNameSupport.constructQName(namespaceURI, elementLocalName, namespacePrefix); if(namespaceURI != null){ setElementNamespacePrefix(namespacePrefix); } objectMetadata = new LockableClassToInstanceMultiMap<>(true); }
/** * Constructor. * * @param namespaceURI the namespace the element is in * @param elementLocalName the local name of the XML element this Object represents * @param namespacePrefix the prefix for the given namespace */ protected AbstractXMLObject(@Nullable final String namespaceURI, @Nonnull @NotEmpty final String elementLocalName, @Nullable final String namespacePrefix) { nsManager = new NamespaceManager(this); idIndex = new IDIndex(this); elementQname = QNameSupport.constructQName(namespaceURI, elementLocalName, namespacePrefix); if(namespaceURI != null){ setElementNamespacePrefix(namespacePrefix); } objectMetadata = new LockableClassToInstanceMultiMap<>(true); }
/** * Creates a new instance that wraps the given CAS service. * * @param service CAS service metadata object. */ public ServiceEntityDescriptor(@Nonnull final Service service) { svc = Constraint.isNotNull(service, "Service cannot be null"); objectMetadata = new LockableClassToInstanceMultiMap<>(true); if (StringSupport.trimOrNull(service.getGroup()) != null) { objectMetadata.put(new EntityGroupName(service.getGroup())); } }