100+ results for 'email validate lang:java'

Not the results you expected?

TestDescriptor.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 528 lines

51 * Encapsulates information about a bug fix, including the

52 * reporter's

53 * name (or Email address), the date of the report and of the

54 * fix,

55 * and one or more comments about the bug.

165 * the following description: Encapsulates information about a

166 * bug fix, including the reporter's

167 * name (or Email address), the date of the report and of the

168 * fix,

169 * and one or more comments about the bug.

299 ) {

300 try {

301 validate();

302 } catch (org.exolab.castor.xml.ValidationException vex) {

303 return false;

SAXParser.java (https://github.com/GNA-SERVICES-INC/MoNGate.git) Java · 340 lines

291

292 /**

293 * Indicates whether this parser will validate its input.

294 */

295 public abstract boolean isValidating();

MBMailingListLocalServiceImpl.java (https://github.com/azzazzel/liferay-portal.git) Java · 272 lines

87 mailingList.setInPassword(inPassword);

88 mailingList.setInReadInterval(inReadInterval);

89 mailingList.setOutEmailAddress(outEmailAddress);

90 mailingList.setOutCustom(outCustom);

91 mailingList.setOutServerName(outServerName);

160

161 mailingList.setModifiedDate(serviceContext.getModifiedDate(null));

162 mailingList.setEmailAddress(emailAddress);

163 mailingList.setInProtocol(inUseSSL ? inProtocol + "s" : inProtocol);

164 mailingList.setInServerName(inServerName);

168 mailingList.setInPassword(inPassword);

169 mailingList.setInReadInterval(inReadInterval);

170 mailingList.setOutEmailAddress(outEmailAddress);

171 mailingList.setOutCustom(outCustom);

172 mailingList.setOutServerName(outServerName);

248 }

249

250 if (!Validator.isEmailAddress(emailAddress)) {

251 throw new MailingListEmailAddressException();

DAO.java (https://bitbucket.org/simplexproject/simplex-development.git) Java · 353 lines

129

130 /**

131 * @brief Validate user finds the user in the databse (by it's email) and

132 * validates. That the given password is like the one iin the

139 * (if the user exists), Otherwise null.

140 */

141 public User validateUser(String email, String password) {

142 Objectify objectify = ObjectifyService.begin();

143

144 if (email != null && !email.equals("") && password != null

145 && !password.equals("")) { // Checks for valid parameters, and

146 // then search for the user in the

157 }

158

159 System.out.println("Failed login attempt:\n" + "email: " + email

160 + " Password:" + password);

161 return null;

Soap.java (https://github.com/jessamynsmith/GoodData-CL.git) Java · 173 lines

115 * Logs out and invalidates session ids

116 */

117 public com.sforce.soap.partner.InvalidateSessionsResult[] invalidateSessions(java.lang.String[] sessionIds) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault;

118

119 /**

170 * Send outbound email

171 */

172 public com.sforce.soap.partner.SendEmailResult[] sendEmail(com.sforce.soap.partner.Email[] messages) throws java.rmi.RemoteException, com.sforce.soap.partner.fault.UnexpectedErrorFault;

173 }

174

WebContentsObserverProxy.java (https://gitlab.com/jonnialva90/iridium-browser) Java · 245 lines

139 @CalledByNative

140 public void didStartProvisionalLoadForFrame(long frameId, long parentFrameId,

141 boolean isMainFrame, String validatedUrl, boolean isErrorPage, boolean isIframeSrcdoc) {

142 for (mObserversIterator.rewind(); mObserversIterator.hasNext();) {

143 mObserversIterator.next().didStartProvisionalLoadForFrame(

144 frameId, parentFrameId, isMainFrame, validatedUrl, isErrorPage, isIframeSrcdoc);

145 }

146 }

158 @Override

159 @CalledByNative

160 public void didFinishLoad(long frameId, String validatedUrl, boolean isMainFrame) {

161 for (mObserversIterator.rewind(); mObserversIterator.hasNext();) {

162 mObserversIterator.next().didFinishLoad(frameId, validatedUrl, isMainFrame);

DescriptorValidator.java (https://github.com/geotools/geotools.git) Java · 303 lines

23 }

24

25 // public static void validate(AttributeDescriptor schema, List<Attribute> content) {

26 // if (schema == null) {

27 // throw new NullPointerException("schema");

45 //

46 // if (schema.getType() instanceof SequenceType) {

47 // validateSequence(schema, content);

48 // }

49 // else if (schema.getType() instanceof ChoiceType) {

50 // validateChoice(schema,content);

51 // }

52 // else if (schema.getType() instanceof ComplexType) {

BaseCmsConfig.java (https://gitlab.com/lyc/kl_book) Java · 467 lines

110 private java.lang.String downloadCode;

111 private java.lang.Integer downloadTime;

112 private java.lang.Boolean emailValidate;

113 private java.lang.String officeHome;

114 private java.lang.Integer officePort;

119 // components

120 com.jeecms.core.entity.MarkConfig m_markConfig;

121 com.jeecms.core.entity.EmailConfig m_emailConfig;

122

123 // collections

345 }

346

347 public void setEmailValidate(java.lang.Boolean emailValidate) {

348 this.emailValidate = emailValidate;

410 * @param m_emailConfig the ${prop.Column} value

411 */

412 public void setEmailConfig (com.jeecms.core.entity.EmailConfig m_emailConfig) {

413 this.m_emailConfig = m_emailConfig;

ModelTestsSupport.java (https://bitbucket.org/leemur/logistica.git) Java · 354 lines

89 final P reloaded = reload(p);

90

91 //now validate that 'set' operation persists association

92 assertEquals(getChildren(reloaded).size(), 2);

93

98 assertEquals(getChildren(reloaded).size(), 1);

99

100 //now validate that 'setPixels' remove pixels from database

101 assertEquals(getChildren(reload(reloaded)).size(), 1);

102 }

156 final P reloaded = reload(p);

157

158 //now validate that 'set' operation persists association

159 assertEquals(getChildren(reloaded).size(), 2);

160

ValidateModuleTest.java (https://github.com/JensErat/basex.git) Java · 247 lines

13 * @author Christian Gruen

14 */

15 public final class ValidateModuleTest extends AdvancedQueryTest {

16 /** Test file. */

17 private static final String DIR = "src/test/resources/";

18 /** Test file. */

19 private static final String FILE = DIR + "validate.xml";

20 /** Test file. */

21 private static final String XSD = DIR + "validate.xsd";

22 /** Test file. */

23 private static final String DTD = DIR + "validate.dtd";

24 /** Test file. */

25 private static final String INPUT = DIR + "input.xml";

IdentityConstraint.java (https://bitbucket.org/ssteinmetz/openesb-components.git) Java · 272 lines

247 * is invalid.

248 **/

249 public void validate()

250 throws ValidationException

251 {

268 if (err != null) throw new ValidationException(err);

269

270 } //-- validate

271

272 } //-- class IdentityConstraint

IntValidator.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 315 lines

78 * fixed value has been configured.

79 *

80 * @return the fixed value to validate against.

81 */

82 public Integer getFixed() {

91 * no maximum has been configured.

92 *

93 * @return the maximum (inclusive) value to validate against.

94 */

95 public Integer getMaxInclusive() {

104 * no minimum has been configured.

105 *

106 * @return the minimum inclusive value to validate against.

107 */

108 public Integer getMinInclusive() {

SaveObjectsTest.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 90 lines

8

9 import org.junit.Test;

10 import org.nakedobjects.metamodel.facets.object.validate.ValidateObjectFacetViaValidateMethod;

11 import org.nakedobjects.plugins.headless.applib.InvalidException;

12 import org.nakedobjects.plugins.headless.applib.ViewObject;

58

59 @Test

60 public void whenValidateMethodThenCanVetoSave() {

61 final Customer newCustomer = getDomainObjectContainer().newTransientInstance(Customer.class);

62

81 } catch (final InvalidException ex) {

82

83 assertThat(ex.getAdvisorClass(), classEqualTo(ValidateObjectFacetViaValidateMethod.class));

84 assertThat(getDomainObjectContainer().isPersistent(newCustomer),

85 is(false)); // not saved

Schema.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 107 lines

42 * A {@link Schema} object is immutable in the sense that it shouldn't

43 * change the set of constraints once it is created. In other words,

44 * if an application validates the same document twice against the same

45 * {@link Schema}, it must always produce the same result.

46 *

DefaultDaemonGeneratorService.java (https://github.com/cdegroot/appassembler.git) Java · 229 lines

132 // -----------------------------------------------------------------------

133

134 validateDaemon( mergedDaemon, stubDescriptor );

135

136 // -----------------------------------------------------------------------

161 Daemon stubDaemon = reader.read( fileReader );

162

163 validateDaemon( stubDaemon, stubDescriptor );

164

165 return stubDaemon;

181 }

182

183 public void validateDaemon( Daemon daemon, File descriptor )

184 throws DaemonGeneratorException

185 {

ReportFragmentRightPresenter.java (https://gitlab.com/ahmadrosid/TrackinsAndroid) Java · 122 lines

25 *

26 * @Author Ahmad Rosid

27 * @Email ocittwo@gmail.com

28 * @Github https://github.com/ar-android

29 * @Web http://ahmadrosid.com

70 }

71

72 private boolean validate() {

73 boolean isValidate = true;

76 if (formInputImage.isRequired()) {

77 if (TextUtils.isEmpty(formInputImage.getText())) {

78 isValidate = false;

79 if (!isShowEmpty) {

80 showEmptyField(formInputImage.getHint());

84 }

85 }

86 return isValidate;

87 }

88

MemberAct.java (https://gitlab.com/MetadataDev/mcms) Java · 258 lines

180 * @param newPwd

181 * 新密码

182 * @param email

183 * 邮箱

184 * @param nextUrl

213 return FrontUtils.showError(request, response, model, errors);

214 }

215 cmsUserMng.updatePwdEmail(user.getId(), newPwd, email);

216 return FrontUtils.showSuccess(request, model, nextUrl);

217 }

242 return errors;

243 }

244 if (errors.ifNotEmail(email, "email", 100)) {

245 return errors;

246 }

Validator.java (https://gitlab.com/pandame/moo) Java · 291 lines

203 * Checks if the list of email addresses is valid.

204 * @param name Configuration item name.

205 * @param emails List of email addresses.

206 * @throws ConfigurationException When an email is invalid.

207 */

208 public static void validateEmailList(final String name, final List<String> emails) throws ConfigurationException

209 {

210 for (String email : emails)

211 validateEmail(name, email);

212 }

213

218 * @throws ConfigurationException When email is invalid.

219 */

220 public static void validateEmail(final String name, final String email) throws ConfigurationException

221 {

222 validateNotEmpty(name, email);

StaticSiteUserInvitationRequestResource.java (git://github.com/WindowsAzure/azure-sdk-for-java.git) Java · 163 lines

150

151 /**

152 * Validates the instance.

153 *

154 * @throws IllegalArgumentException thrown if the instance is not valid.

155 */

156 @Override

157 public void validate() {

158 super.validate();

159 if (innerProperties() != null) {

160 innerProperties().validate();

161 }

162 }

UserInner.java (git://github.com/WindowsAzure/azure-sdk-for-java.git) Java · 171 lines

72

73 /**

74 * Get the email property: Email address of the user.

75 *

76 * @return the email value.

81

82 /**

83 * Set the email property: Email address of the user.

84 *

85 * @param email the email value to set.

86 * @return the UserInner object itself.

87 */

88 public UserInner withEmail(String email) {

89 if (this.innerProperties() == null) {

90 this.innerProperties = new UserProperties();

EntityBridge.java (https://github.com/DarioGT/Modelibra-Family.git) Java · 128 lines

19 public static final String DEFAULT_URL = "http://www.modelibra.swing.org/";

20

21 public static final String DEFAULT_EMAIL = "modelibra.swing@email.org";

22

23 private IEntities<?> entities;

49 } else if (propertyConfig.getPropertyClass().equals(

50 PropertyClass.getString())) {

51 if (propertyConfig.isValidateClassType()) {

52 if (propertyConfig.getValidationType().equals(

53 PropertyClass.getUrl())) {

85 PropertyClass.getEmail())) {

86 newEntity.setProperty(propertyConfig.getCode(), Transformer

87 .email(DEFAULT_EMAIL));

88 }

89 }

ApidbFileReplicator.java (https://github.com/brettch/osmosis.git) Java · 107 lines

79

80 new SchemaVersionValidator(loginCredentials, preferences)

81 .validateVersion(ApidbVersionConstants.SCHEMA_MIGRATIONS);

82

83 source = new AllEntityDao(dbCtx.getJdbcTemplate());

DefaultChangesSchemaValidator.java (https://github.com/SciSysUK/maven-plugins.git) Java · 154 lines

55 private Map compiledSchemas = new FastMap();

56

57 public XmlValidationHandler validateXmlWithSchema( File file, String schemaVersion, boolean failOnValidationError )

58 throws SchemaValidatorException

59 {

73 reader = new XmlStreamReader( file );

74

75 validator.validate( new StreamSource( reader ) );

76

77 return baseHandler;

IndexMeta.java (https://github.com/shirou/all-write.git) Java · 98 lines

62 @Override

63 protected void setKey(Object model, com.google.appengine.api.datastore.Key key) {

64 validateKey(key);

65 allwrite.model.Index m = (allwrite.model.Index) model;

66 m.setKey(key);

Sql.java (https://bitbucket.org/ssteinmetz/openesb-components.git) Java · 462 lines

255 {

256 try {

257 validate();

258 }

259 catch (org.exolab.castor.xml.ValidationException vex) {

453 /**

454 **/

455 public void validate()

456 throws org.exolab.castor.xml.ValidationException

457 {

458 Validator validator = new Validator();

459 validator.validate(this);

460 } //-- void validate()

Schema.java (https://bitbucket.org/aways/android_libcore.git) Java · 92 lines

34 * A {@link Schema} object is immutable in the sense that it shouldn't

35 * change the set of constraints once it is created. In other words,

36 * if an application validates the same document twice against the same

37 * {@link Schema}, it must always produce the same result.

38 *

InvocationFactory.java (https://github.com/Ricston/mule-transport-salesforce.git) Java · 201 lines

26 import org.mule.transport.salesforce.op.impl.GetUpdatedInvocation;

27 import org.mule.transport.salesforce.op.impl.GetUserInfoInvocation;

28 import org.mule.transport.salesforce.op.impl.InvalidateSessionsInvocation;

29 import org.mule.transport.salesforce.op.impl.LoginInvocation;

30 import org.mule.transport.salesforce.op.impl.LogoutInvocation;

36 import org.mule.transport.salesforce.op.impl.RetrieveInvocation;

37 import org.mule.transport.salesforce.op.impl.SearchInvocation;

38 import org.mule.transport.salesforce.op.impl.SendEmailInvocation;

39 import org.mule.transport.salesforce.op.impl.SetPasswordInvocation;

40 import org.mule.transport.salesforce.op.impl.UndeleteInvocation;

139

140 }

141 else if (operation.equals(SalesforceProperties.SALESFORCE_OPERATION_INVALIDATE_SESSIONS))

142 {

143 return new InvalidateSessionsInvocation(soapBindingPool, parameters);

PWDValidator.java (https://bitbucket.org/jorgenio/gvsig.git) Java · 77 lines

5 * File : PWDValidator.java

6 * Description : Example implementation of a password validator

7 * Author's email : elmar@grom.net

8 * Author's Website : http://www.izforge.com

9 *

41 /*--------------------------------------------------------------------------*/

42 /**

43 * Validates the contend of multiple password fields. The test

44 *

45 * @param client the client object using the services of this validator.

48 */

49 /*--------------------------------------------------------------------------*/

50 public boolean validate (ProcessingClient client)

51 {

52 int numFields = client.getNumFields ();

MessageInterpolationValidationTestCase.java (https://bitbucket.org/cprenzberg/wildfly.git) Java · 75 lines

16 import org.hibernate.validator.HibernateValidatorConfiguration;

17 import org.hibernate.validator.cfg.ConstraintMapping;

18 import org.hibernate.validator.cfg.defs.EmailDef;

19 import org.hibernate.validator.messageinterpolation.ValueFormatterMessageInterpolator;

20 import org.jboss.arquillian.container.test.api.Deployment;

51 ConstraintMapping mapping = new ConstraintMapping();

52 mapping.type(Employee.class).property("firstName", FIELD)

53 .constraint(new EmailDef().message("Invalid Email!You have entered:--\\{${validatedValue}\\}"));

54

55 final MessageInterpolator messageInterpolator = new ValueFormatterMessageInterpolator();

69

70 Assert.assertEquals("Wrong number of constraints", constraintViolations.size(), 1);

71 Assert.assertEquals("Invalid Email!You have entered:--{" + email + "}", constraintViolations.iterator().next()

72 .getMessage());

73

Redis.java (https://github.com/Papka24/base.git) Java · 149 lines

67

68 @GET

69 @Path("/invalidateAll")

70 @Produces(MediaType.APPLICATION_JSON)

71 public Response invalidateAll(@HeaderParam("sessionid") String sessionId){

74 return ERROR_FORBIDDEN;

75 }

76 RedisDAOManager.getInstance().invalidateAllUsersSessions();

77 return Response.ok().build();

78 }

79

80 @GET

81 @Path("/invalidate/{login}")

82 @Produces(MediaType.APPLICATION_JSON)

83 public Response invalidate(@HeaderParam("sessionid") String sessionId, @PathParam("login") String login){

Inst2XsdDetailedOptionsTest.java (https://bitbucket.org/ldassonville/openesb-components.git) Java · 425 lines

40 log(api);

41

42 Inst2Xsd.main(new String[]{"-validate", "-verbose",

43 "-design", "rd",

44 "-simple-content-types", "string",

62 log(api);

63

64 Inst2Xsd.main(new String[]{"-validate", "-verbose",

65 "-design", "ss",

66 "-simple-content-types", "string",

83 log(api);

84

85 Inst2Xsd.main(new String[]{"-validate", "-verbose",

86 "-design", "vb",

87 "-simple-content-types", "string",

ShipmentValidateRequest.java (http://clom2.googlecode.com/svn/trunk/) Java · 509 lines

71 "eProcShip"

72 })

73 @XmlRootElement(name = "ShipmentValidateRequest", namespace = "http://www.dhl.com")

74 public class ShipmentValidateRequest {

CompositeNode.java (https://github.com/michelpohle/jbpm.git) Java · 479 lines

209 }

210

211 public void validateAddIncomingConnection(final String type, final Connection connection) {

212 CompositeNode.NodeAndType nodeAndType = internalGetLinkedIncomingNode(type);

213 if (connection.getFrom().getNodeContainer() == this) {

219 NodeImpl node = (NodeImpl) nodeAndType.getNode();

220 if (node != null) {

221 node.validateAddIncomingConnection(nodeAndType.getType(), connection);

222 }

223 }

244 }

245

246 public void validateAddOutgoingConnection(final String type, final Connection connection) {

247 CompositeNode.NodeAndType nodeAndType = internalGetLinkedOutgoingNode(type);

248 if (connection.getTo().getNodeContainer() == this) {

Wcs11Validator.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 532 lines

99

100 /**

101 * Calls <code>validateXXX</code> for the corresponding classifier of the model.

102 * <!-- begin-user-doc -->

103 * <!-- end-user-doc -->

104 * @generated

105 */

106 protected boolean validate(int classifierID, Object value, DiagnosticChain diagnostics, Map context) {

107 switch (classifierID) {

108 case Wcs11Package.AVAILABLE_KEYS_TYPE:

109 return validateAvailableKeysType((AvailableKeysType)value, diagnostics, context);

110 case Wcs11Package.AXIS_SUBSET_TYPE:

111 return validateAxisSubsetType((AxisSubsetType)value, diagnostics, context);

Wcs11FactoryImpl.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 567 lines

479 try {

480 result = XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.DURATION, initialValue);

481 if (result != null && Diagnostician.INSTANCE.validate(eDataType, result, null, null)) {

482 return result;

483 }

488 try {

489 result = XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.DECIMAL, initialValue);

490 if (result != null && Diagnostician.INSTANCE.validate(eDataType, result, null, null)) {

491 return result;

492 }

Validate.java (https://gitlab.com/praveen.pixlrit/SonarApp2) Java · 507 lines

29 *

30 * <pre>

31 * Validate.isTrue( i > 0, "The value must be greater than zero: ", i);

32 * Validate.notNull( surname, "The surname must not be null");

38 * @author Norm Deane

39 * @since 2.0

40 * @version $Id: Validate.java 1057051 2011-01-09 23:15:51Z sebb $

41 */

42 public class Validate {

43 // Validate has no dependencies on other classes in Commons Lang at present

44

45 /**

46 * Constructor. This class should not normally be instantiated.

47 */

48 public Validate() {

49 super();

50 }

LogTableCellRenderer.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 208 lines ✨ Summary

This Java code defines a custom table cell renderer for a JTable component, specifically designed to display log data with text wrapping and highlighting capabilities. It uses regular expressions to identify cells that should be highlighted and adjusts its appearance based on selection state. The renderer is optimized for performance by overriding unnecessary methods.

16 * some work.

17 *

18 * The validate, revalidate, repaint, and firePropertyChange methods have been

19 * overridden as no-ops for performance reasons.

20 *

49 * Overridden as no-op for performance.

50 */

51 public void validate() {

52 // no-op

53 }

56 * Overridden as no-op for performance.

57 */

58 public void revalidate() {

59 // no-op

60 }

CmsUrlNameValidationService.java (https://github.com/benocms/opencms-core.git) Java · 80 lines

48

49 /**

50 * @see org.opencms.gwt.I_CmsValidationService#validate(org.opencms.file.CmsObject, java.lang.String, java.lang.String)

51 */

52 public CmsValidationResult validate(CmsObject cms, String value, String config) {

PutUserRequestBuilder.java (https://github.com/dadoonet/elasticsearch.git) Java · 201 lines

60 public PutUserRequestBuilder password(SecureString password, Hasher hasher) {

61 if (password != null) {

62 Validation.Error error = Validation.Users.validatePassword(password);

63 if (error != null) {

64 throw validationException(error.toString());

84 }

85

86 public PutUserRequestBuilder email(String email) {

87 request.email(email);

155 "expected field [{}] to be of type string, but found [{}] instead", currentFieldName, token);

156 }

157 } else if (User.Fields.EMAIL.match(currentFieldName, parser.getDeprecationHandler())) {

158 if (token == XContentParser.Token.VALUE_STRING) {

159 email(parser.text());

SkillresetCommand.java (https://gitlab.com/Slind/mcMMO) Java · 171 lines

41 }

42

43 if (!validateArguments(sender, args[0])) {

44 return true;

45 }

54 }

55

56 if (!validateArguments(sender, args[1])) {

57 return true;

58 }

134 }

135

136 private boolean validateArguments(CommandSender sender, String skillName) {

137 if (CommandUtils.isInvalidSkill(sender, skillName) && !skillName.equalsIgnoreCase("all")) {

138 return false;

SecondaryResourceFetchThread.java (https://github.com/nagysz/rhodes.git) Java · 188 lines

172 synchronized (RhodesApplication.getEventLock())

173 {

174 RhodesApplication.getInstance().invalidateMainScreen();

175 }

176

RegistrationController.java (https://bitbucket.org/gazaay/storefront.git) Java · 83 lines

45 // logger.info("User Profile Name" + profile.getFirstname());

46 // logger.info("User Profile country" + profile.getCountry());

47 // logger.info("User Profile email" + profile.getEmail());

48 // logger.info("User Profile lastname" + profile.getLastname());

49 // logger.info("User Profile phone" + profile.getPhone());

54 // return message;

55 // }

56 @RequestMapping(value="/validate/{input}/{value}", method = RequestMethod.GET)

57 public @ResponseBody boolean validateOnRegistration(@PathVariable String input, @PathVariable String value) throws Exception {

70 super.doAutoLogin(user.getUsername(), user.getPassword(), request);

71 logger.info("User Signup and login automatically for first time. user:" + user.getUsername());

72 registration_service.sendWelcomeRegistrationEmail(user.getUsername());

73 } catch (Exception ex) {

74 logger.error(ex.getMessage());

ScriptAssert.java (https://github.com/gunnarmorling/hibernate-validator.git) Java · 122 lines

1 /*

2 * Hibernate Validator, declare and validate application constraints

3 *

4 * License: Apache License, Version 2.0

71 */

72 @Documented

73 @Constraint(validatedBy = { })

74 @Target({ TYPE })

75 @Retention(RUNTIME)

94 * @return The script to be executed. The script must return

95 * <code>Boolean.TRUE</code>, if the annotated element could

96 * successfully be validated, otherwise <code>Boolean.FALSE</code>.

97 * Returning null or any type other than Boolean will cause a

98 * {@link javax.validation.ConstraintDeclarationException} upon validation. Any

99 * exception occurring during script evaluation will be wrapped into

100 * a ConstraintDeclarationException, too. Within the script, the

101 * validated object can be accessed from the {@link javax.script.ScriptContext

102 * script context} using the name specified in the

103 * <code>alias</code> attribute.

Locations.java (https://github.com/ese-unibe-ch/ese2011-team4.git) Java · 117 lines

32 assert location != null;

33

34 User connectedUser = User.find("byEmail", Security.connected()).first();

35 List<Event> events = location.getVisibleUpcomingEvents(connectedUser);

36 long numberOfEvents = location.numberOfAllUpcomingEvents();

50 for(Event event: events) {

51 event.location = null;

52 event.validateAndSave();

53 }

54 for(User user: users) {

55 user.address = null;

56 user.validateAndSave();

57 }

58 location.delete();

pl-sql.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 405 lines

252 <KEYWORD1>USER</KEYWORD1>

253 <KEYWORD1>USING</KEYWORD1>

254 <KEYWORD1>VALIDATE</KEYWORD1>

255 <KEYWORD1>VALUES</KEYWORD1>

256 <KEYWORD1>VARIANCE</KEYWORD1>

UpdateResourceConfigurationRunnerTest.java (https://github.com/ccrouch/rhq.git) Java · 308 lines

73

74 oneOf(configUtilityService).normalizeConfiguration(config, resourceType.getResourceConfigurationDefinition());

75 oneOf(configUtilityService).validateConfiguration(config, resourceType.getResourceConfigurationDefinition());

76

77 oneOf(configServerService).completeConfigurationUpdate(with(matchingResponse(successResponse)));

102

103 oneOf(configUtilityService).normalizeConfiguration(config, resourceType.getResourceConfigurationDefinition());

104 oneOf(configUtilityService).validateConfiguration(config, resourceType.getResourceConfigurationDefinition());

105

106 }});

132

133 oneOf(configUtilityService).normalizeConfiguration(config, resourceType.getResourceConfigurationDefinition());

134 oneOf(configUtilityService).validateConfiguration(config, resourceType.getResourceConfigurationDefinition());

135

136 oneOf(configServerService).completeConfigurationUpdate(with(matchingResponse(failureResponse)));

URIHelperInterface.java (https://github.com/cts2/cts2-framework.git) Java · 431 lines

98 + "/{" + VAR_CODESYSTEMID + "}/" + ENTITY + "/{" + VAR_ENTITYID

99 + "}/" + PREFERREDDISPLAY;

100 public static final String PATH_VALIDATEENTITYINCODESYSTEM = "/"

101 + CODESYSTEM + "/{" + VAR_CODESYSTEMID + "}/" + ENTITIES + "/"

102 + EXISTINGENTITYIDS;

103 public static final String PATH_VALIDATEENTITYPROPERTIES = "/" + CODESYSTEM

104 + "/{" + VAR_CODESYSTEMID + "}/" + ENTITY + "/{" + VAR_ENTITYID

105 + "}/" + PROPERTIES + "/" + EXISTINGPROPERTYIDS;

106 public static final String PATH_VALIDATEENTITYEFFECTIVE = "/" + CODESYSTEM

107 + "/{" + VAR_CODESYSTEMID + "}/" + ENTITIES + "/" + ENTITYEFFECTIVE;

108

ConfigurationDialog.java (https://github.com/efrolov/ProjectSimpleMail.git) Java · 115 lines

26 private static final long serialVersionUID = 654591847880778195L;

27 private Configuration myConf;

28 private JTextField myEmail;

29 private JTextField myIP;

30

54 JLabel em = new JLabel("Main Email Address:");

55 this.myEmail = new JTextField(this.myConf.getMyEmail());

56

57 textPane.add(ip);

58 textPane.add(this.myIP);

59 textPane.add(em);

60 textPane.add(this.myEmail);

61

62 textGridLayout.layoutContainer(textPane);

101 } else if (s.compareTo("save") == 0) {

102 DataStore d = DataStore.getInstance();

103 this.myConf.setMyEmail(this.myEmail.getText());

104 try {

105 this.myConf

MD5Hash.java (https://github.com/grapestack/railo.git) Java · 748 lines

457 /**

458 * Cached copy of the final MD5 hash sum. This is created when

459 * the hash is requested and it is invalidated when the hash

460 * is updated.

461 *

DomainTestSuite.java (https://github.com/smcgowan/wildfly.git) Java · 99 lines

43 ManagementAccessTestCase.class,

44 ManagementClientContentTestCase.class,

45 ValidateOperationOperationTestCase.class

46 })

47 public class DomainTestSuite {

ComboBox.as (git://github.com/OpenRTMFP/ArcusNode.git) ActionScript · 461 lines ✨ Summary

This is a custom ActionScript class that implements a dropdown list combo box. It allows users to select an item from a list and displays the selected item in a label. The class provides various properties and methods for customizing the appearance and behavior of the combo box, such as setting the number of visible items, colors, and font styles.

344 {

345 _list.listItemHeight = value;

346 invalidate();

347 }

348 public function get listItemHeight():Number

382 {

383 _numVisibleItems = value;

384 invalidate();

385 }

386 public function get numVisibleItems():int

444 {

445 _list.autoHideScrollBar = value;

446 invalidate();

447 }

448 public function get autoHideScrollBar():Boolean

Window.as (git://github.com/OpenRTMFP/ArcusNode.git) ActionScript · 399 lines ✨ Summary

This is a custom ActionScript class that represents a window panel with customizable properties such as title, color, and draggable behavior. It includes features like minimize and close buttons, grips on the title bar, and a content container for added elements. The class provides methods to set and get these properties, allowing developers to create custom windows with specific behaviors.

251 {

252 _color = c;

253 invalidate();

254 }

255 public function get color():int

307 removeChild(_minimizeButton);

308 }

309 invalidate();

310 }

311 public function get hasMinimizeButton():Boolean

368 _titleBar.content.removeChild(_closeButton);

369 }

370 invalidate();

371 }

372 public function get hasCloseButton():Boolean

Annotation.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 145 lines

139 * is invalid.

140 **/

141 public void validate() throws ValidationException {

142 // -- do nothing

143 }

Use_casesExample.java (https://gitlab.com/jgsuess/uml-1.4.2) Java · 125 lines

90 System.out.println("Loaded " + uri);

91

92 // Validate the contents of the loaded resource.

93 //

94 for (EObject eObject : resource.getContents()) {

95 Diagnostic diagnostic = Diagnostician.INSTANCE.validate(eObject);

96 if (diagnostic.getSeverity() != Diagnostic.OK) {

97 printDiagnostic(diagnostic, "");

PublishRequest.java (https://gitlab.com/github-cloud-corp/aws-sdk-java) Java · 1451 lines

128 * <li>

129 * <p>

130 * Failure to parse or validate any key or value in the message will cause

131 * the <code>Publish</code> call to return an error (no partial delivery).

132 * </p>

138 * <p>

139 * Optional parameter to be used as the "Subject" line when the message is

140 * delivered to email endpoints. This field will also be included, if

141 * present, in the standard JSON messages delivered to other endpoints.

142 * </p>

153 * send a different message for each protocol. For example, using one

154 * publish action, you can send a short message to your SMS subscribers and

155 * a longer message to your email subscribers. If you set

156 * <code>MessageStructure</code> to <code>json</code>, the value of the

157 * <code>Message</code> parameter must:

ResendValidationEmailRequest.java (https://gitlab.com/github-cloud-corp/aws-sdk-java) Java · 556 lines

274 * @param validationDomain

275 * The base validation domain that will act as the suffix of the

276 * email addresses that are used to send the emails. This must be the

277 * same as the <code>Domain</code> value or a superdomain of the

278 * <code>Domain</code> value. For example, if you requested a

435 * @param validationDomain

436 * The base validation domain that will act as the suffix of the

437 * email addresses that are used to send the emails. This must be the

438 * same as the <code>Domain</code> value or a superdomain of the

439 * <code>Domain</code> value. For example, if you requested a

510 if (obj instanceof ResendValidationEmailRequest == false)

511 return false;

512 ResendValidationEmailRequest other = (ResendValidationEmailRequest) obj;

513 if (other.getCertificateArn() == null

514 ^ this.getCertificateArn() == null)

ConstrainedPropertyTests.java (https://github.com/roongr2k7/grails-core.git) Java · 384 lines

337 "login(size:5..15,nullable:false,blank:false)\n" +

338 "other(blank:false,size:5..15,nullable:false)\n" +

339 "email(email:true)\n" +

340 "}\n" +

341 "}");

374 go.setProperty("email", "rubbish_email");

375 Errors errors = new BindException(go, "TestClass");

376 emailConstraint.validate(go, go.getProperty("email"), errors);

377

378 assertTrue(errors.hasErrors());

379 go.setProperty("email", "valid@email.com");

380 errors = new BindException(go, "TestClass");

381 emailConstraint.validate(go, go.getProperty("email"), errors);

382 assertFalse(errors.hasErrors());

383 }

RegisterUserForm.java (https://gitlab.com/Balun/jaganjci) Java · 250 lines

57 this.firstName = prepare(req.getParameter("firstName"));

58 this.lastName = prepare(req.getParameter("lastName"));

59 this.email = prepare(req.getParameter("email"));

60 this.password = prepareWithoutTrim(req.getParameter("password"));

61 this.passwordConfirmation = prepareWithoutTrim(

114 errors.clear();

115

116 if (email.isEmpty() || !isEmailValid(email)) {

117 errors.put("email", "Krivi format e-mail adrese.");

157 errors.clear();

158

159 if (email.isEmpty() || !isEmailValid(email)) {

160 errors.put("email", "Krivi format e-mail adrese.");

202 * @return {@code true} if the given mail is valid

203 */

204 public static boolean isEmailValid(String email) {

205 Pattern pattern = Pattern.compile(".+@.+\\..+");

206 Matcher matcher = pattern.matcher(email);

TokenStore.java (https://github.com/yamcs/yamcs.git) Java · 211 lines

55 accessTokens.clear();

56 refreshTokens.clear();

57 refreshCache.invalidateAll();

58 cleaningCounter = 0;

59 notifyStopped();

120

121 /**

122 * Validate the provided refresh token, and exchange it for a new one. The provided refresh token is invalidated,

123 * and will stop working after a certain time.

124 * <p>

162 Hmac hmac = new Hmac(refreshToken);

163 refreshTokens.remove(hmac);

164 refreshCache.invalidate(hmac);

165 }

166

SessionSwitcher.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 265 lines ✨ Summary

This Java code defines a toolbar component for jEdit, a text editor software. It allows users to switch between different sessions of the application, save and reload current sessions, view session properties, and access preferences. The toolbar also displays the currently active session name and provides buttons for various actions.

237 title = new JLabel(jEdit.getProperty("sessions.switcher.title"));

238 add(title, 0);

239 revalidate();

240 }

241

247

248 remove(title);

249 revalidate();

250 title = null;

251 }

PrimitiveValue.java (https://github.com/aliyun/aliyun-odps-java-sdk.git) Java · 332 lines

186

187 /**

188 * This method is used to validate the value from the node. The

189 * value read from the node is resolved using the template filter.

190 * If the value value can not be found according to the annotation

195 * @return this returns true if the primitive key is valid

196 */

197 public boolean validate(InputNode node) throws Exception {

198 Class expect = type.getType();

199 String name = entry.getValue();

203 name = context.getName(expect);

204 }

205 return validateElement(node, name);

206 }

207 return validateAttribute(node, name);

RNSInstrumentationConstants.java (https://github.com/byron-hawkins/org.hawkinssoftware.rns.git) Java · 61 lines

17 import org.hawkinssoftware.rns.core.role.DomainRole;

18 import org.hawkinssoftware.rns.core.role.TypeRole;

19 import org.hawkinssoftware.rns.core.validation.ValidateInvocation;

20 import org.hawkinssoftware.rns.core.validation.ValidateRead;

44 static final String NO_FRAME_ANNOTATION_TYPENAME = BytecodeInstrumentationUtil.getBytecodeClassname(ExecutionPath.NoFrame.class);

45

46 static final String VALIDATE_INVOCATION_ANNOTATION_TYPENAME = BytecodeInstrumentationUtil.getBytecodeClassname(ValidateInvocation.class);

47 static final String VALIDATE_READ_ANNOTATION_TYPENAME = BytecodeInstrumentationUtil.getBytecodeClassname(ValidateRead.class);

48 static final String VALIDATE_WRITE_ANNOTATION_TYPENAME = BytecodeInstrumentationUtil.getBytecodeClassname(ValidateWrite.class);

49 static final String READ_EXEMPTION_ANNOTATION_TYPENAME = BytecodeInstrumentationUtil.getBytecodeClassname(ValidateRead.Exempt.class);

50 static final String WRITE_EXEMPTION_ANNOTATION_TYPENAME = BytecodeInstrumentationUtil.getBytecodeClassname(ValidateWrite.Exempt.class);

51 static final String VALIDATION_METHOD_ANNOTATION_TYPENAME = BytecodeInstrumentationUtil.getBytecodeClassname(ValidationMethod.class);

52 static final String VALIDATION_METHOD_DELEGATE_ANNOTATION_TYPENAME = BytecodeInstrumentationUtil.getBytecodeClassname(ValidationMethod.Delegate.class);

55 static final String VALIDATE_WRITE_METHOD_NAME = "validateWrite";

56 static final String VALIDATE_READ_METHOD_NAME = "validateRead";

57 static final String DEFAULT_VALIDATION_METHOD_NAME = "validateMessage";

LoggerAdd.java (https://github.com/aprilhu0/jboss-as.git) Java · 84 lines

50 @Override

51 protected void populateModel(ModelNode operation, ModelNode model) throws OperationFailedException {

52 LEVEL.validateAndSet(operation, model);

53 CATEGORY.validateAndSet(operation, model);

54 HANDLERS.validateAndSet(operation, model);

55 }

56

58 final PathAddress address = PathAddress.pathAddress(operation.get(OP_ADDR));

59 final String name = address.getLastElement().getValue();

60 final ModelNode level = LEVEL.validateResolvedOperation(model);

61

62 final ServiceTarget target = context.getServiceTarget();

74 try {

75 // install logger handler services

76 final ModelNode handlers = HANDLERS.validateResolvedOperation(model);

77 if (handlers.isDefined()) {

78 newControllers.addAll(LogServices.installLoggerHandlers(target, name, handlers, verificationHandler));

ConstrainedPropertyTests.java (https://github.com/jabley/grails.git) Java · 374 lines

325 "login(size:5..15,nullable:false,blank:false)\n" +

326 "other(blank:false,size:5..15,nullable:false)\n" +

327 "email(email:true)\n" +

328 "}\n" +

329 "}" );

362 go.setProperty("email", "rubbish_email");

363 Errors errors = new BindException(go, "TestClass");

364 emailConstraint.validate(go, go.getProperty("email"), errors );

365

366 assertTrue(errors.hasErrors());

367 go.setProperty("email", "valid@email.com");

368 errors = new BindException(go, "TestClass");

369 emailConstraint.validate(go, go.getProperty("email"), errors );

370 assertFalse(errors.hasErrors());

371 }

UsurperSpringTest.java (https://github.com/zepag/org-libs.git) Java · 456 lines

67 DummyVO object = (DummyVO) usurperFactoryBean.getObject();

68

69 // VALIDATE RESULTING OBJECT

70 try {

71 TestCommons.auditVO(object);

86 List list = (List) usurperListFactoryBean.getObject();

87 assertTrue("Generated List's size should be " + listSize, list.size() == listSize);

88 // VALIDATE RESULTING OBJECT

89 try {

90 for (Object object : list) {

107 Set set = (Set) usurperSetFactoryBean.getObject();

108 assertTrue("Generated Set's size should be " + setSize, set.size() == setSize);

109 // VALIDATE RESULTING OBJECT

110 try {

111 for (Object object : set) {

Entry.java (https://github.com/Jib-BAOSP/platform_external_gdata.git) Java · 401 lines

25 private String content = null;

26 private String author = null;

27 private String email = null;

28 private String category = null;

29 private String categoryScheme = null;

56 contentSource = null;

57 author = null;

58 email = null;

59 category = null;

60 categoryScheme = null;

391

392 /**

393 * @param email the email to set

394 */

395 public void setEmail(String email) {

396 this.email = email;

397 }

398

AuthDataManager.java (https://gitlab.com/admin-github-cloud/My-Wallet-V3-Android) Java · 219 lines

55 }

56

57 public Observable<CharSequenceX> validatePin(String pin) {

58 return Observable.fromCallable(() -> mAccessState.validatePIN(pin))

119 }

120

121 public Observable<Integer> createCheckEmailTimer() {

122 timer = 2 * 60;

123

162 @Override

163 public void onCompleted() {

164 mPrefsUtil.setValue(PrefsUtil.KEY_EMAIL_VERIFIED, true);

165 listener.onSuccess();

166 }

Validate.java (https://github.com/RefuX/applause.git) Java · 554 lines

28 *

29 * <pre>

30 * Validate.isTrue( i > 0, "The value must be greater than zero: ", i);

31 * Validate.notNull( surname, "The surname must not be null");

37 * @author Norm Deane

38 * @since 2.0

39 * @version $Id: Validate.java 437554 2006-08-28 06:21:41Z bayard $

40 */

41 public class Validate {

42 // Validate has no dependencies on other classes in Commons Lang at present

43

44 /**

45 * Constructor. This class should not normally be instantiated.

46 */

47 public Validate() {

48 super();

49 }

ParsingTest.java (https://gitlab.com/dovereem/xtcetools) Java · 594 lines

67

68 XTCEDatabase db = new XTCEDatabase( new File( file ),

69 false, // validate on load

70 false, // xinclude

71 true ); // read only

97

98 XTCEDatabase db = new XTCEDatabase( new File( file ),

99 false, // validate on load

100 false, // xinclude

101 true ); // read only

124

125 XTCEDatabase db = new XTCEDatabase( new File( file ),

126 false, // validate on load

127 false, // xinclude

128 false ); // read only

IEmailService.java (https://github.com/JTroniks/CyanogenMod-7.git) Java · 502 lines

1 /*

2 * This file is auto-generated. DO NOT MODIFY.

3 * Original file: packages/apps/Email/src/com/android/email/service/IEmailService.aidl

4 */

5 package com.android.email.service;

19 * generating a proxy if needed.

20 */

21 public static com.android.email.service.IEmailService asInterface(android.os.IBinder obj)

22 {

23 if ((obj==null)) {

385 return _result;

386 }

387 public void setCallback(com.android.email.service.IEmailServiceCallback cb) throws android.os.RemoteException

388 {

389 android.os.Parcel _data = android.os.Parcel.obtain();

FoldVisibilityManager.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 921 lines ✨ Summary

This Java code is part of a text editor’s buffer management system. It handles folding, unfolding, and narrowing of the visible text area in response to changes in the underlying buffer content. The code updates the offset manager, text area, and other internal state variables accordingly, ensuring that the user interface remains consistent with the buffer’s contents.

880 } //}}}

881

882 //{{{ _invalidate() method

883 /**

884 * Do not call this method. The only reason it is public is so

885 * that the <code>Buffer</code> class can call it.

886 */

887 public void _invalidate(int startLine)

888 {

889 if(lastPhysical >= startLine)

LoadingRenderer.java (https://gitlab.com/santoshvarma4u/chefmonster-Android) Java · 124 lines

26 public void onAnimationUpdate(ValueAnimator animation) {

27 computeRender((float) animation.getAnimatedValue());

28 invalidateSelf();

29 }

30 };

81 // if I just call mRenderAnimator.end(),

82 // it will always call the method onAnimationUpdate(ValueAnimator animation)

83 // why ? if you know why please send email to me (dinus_developer@163.com)

84 mRenderAnimator.removeUpdateListener(mAnimatorUpdateListener);

85

118 }

119

120 private void invalidateSelf() {

121 mCallback.invalidateDrawable(null);

Attribute.java (https://github.com/infinispan/infinispan.git) Java · 152 lines

111 URL,

112 USERNAME,

113 VALIDATE_ON_ACQUISITION,

114 VALUE,

115 VERIFIABLE,

ErrorListPlugin.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 320 lines ✨ Summary

This Java code is a plugin for an integrated development environment (IDE) that displays error messages from source files. It listens for changes in source files and buffers, and updates the display of error messages accordingly. When errors are detected, it highlights the affected lines in the editor and provides a dockable window to view the error list.

104 textArea.addLeftOfScrollBar(overview);

105 textArea.putClientProperty(ErrorOverview.class,overview);

106 textArea.revalidate();

107 }

108 } //}}}

116 JEditTextArea textArea = editPane.getTextArea();

117 textArea.removeLeftOfScrollBar(overview);

118 textArea.revalidate();

119 textArea.putClientProperty(ErrorOverview.class,null);

120 }

197 Buffer buffer = error.getBuffer();

198 if(buffer != null)

199 invalidateLineInAllViews(buffer,error.getLineNumber());

200

201 if(showOnError)

XML.props (https://jedit.svn.sourceforge.net/svnroot/jedit) MSBuild · 177 lines

28

29 # DTD validation

30 xml.validate=true

31

32 # Enable tag completion

157 options.xml.general.auto-parse-delay=After last keystroke, wait (seconds):

158 options.xml.general.show-attributes=Show tag attributes in tree

159 options.xml.general.validate=Validate if DTD or schema available

160 options.xml.general.modes=Enable XML parsing for the following edit modes:

161

OptionsDialog.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 599 lines ✨ Summary

This Java code creates a graphical user interface (GUI) for managing options and settings. It displays a tree-like structure of options, allowing users to select and edit individual options. The GUI is built using Swing components and includes features like editing option values and adding/removing options from the tree structure.

193 newSize.height = 300;

194 setSize(newSize);

195 validate();

196

197 currentPane = name;

TestCSSRecordDAO.java (https://github.com/societies/SOCIETIES-Platform.git) Java · 208 lines

73 cssProfile.setStatus(CSSManagerEnums.cssStatus.Active.ordinal());

74 cssProfile.setCssUpTime(TEST_UPTIME);

75 cssProfile.setEmailID(TEST_EMAIL);

76 cssProfile.setEntity(CSSManagerEnums.entityType.Organisation.ordinal());

77 cssProfile.setForeName(TEST_FORENAME);

95 assertEquals(CSSManagerEnums.cssStatus.Active.ordinal(), cssProfile.getStatus());

96 assertEquals(TEST_UPTIME, cssProfile.getCssUpTime());

97 assertEquals(TEST_EMAIL, cssProfile.getEmailID());

98 assertEquals(CSSManagerEnums.entityType.Organisation.ordinal(), cssProfile.getEntity());

99 assertEquals(TEST_FORENAME, cssProfile.getForeName());

141

142 this.cssProfile.setCssIdentity(TEST_UPDATE_IDENTITY);

143 this.cssProfile.setEmailID(TEST_UPDATE_EMAIL);

144

145 this.cssProfile.setCSSNodes(cssUpdateNodes);

CrowdClient.java (https://bitbucket.org/atlassian/crowd-rest-client.git) Java · 726 lines

195 * @param username name of the user

196 * @throws UserNotFoundException if the user does not exist

197 * @throws InvalidEmailAddressException if the user does not have a valid email to send the reset password link to

198 * @throws ApplicationPermissionException if the application is not permitted to perform the requested operation on the server

199 * @throws InvalidAuthenticationException if the application and password are not valid

204

205 /**

206 * Sends the usernames associated with the given email address. No email will be sent if there are no usernames

207 * associated with a given <code>email</code>.

208 *

209 * @param email email address of the user

210 * @throws InvalidEmailAddressException if the <code>email</code> is not valid

213 * @throws OperationFailedException if the operation has failed for any other reason, including invalid arguments and the operation not being supported on the server.

214 */

215 public void requestUsernames(final String email) throws InvalidEmailAddressException, OperationFailedException, InvalidAuthenticationException, ApplicationPermissionException;

216

217 /**

GenericUserGroupMgr.java (https://bitbucket.org/chatcharin/ofbiz.git) Java · 449 lines

146 public List getAllSubgroups(UserTransaction trans, List groupNames) throws RootException {

147 List subGroups = new ArrayList();

148 if (UtilValidate.isNotEmpty(groupNames)) {

149 Iterator i = groupNames.iterator();

150 while (i.hasNext()) {

305 user.set(org.ofbiz.shark.SharkConstants.lastName, lastName);

306 user.set(org.ofbiz.shark.SharkConstants.passwd, password);

307 user.set(org.ofbiz.shark.SharkConstants.emailAddress, email);

308 try {

309 delegator.create(user);

322 user.set(org.ofbiz.shark.SharkConstants.firstName, firstName);

323 user.set(org.ofbiz.shark.SharkConstants.lastName, firstName);

324 user.set(org.ofbiz.shark.SharkConstants.emailAddress, email);

325 try {

326 user.store();

RuleActions.java (https://bitbucket.org/diego_pascotto/my-code-snippets.git) Java · 509 lines

427

428 if (this.getSendSMSAlertToRecipients().size() > 0) {

429 EmailAddressCollection emailCollection = convertSMSRecipientsFromMobilePhoneCollectionToEmailAddressCollection(

430 this.getSendSMSAlertToRecipients());

431 emailCollection.writeToXml(writer,

476 Collection<MobilePhone> mobilePhoneCollection =

477 new ArrayList<MobilePhone>();

478 for(EmailAddress emailAddress : emailCollection) {

479 mobilePhoneCollection.add(new MobilePhone(emailAddress.getName(),

496 new EmailAddressCollection(XmlElementNames.Address);

497 for(MobilePhone recipient : recipientCollection) {

498 EmailAddress emailAddress = new EmailAddress(

499 recipient.getName(),

500 recipient.getPhoneNumber(),

501 RuleActions.MobileType);

502 emailCollection.add(emailAddress);

503 }

504

sym_hipd.c (http://omnia2droid.googlecode.com/svn/trunk/) C · 5841 lines ✨ Summary

This C code initializes and configures a hardware controller (HCB) for a storage device, allocating memory and setting up data structures to manage the device’s operations. It sets up various tables and arrays to store bus addresses, target control blocks, and other information necessary for the device’s operation. The code also frees allocated resources when the HCB is no longer needed.

851 np->rv_dcntl |= CLSE; /* Cache Line Size Enable */

852 if (np->features & FE_WRIE)

853 np->rv_ctest3 |= WRIE; /* Write and Invalidate */

854 if (np->features & FE_DFS)

855 np->rv_ctest5 |= DFS; /* Dma Fifo Size */

CommonAttributes.java (https://github.com/dpospisil/jboss-as.git) Java · 155 lines

38 import static org.jboss.as.connector.subsystems.common.pool.Constants.POOL_USE_STRICT_MIN;

39 import static org.jboss.as.connector.subsystems.common.pool.Constants.USE_FAST_FAIL;

40 import static org.jboss.as.connector.subsystems.common.pool.Constants.VALIDATE_ON_MATCH;

41 import static org.jboss.as.connector.subsystems.resourceadapters.Constants.ALLOCATION_RETRY;

42 import static org.jboss.as.connector.subsystems.resourceadapters.Constants.ALLOCATION_RETRY_WAIT_MILLIS;

123 BACKGROUNDVALIDATIONMILLIS,

124 BACKGROUNDVALIDATION,

125 USE_FAST_FAIL, VALIDATE_ON_MATCH, USE_CCM,

126 SHARABLE, ENLISTMENT,

127 RECOVERLUGIN_CLASSNAME,

ParentChildPropertyDisplayListListView.java (https://github.com/DarioGT/Modelibra-Family.git) Java · 110 lines

70 String parentPropertyClass = parentPropertyConfig.getPropertyClass();

71 if (parentPropertyClass.equals(PropertyClass.getUrl())

72 || parentPropertyClass.equals(PropertyClass.getEmail())) {

73 parentPropertyPanel = new ExternalLinkPanel(parentModel, parentView);

74 item.add(parentPropertyPanel);

75 } else if (parentPropertyConfig.getPropertyClass().equals(

76 PropertyClass.getString())

77 && parentPropertyConfig.isValidateType()) {

78 if (parentPropertyConfig.getValidationType().equals(

79 ValidationType.getUrl())

80 || parentPropertyConfig.getValidationType().equals(

81 ValidationType.getEmail())) {

82 parentPropertyPanel = new ExternalLinkPanel(parentModel,

83 parentView);

ModelMeta.java (https://github.com/DarioGT/Modelibra-Family.git) Java · 1499 lines

36 import org.modelibra.exception.MetaRuntimeException;

37 import org.modelibra.exception.TypeRuntimeException;

38 import org.modelibra.type.Email;

39 import org.modelibra.type.PropertyClass;

40 import org.modelibra.type.ValidationType;

KeystoreManager.java (https://bitbucket.org/adri11/dmoda_mobile_daemon.git) Java · 232 lines

100 */

101 public static void verifyKeystoreContent(AppleServer server, Object keystore) throws KeystoreException {

102 KeyStore keystoreToValidate = null;

103 if (keystore instanceof KeyStore) keystoreToValidate = (KeyStore) keystore;

104 else keystoreToValidate = loadKeystore(server, keystore);

105 verifyKeystoreContent(keystoreToValidate);

190 */

191 static InputStream streamKeystore(Object keystore) throws InvalidKeystoreReferenceException {

192 validateKeystoreParameter(keystore);

193 try {

194 if (keystore instanceof InputStream) return (InputStream) keystore;

197 else if (keystore instanceof String) return new BufferedInputStream(new FileInputStream((String) keystore));

198 else if (keystore instanceof byte[]) return new ByteArrayInputStream((byte[]) keystore);

199 else return null; // we should not get here since validateKeystore ensures that the reference is valid

200 } catch (Exception e) {

201 throw new InvalidKeystoreReferenceException("Invalid keystore reference: " + e.getMessage());

JobSpecification.java (https://github.com/OurGrid/OurGrid.git) Java · 277 lines

78 this.requirements = requirements;

79 this.taskSpecs = taskSpecs;

80 validate();

81 }

82

83

84 /**

85 * This method validates the attributes of this Job Spec

86 */

87 private void validate() throws JobSpecificationException {

164

165 this.taskSpecs = taskSpecs;

166 validate();

167 }

168

PrintArcTest.java (https://github.com/Morriar/ProxyJDK.git) Java · 105 lines

44 b.addActionListener (this);

45 add("South", b);

46 validate();

47 }

48

RemoveAfterRequest.java (https://github.com/Morriar/ProxyJDK.git) Java · 102 lines

70 btn3.requestFocus();

71 frame.remove(btn1);

72 frame.invalidate();

73 frame.validate();

Test6526631.java (https://github.com/Morriar/ProxyJDK.git) Java · 99 lines

64 }

65

66 public void validateFirst() {

67 validateThird();

69 }

70

71 public void validateSecond() {

72 validateThird();

74 }

75

76 public void validateThird() {

77 JViewport viewport = this.pane.getViewport();

78 JScrollBar scroller = this.pane.getHorizontalScrollBar();

TestCookieRFC2965Spec.java (https://github.com/steveclark7/Test1.git) Java · 1014 lines

467 */

468 @Test

469 public void testValidateNoDomain() throws Exception {

470 CookieSpec cookiespec = new RFC2965Spec();

471 CookieOrigin origin = new CookieOrigin("www.domain.com", 80, "/", false);

473 List<Cookie> cookies = cookiespec.parse(header, origin);

474 for (int i = 0; i < cookies.size(); i++) {

475 cookiespec.validate(cookies.get(i), origin);

476 }

477 Assert.assertNotNull(cookies);

487 */

488 @Test

489 public void testValidateDomainLeadingDot() throws Exception {

490 CookieSpec cookiespec = new RFC2965Spec();

491 CookieOrigin origin = new CookieOrigin("www.domain.com", 80, "/", false);

TestBasicCookieAttribHandlers.java (https://github.com/steveclark7/Test1.git) Java · 502 lines

75

76 @Test

77 public void testBasicDomainValidate1() throws Exception {

78 BasicClientCookie cookie = new BasicClientCookie("name", "value");

79 CookieOrigin origin = new CookieOrigin("www.somedomain.com", 80, "/", false);

81

82 cookie.setDomain(".somedomain.com");

83 h.validate(cookie, origin);

84

85 cookie.setDomain(".otherdomain.com");

86 try {

87 h.validate(cookie, origin);

88 Assert.fail("MalformedCookieException should have been thrown");

89 } catch (MalformedCookieException ex) {

smarty-mode.el (https://bitbucket.org/shuangxinyu/emacspack.git) Lisp · 2754 lines

110 The following keywords for template generation are supported:

111 <filename> : replaced by the name of the buffer

112 <author> : replaced by the user name and email address

113 \(`user-full-name',`mail-host-address', `user-mail-address')

114 <login> : replaced by user login name (`user-login-name')

383 ("SmartyValidate"

384 ["validate" smarty-template-validate t]))

385 ("Plugins (Variable Modifiers)"

386 ("AlternativeDateModifierPlugin"

533

534 (defconst smarty-01-plugins-functions

535 '("validate" "formtool_checkall" "formtool_copy" "formtool_count_chars"

536 "formtool_init" "formtool_move" "formtool_moveall"

537 "formtool_movedown" "formtool_moveup" "formtool_remove"

bsh.jj (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 2966 lines

469 Gather modifiers for a class, method, or field.

470 I lookahead is true then we are being called as part of a lookahead and we

471 should not enforce any rules. Otherwise we validate based on context

472 (field, method, class)

473 */

ImageViewer.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 193 lines ✨ Summary

This Java code creates a simple image viewer with zooming capabilities. It displays an image in a panel, along with its filename and zoom buttons. The user can zoom in and out of the image, and clear the display. The image is resized to fit within the specified boundaries when zoomed.

104 public void actionPerformed( ActionEvent ae ) {

105 imageLabel.setIcon( null );

106 ImageViewer.this.invalidate();

107 ImageViewer.this.validate();

121 imageLabel.setIcon( icon );

122 imageLabel.setSize( ( int ) width, ( int ) height );

123 ImageViewer.this.invalidate();

124 ImageViewer.this.validate();

139 imageLabel.setIcon( icon );

140 imageLabel.setSize( ( int ) width, ( int ) height );

141 ImageViewer.this.invalidate();

142 ImageViewer.this.validate();

160 imageLabel.setIcon( icon );

161 imageLabel.setSize( ( int ) originalWidth, ( int ) originalHeight );

162 invalidate();

163 validate();

progress.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 3749 lines

148 <MARK_FOLLOWING TYPE="FUNCTION">:auto-resize</MARK_FOLLOWING>

149 <MARK_FOLLOWING TYPE="FUNCTION">:auto-return</MARK_FOLLOWING>

150 <MARK_FOLLOWING TYPE="FUNCTION">:auto-validate</MARK_FOLLOWING>

151 <MARK_FOLLOWING TYPE="FUNCTION">:auto-zap</MARK_FOLLOWING>

152 <MARK_FOLLOWING TYPE="FUNCTION">:available</MARK_FOLLOWING>

185 <MARK_FOLLOWING TYPE="FUNCTION">:buffer-name</MARK_FOLLOWING>

186 <MARK_FOLLOWING TYPE="FUNCTION">:buffer-release</MARK_FOLLOWING>

187 <MARK_FOLLOWING TYPE="FUNCTION">:buffer-validate</MARK_FOLLOWING>

188 <MARK_FOLLOWING TYPE="FUNCTION">:buffer-value</MARK_FOLLOWING>

189 <MARK_FOLLOWING TYPE="FUNCTION">:bytes-read</MARK_FOLLOWING>

596 <MARK_FOLLOWING TYPE="FUNCTION">:no-focus</MARK_FOLLOWING>

597 <MARK_FOLLOWING TYPE="FUNCTION">:no-schema-marshall</MARK_FOLLOWING>

598 <MARK_FOLLOWING TYPE="FUNCTION">:no-validate</MARK_FOLLOWING>

599 <MARK_FOLLOWING TYPE="FUNCTION">:node-type</MARK_FOLLOWING>

600 <MARK_FOLLOWING TYPE="FUNCTION">:node-value</MARK_FOLLOWING>

ExtendedGridLayout.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 1225 lines ✨ Summary

This Java class is a layout manager for components in a graphical user interface (GUI). It determines how to arrange and size components within a container, such as a panel or frame. The class takes several parameters, including horizontal and vertical gaps, border distances, and a comptable flag, to customize its behavior.

398

399 /**

400 * Invalidates the layout, indicating that if the layout manager

401 * has cached information it should be discarded.

402 *

403 * @param container The container for which the cached information should be discarded

404 */

405 public void invalidateLayout(Container container)

406 {

407 }

inode.c (http://omnia2droid.googlecode.com/svn/trunk/) C · 5312 lines ✨ Summary

This C code is part of a file system implementation, specifically handling journaling and data corruption protection for a Linux file system. It provides functions to manage inodes, handle page faults, and ensure data integrity by writing changes to a journal before modifying the underlying storage. The code ensures that file system updates are atomic and consistent, preventing data corruption and ensuring system reliability.

57 }

58

59 static void ext4_invalidatepage(struct page *page, unsigned long offset);

60

61 /*

455 goto failure;

456 }

457 /* validate block references */

458 if (ext4_check_indirect_blockref(inode, bh)) {

459 put_bh(bh);

BufferLoadRequest.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 395 lines ✨ Summary

This Java code is part of a text editor’s functionality, specifically for handling file operations. It reads and processes files from an input stream, attempting to detect the encoding and read the contents. If multiple encodings are detected, it tries each one until successful. The process also handles markers in the file, which represent shortcuts to specific positions.

190 , path + ": Reopening to rewind the stream");

191 // Reopen the stream because the mark has been

192 // invalidated while previous reading.

193 markedStream.close();

194 InputStream in = getNakedStream();

SessionsPlugin.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 308 lines ✨ Summary

This Java code is part of a plugin for an integrated development environment (IDE). It manages session switching between different views within the IDE, allowing users to save and load their current work sessions. The code creates a toolbar or buffer list component that displays a list of available sessions, enabling users to switch between them.

230 {

231 view.getToolBar().add(switcher);

232 view.getRootPane().revalidate();

233 }

234 });

249 {

250 bufferlist.add(BorderLayout.NORTH, switcher);

251 bufferlist.revalidate();

252 }

253 });

277 {

278 view.getToolBar().remove(switcher);

279 view.getRootPane().revalidate();

280 }

281

View.html (https://jedit.svn.sourceforge.net/svnroot/jedit) HTML · 2267 lines ✨ Summary

This HTML code is a documentation page for a Java class, likely View, that provides information about its methods and properties. It displays the class’s methods, their parameters, return types, and descriptions, as well as examples of how to use them. The content is formatted in a standard way, with clear headings and concise text, making it easy to read and understand.

901 </TR>

902 <TR BGCOLOR="white" CLASS="TableRowColor">

903 <TD><CODE>add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree</CODE></TD>

904 </TR>

905 </TABLE>

dijit-all_zh-tw.js (http://aipo.googlecode.com/svn/) JavaScript · 2 lines

1 dojo.provide("dijit.nls.dijit-all_zh-tw");dojo.provide("dojo.nls.colors");dojo.nls.colors._built=true;dojo.provide("dojo.nls.colors.zh_tw");dojo.nls.colors.zh_tw={"lightsteelblue": "????", "orangered": "???", "midnightblue": "???", "cadetblue": "???", "seashell": "???", "slategrey": "???", "coral": "???", "darkturquoise": "????", "antiquewhite": "???", "mediumspringgreen": "????", "salmon": "???", "darkgrey": "???", "ivory": "???", "greenyellow": "???", "mistyrose": "????", "lightsalmon": "???", "silver": "??", "dimgrey": "???", "orange": "??", "white": "??", "navajowhite": "?????", "royalblue": "???", "deeppink": "????", "lime": "???", "oldlace": "????", "chartreuse": "????", "darkcyan": "???", "yellow": "??", "linen": "???", "olive": "???", "gold": "??", "lawngreen": "???", "lightyellow": "???", "tan": "???", "darkviolet": "?????", "lightslategrey": "????", "grey": "??", "darkkhaki": "????", "green": "??", "deepskyblue": "????", "aqua": "??", "sienna": "????", "mintcream": "?????", "rosybrown": "???", "mediumslateblue": "????", "magenta": "???", "lightseagreen": "????", "cyan": "??", "olivedrab": "???", "darkgoldenrod": "????", "slateblue": "???", "mediumaquamarine": "????", "lavender": "????", "mediumseagreen": "????", "maroon": "??", "darkslategray": "????", "mediumturquoise": "????", "ghostwhite": "???", "darkblue": "???", "mediumvioletred": "?????", "brown": "??", "lightgray": "???", "sandybrown": "???", "pink": "???", "firebrick": "???", "indigo": "???", "snow": "???", "darkorchid": "????", "turquoise": "???", "chocolate": "????", "springgreen": "???", "moccasin": "????", "navy": "???", "lemonchiffon": "???", "teal": "????", "floralwhite": "???", "cornflowerblue": "????", "paleturquoise": "????", "purple": "??", "gainsboro": "???", "plum": "???", "red": "??", "blue": "??", "forestgreen": "???", "darkgreen": "???", "honeydew": "???", "darkseagreen": "????", "lightcoral": "????", "palevioletred": "?????", "mediumpurple": "???", "saddlebrown": "???", "darkmagenta": "????", "thistle": "??", "whitesmoke": "???", "wheat": "???", "violet": "????", "lightskyblue": "????", "goldenrod": "???", "mediumblue": "???", "skyblue": "???", "crimson": "????", "darksalmon": "???", "darkred": "???", "darkslategrey": "????", "peru": "???", "lightgrey": "???", "lightgoldenrodyellow": "????", "blanchedalmond": "???", "aliceblue": "????", "bisque": "???", "slategray": "???", "palegoldenrod": "????", "darkorange": "???", "aquamarine": "???", "lightgreen": "???", "burlywood": "???", "dodgerblue": "???", "darkgray": "???", "lightcyan": "???", "powderblue": "???", "blueviolet": "???", "orchid": "???", "dimgray": "???", "beige": "???", "fuchsia": "???", "lavenderblush": "?????", "hotpink": "????", "steelblue": "???", "tomato": "???", "lightpink": "????", "limegreen": "???", "indianred": "???", "papayawhip": "????", "lightslategray": "????", "gray": "??", "mediumorchid": "????", "cornsilk": "???", "black": "??", "seagreen": "???", "darkslateblue": "????", "khaki": "???", "lightblue": "???", "palegreen": "???", "azure": "???", "peachpuff": "????", "darkolivegreen": "????", "yellowgreen": "???"};dojo.provide("dijit.nls.loading");dijit.nls.loading._built=true;dojo.provide("dijit.nls.loading.zh_tw");dijit.nls.loading.zh_tw={"loadingState": "???...", "errorState": "???????"};dojo.provide("dijit.nls.Textarea");dijit.nls.Textarea._built=true;dojo.provide("dijit.nls.Textarea.zh_tw");dijit.nls.Textarea.zh_tw={"iframeEditTitle": "edit area", "iframeFocusTitle": "edit area frame"};dojo.provide("dijit._editor.nls.commands");dijit._editor.nls.commands._built=true;dojo.provide("dijit._editor.nls.commands.zh_tw");dijit._editor.nls.commands.zh_tw={"removeFormat": "????", "copy": "??", "paste": "??", "selectAll": "??", "insertOrderedList": "????", "insertTable": "??/????", "underline": "??", "foreColor": "????", "htmlToggle": "HTML ???", "formatBlock": "????", "insertHorizontalRule": "????", "delete": "??", "insertUnorderedList": "??????", "tableProp": "????", "insertImage": "????", "superscript": "??", "subscript": "??", "createLink": "????", "undo": "??", "italic": "??", "fontName": "????", "justifyLeft": "????", "unlink": "????", "toggleTableBorder": "??????", "fontSize": "????", "indent": "??", "redo": "??", "strikethrough": "????", "justifyFull": "??", "justifyCenter": "????", "hiliteColor": "????", "deleteTable": "????", "outdent": "??", "cut": "??", "plainFormatBlock": "????", "bold": "??", "systemShortcutFF": "\"${0}\" ??? Mozilla Firefox ??????????????? ${1}?", "justifyRight": "????", "appleKey": "?${0}", "ctrlKey": "ctrl+${0}"};dojo.provide("dojo.cldr.nls.number");dojo.cldr.nls.number._built=true;dojo.provide("dojo.cldr.nls.number.zh_tw");dojo.cldr.nls.number.zh_tw={"currencyFormat": "�#,##0.00", "scientificFormat": "#E0", "currencySpacing-afterCurrency-currencyMatch": "[:letter:]", "infinity": "?", "list": ";", "percentSign": "%", "minusSign": "-", "currencySpacing-beforeCurrency-surroundingMatch": "[:digit:]", "currencySpacing-afterCurrency-insertBetween": " ", "nan": "NaN", "nativeZeroDigit": "0", "plusSign": "+", "currencySpacing-afterCurrency-surroundingMatch": "[:digit:]", "currencySpacing-beforeCurrency-currencyMatch": "[:letter:]", "perMille": "�", "group": ",", "percentFormat": "#,##0%", "decimalFormat": "#,##0.###", "decimal": ".", "patternDigit": "#", "currencySpacing-beforeCurrency-insertBetween": " ", "exponential": "E"};dojo.provide("dijit.nls.common");dijit.nls.common._built=true;dojo.provide("dijit.nls.common.zh_tw");dijit.nls.common.zh_tw={"buttonCancel": "??", "buttonSave": "??", "buttonOk": "??"};dojo.provide("dijit.form.nls.validate");dijit.form.nls.validate._built=true;dojo.provide("dijit.form.nls.validate.zh_tw");dijit.form.nls.validate.zh_tw={"rangeMessage": "* ???????", "invalidMessage": "* ???????", "missingMessage": "* ???????"};dojo.provide("dijit.form.nls.ComboBox");dijit.form.nls.ComboBox._built=true;dojo.provide("dijit.form.nls.ComboBox.zh_tw");dijit.form.nls.ComboBox.zh_tw={"previousMessage": "??????", "nextMessage": "?????"};dojo.provide("dojo.cldr.nls.currency");dojo.cldr.nls.currency._built=true;dojo.provide("dojo.cldr.nls.currency.zh_tw");dojo.cldr.nls.currency.zh_tw={"HKD_displayName": "??", "CHF_displayName": "????", "JPY_symbol": "JP�", "HKD_symbol": "HK$", "CAD_displayName": "????", "USD_symbol": "US$", "AUD_displayName": "?????", "JPY_displayName": "??", "USD_displayName": "??", "GBP_displayName": "??", "EUR_displayName": "??", "GBP_symbol": "�", "EUR_symbol": "�"};dojo.provide("dojo.cldr.nls.gregorian");dojo.cldr.nls.gregorian._built=true;dojo.provide("dojo.cldr.nls.gregorian.zh_tw");dojo.cldr.nls.gregorian.zh_tw={"eraAbbr": ["???", "??"], "am": "??", "months-format-abbr": ["??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "???", "???"], "days-format-abbr": ["??", "??", "??", "??", "??", "??", "??"], "pm": "??", "months-format-wide": ["??", "??", "??", "??", "??", "??", "??", "??", "??", "??", "???", "???"], "months-standAlone-narrow": ["1?", "2?", "3?", "4?", "5?", "6?", "7?", "8?", "9?", "10?", "11?", "12?"], "days-standAlone-narrow": ["?", "?", "?", "?", "?", "?", "?"], "days-format-wide": ["???", "???", "???", "???", "???", "???", "???"], "dateTimeFormats-appendItem-Second": "{0} ({2}: {1})", "field-dayperiod": "Dayperiod", "field-minute": "Minute", "eraNames": ["BCE", "CE"], "field-weekday": "Day of the Week", "dateTimeFormats-appendItem-Year": "{0} {1}", "field-era": "Era", "field-hour": "Hour", "timeFormat-full": "HH:mm:ss z", "dateTimeFormats-appendItem-Week": "{0} ({2}: {1})", "dateTimeFormats-appendItem-Timezone": "{0} {1}", "dateTimeFormats-appendItem-Month": "{0} ({2}: {1})", "dateFormat-long": "yyyy MMMM d", "timeFormat-medium": "HH:mm:ss", "field-zone": "Zone", "dateTimeFormats-appendItem-Minute": "{0} ({2}: {1})", "dateFormat-medium": "yyyy MMM d", "quarters-format-abbreviated": ["Q1", "Q2", "Q3", "Q4"], "dateTimeFormat": "{1} {0}", "field-year": "Year", "dateTimeFormats-appendItem-Day": "{0} ({2}: {1})", "field-week": "Week", "timeFormat-long": "HH:mm:ss z", "timeFormat-short": "HH:mm", "field-month": "Month", "dateTimeFormats-appendItem-Quarter": "{0} ({2}: {1})", "field-second": "Second", "field-day": "Day", "dateTimeFormats-appendItem-Day-Of-Week": "{0} {1}", "dateTimeFormats-appendItem-Hour": "{0} ({2}: {1})", "dateFormat-short": "yy/MM/dd", "dateFormat-full": "EEEE, yyyy MMMM dd", "dateTimeFormats-appendItem-Era": "{0} {1}", "quarters-format-wide": ["Q1", "Q2", "Q3", "Q4"]};dojo.provide("dijit.nls.Textarea");dijit.nls.Textarea._built=true;dojo.provide("dijit.nls.Textarea.zh_tw");dijit.nls.Textarea.zh_tw={"iframeEditTitle": "edit area", "iframeFocusTitle": "edit area frame"};

2

Label.as (git://github.com/OpenRTMFP/ArcusNode.git) ActionScript · 154 lines ✨ Summary

This is an ActionScript class that defines a Label component for displaying text. It extends a Component class and provides properties for setting and getting the text, as well as whether to autosize the label. The class also includes methods for drawing the visual UI of the component and handling events such as resizing.

125 _text = t;

126 if(_text == null) _text = "";

127 invalidate();

128 }

129 public function get text():String