private static XsdString str(String str) { return new XsdString(str, null); }
private static XsdString str(String str) { return new XsdString(str, null); }
private static XsdString str(String str) { return new XsdString(str, null); }
private static XsdString str(String str) { return new XsdString(str, null); }
private XsdString elementAsXsdString(XMLStreamReader reader) throws XMLStreamException { String id = reader.getAttributeValue(null, "id"); return new XsdString(reader.getElementText().trim(), id, reader.getLocalName()); }
/** * Create a new Prototype. * * @param name name * @param type type * @param description description */ private Prototype(String name, String type, String description) { this.localName = new XsdString(name, null); this.localType = new XsdString(type, null);; this.description.add(new LocalizedXsdString(description, null)); }
/** * * create a config property from a prototype * * @param prototype prototype * @param value value * @return the property created */ public static ConfigProperty createConfigProperty(Prototype prototype, boolean value) { return new ConfigPropertyImpl(prototype.getDescription(), prototype.getLocalName(), prototype.getLocalType(), new XsdString(String.valueOf(value), null), Boolean.FALSE, Boolean.FALSE, Boolean.FALSE, null, false, null, null, null, null); }
/** * * create a config property from a prototype * * @param prototype prototype * @param value value * @return the property created */ public static ConfigProperty createConfigProperty(Prototype prototype, Number value) { return new ConfigPropertyImpl(prototype.getDescription(), prototype.getLocalName(), prototype.getLocalType(), new XsdString(String.valueOf(value), null), Boolean.FALSE, Boolean.FALSE, Boolean.FALSE, null, false, null, null, null, null); }
/** * * create a config property from a prototype * * @param prototype prototype * @param value value * @return the property created */ public static ConfigProperty createConfigProperty(Prototype prototype, String value) { return new ConfigPropertyImpl(prototype.getDescription(), prototype.getLocalName(), prototype.getLocalType(), new XsdString(value, null), Boolean.FALSE, Boolean.FALSE, Boolean.FALSE, null, false, null, null, null, null); }
/** * {@inheritDoc} */ public CopyableMetaData copy() { return new XsdString(CopyUtil.cloneString(value), CopyUtil.cloneString(id), CopyUtil.cloneString(tag)); }
new XsdString(securityPermission.permissionSpec(), null), null); securityPermissions.add(spmd);
XsdString connectionfactoryInterface = new XsdString(cd.connectionFactory().getName(), null); XsdString managedconnectionfactoryClass = new XsdString(mcf, null); XsdString connectionImplClass = new XsdString(cd.connectionImpl().getName(), null); XsdString connectionfactoryImplClass = new XsdString(cd.connectionFactoryImpl().getName(), null); XsdString connectionInterface = new XsdString(cd.connection().getName(), null); return new ConnectionDefinitionImpl(managedconnectionfactoryClass, validProperties, connectionfactoryInterface,
for (Class asClass : activation.messageListeners()) Activationspec asMeta = new ActivationSpecImpl(new XsdString(annotation.getClassName(), null), requiredConfigProperties, validProperties, null); MessageListener mlMeta = new MessageListenerImpl(new XsdString(asClass.getName(), null), asMeta, null); messageListeners.add(mlMeta);
private ArrayList<AuthenticationMechanism> processAuthenticationMechanism( javax.resource.spi.AuthenticationMechanism[] authMechanismAnnotations) { ArrayList<AuthenticationMechanism> authenticationMechanisms = null; if (authMechanismAnnotations != null) { authenticationMechanisms = new ArrayList<AuthenticationMechanism>(authMechanismAnnotations.length); for (javax.resource.spi.AuthenticationMechanism authMechanismAnnotation : authMechanismAnnotations) { ArrayList<LocalizedXsdString> descriptions = null; if (authMechanismAnnotation.description() != null && authMechanismAnnotation.description().length != 0) { descriptions = new ArrayList<LocalizedXsdString>(authMechanismAnnotation.description().length); for (String descriptionAnnoptation : authMechanismAnnotation.description()) { descriptions.add(new LocalizedXsdString(descriptionAnnoptation, null)); } } XsdString authenticationMechanismType = new XsdString(authMechanismAnnotation .authMechanism(), null); authenticationMechanisms.add(new AuthenticationMechanismImpl(descriptions, authenticationMechanismType, CredentialInterfaceEnum .valueOf(authMechanismAnnotation .credentialInterface() .name()), null, null)); } } return authenticationMechanisms; }
vendorName = new XsdString(conAnnotation.vendorName(), null); eisType = new XsdString(conAnnotation.eisType(), null); for (Class<? extends WorkContext> requiredWorkContext : requiredWorkContextAnnotations) XsdString xs = new XsdString(requiredWorkContext.getName(), null); if (!requiredWorkContexts.contains(xs)) icons.add(new IconImpl(new XsdString(smallIconAnnotation, null), null, null, null)); icons.add(new IconImpl(null, new XsdString(largeIconAnnotation, null), null, null)); ResourceAdapterImpl resourceAdapter = new ResourceAdapterImpl(new XsdString(raClass, null), validProperties, outboundResourceadapter, inboundResourceadapter, adminObjs, resourceadapterVersion = new XsdString(conAnnotation.version(), null); return new ConnectorImpl(Version.V_17, new XsdString("", null), vendorName, eisType, resourceadapterVersion, license, resourceAdapter, requiredWorkContexts, false, descriptions, displayNames, icons, null);
XsdString newValue = new XsdString(ijProperties.get(c.getConfigPropertyName().getValue()), c .getConfigPropertyValue().getId(), c.getConfigPropertyValue().getTag()); ConfigProperty newProp = new ConfigPropertyImpl(c.getDescriptions(), c.getConfigPropertyName(),
ResourceAdapter resourceadapter = new ResourceAdapterImpl(new XsdString(resourceadapterClass, null), raConfigProperties, outboundResourceadapter,