text
stringlengths 10
2.72M
|
|---|
package com.smxknife.springdatajpa.model.ent;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
import java.util.List;
/**
* @author smxknife
* 2020/11/19
*/
@Getter
@Setter
@Entity
@Table(name = "tb_ent_workshop")
public class WorkShop extends EntItem {
private String code;
private String name;
private String manager;
@ManyToOne
private Project project;
@OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL)
private List<Equipment> equipments;
@OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL)
private List<Process> processes;
}
|
package com.mysql.cj.jdbc.exceptions;
import com.mysql.cj.exceptions.DeadlockTimeoutRollbackMarker;
import java.sql.SQLTransactionRollbackException;
public class MySQLTransactionRollbackException extends SQLTransactionRollbackException implements DeadlockTimeoutRollbackMarker {
static final long serialVersionUID = 6034999468737899730L;
public MySQLTransactionRollbackException(String reason, String SQLState, int vendorCode) {
super(reason, SQLState, vendorCode);
}
public MySQLTransactionRollbackException(String reason, String SQLState) {
super(reason, SQLState);
}
public MySQLTransactionRollbackException(String reason) {
super(reason);
}
public MySQLTransactionRollbackException() {}
}
/* Location: C:\Users\BSV\AppData\Local\Temp\Rar$DRa6216.20396\Preview\Preview.jar!\com\mysql\cj\jdbc\exceptions\MySQLTransactionRollbackException.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 1.1.3
*/
|
/**
* Helios, OpenSource Monitoring
* Brought to you by the Helios Development Group
*
* Copyright 2014, Helios Development Group and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*
*/
package com.heliosapm.jmx.expr;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import com.heliosapm.jmx.util.helpers.ArrayUtils;
/**
* <p>Title: NestedIterator</p>
* <p>Description: </p>
* <p>Company: Helios Development Group LLC</p>
* @author Whitehead (nwhitehead AT heliosdev DOT org)
* <p><code>com.heliosapm.jmx.expr.NestedIterator</code></p>
*/
public class NestedIterator<E> implements Iterator<E> {
/** The delegate iterator, or this */
private final Iterator<E> delegate;
/** The next iterator in the chain */
private Iterator<?> nested;
public static NestedIterator<?> group(final boolean resetable, final boolean removable, final Object...iterables) {
return _group(resetable, removable, ArrayUtils.toIterables(iterables));
}
public static NestedIterator<?> group(final boolean resetable, final boolean removable, final Collection<Object> iterables) {
return _group(resetable, removable, ArrayUtils.toIterables(iterables.toArray()));
}
private static NestedIterator<?> _group(final boolean resetable, final boolean removable, final Iterable<?>...iterables) {
if(iterables==null || iterables.length==0) throw new IllegalArgumentException("No iterables provided. Must provide at least one");
NestedIterator ni = null;
NestedIterator top = null;
final int index = iterables.length-1;
for(int i = 0; i <= iterables.length; i++) {
if(ni==null) {
ni = resetable ? new NestedIterator(new ResettingIterable(iterables[i], removable).iterator()) : new NestedIterator(iterables[i].iterator());
top = ni;
}
if(i < index) {
NestedIterator nit = resetable ? new NestedIterator(new ResettingIterable(iterables[i+1], removable).iterator()) : new NestedIterator(iterables[i+1].iterator());
ni.setNested(nit);
ni = nit;
}
}
return top;
}
/**
* Creates a new NestedIterator with no next,
* i.e. it's the last iterator in the chain.
* @param delegate The delegate iterator, or this
*/
public NestedIterator(final Iterator<E> delegate) {
this(delegate, null);
}
private void setNested(final Iterator<?> nested) {
this.nested = nested;
}
/**
* Creates a new NestedIterator
* @param delegate The delegate iterator, or this
* @param nested The next iterator in the chain
*/
public NestedIterator(final Iterator<E> delegate, final Iterator<?> nested) {
if(delegate==null) throw new IllegalArgumentException("The passed delegate Iterator was null");
this.delegate = delegate;
this.nested = nested;
}
/**
* {@inheritDoc}
* @see java.util.Iterator#hasNext()
*/
@Override
public boolean hasNext() {
return delegate.hasNext();
}
/**
* {@inheritDoc}
* @see java.util.Iterator#next()
*/
@Override
public E next() {
return delegate.next();
}
/**
* {@inheritDoc}
* @see java.util.Iterator#remove()
*/
@Override
public void remove() {
delegate.remove();
}
/**
* Indicates if there is a next iterator in the chain
* @return true if there is a next iterator in the chain, false otherwise
*/
public boolean hasNested() {
return nested!=null;
}
/**
* Returns the next iterator in the chain
* @return the next iterator in the chain
*/
public Iterator<?> nested() {
if(nested==null) throw new IllegalAccessError("No next iterator");
return nested;
}
}
|
package cn.tedu.note.dao;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.stereotype.Repository;
import cn.tedu.note.entity.User;
@Repository("userDao")
public class UserDaoImpl implements UserDao{
@Resource private HibernateTemplate hibernateTemplate; //这个在spring-orm.xml文件中配置好了,就是说把这个类交给了spring容器
//来管理,然后在这里用@Resource来注入
public void addUser(User user) {
hibernateTemplate.save(user);
}
public void deleteUser(User user) {
hibernateTemplate.delete(user);
}
public void updateUser(User user) {
hibernateTemplate.update(user);
}
public User findUserById(String id) {
return hibernateTemplate.get(User.class, id);
}
public User findUserByName(String name) {
//HQL
//select * from cn_user where cn_user_name=?
// from User where name = ?
String hql = "from User where name = ?";
List<User> list = hibernateTemplate.find(hql,name);
if(list.isEmpty()) {
return null;
}
return list.get(0);
}
public List<Map<String,Object>> findUsersLikeName(String name){
name="%"+name+"%";
/*select new map(id,name) from User where name like= ?
map(id,name)代表有两种值,一种是id,一种是name,而不是表示id是键,name是值
{"id":"48595f52-b22c-4485-9244-f4004255b972"}
{"name":"demo"}
id as id,name as name 后面的id和name分别代表id值和name值的键的别名
*/
//执行带参数的HQL查询 参数名:name;并把执行结果封装成map对象
String hql="select new map(id as id,name as name) from User where name like:name";
List<Map<String,Object>> list = hibernateTemplate.findByNamedParam(hql, "name", name);
return list;
}
}
|
import java.util.ArrayList;
public class Board {
ArrayList<Square> Squares = new ArrayList<Square>();
ArrayList<WildCard> wildCards = new ArrayList<WildCard>();
static ArrayList<Piece> pieces = new ArrayList<Piece>();
/*
* Adds sqare to the arraylist
*/
public void addSquare(Square square) {
Squares.add(square);
}
/*
* Return name of selected Square
*/
public Square getSquare(int index) {
return Squares.get(index);
}
/*
* Return name of all Squares
*/
public void allSquare() {
System.out.println("All Squares: \n");
for (int index = 0; index < Square.getNextPos(); index++) {
Square info = Squares.get(index);
System.out.println("Info : " + info);
}
}
/*
* Returns size of Squares arraylist
*/
public int size() {
int squareSize = Squares.size();
return squareSize;
}
/*
* Adds WildCard to wildCards arraylist
*/
public void addWildCard(WildCard wildcard) {
wildCards.add(wildcard);
}
/*
* Gets card from Wildcard class then displays it to player
*/
public void draw(WildCard wildcard, Player player) {
//String name = WildCard.getCard(); //error
}
/*
* Returns wildcard to wildcard deck
*/
public void returnCard(WildCard wildcard) {
//WildCard.restoreCard(wildcard); //error
}
public Board setupBoard() {
this.addSquare(new Travel("Travel Square", 0));
this.addSquare(new Habitat("Brown Bear Habitat", 1, 60, 4, 20, 60, 180, 320, 450, 50));
this.addSquare(new WildCardSquare("Wild Card 1", 2));
this.addSquare(new Habitat("Jaguar Habitat", 3, 60, 2, 10, 30, 90, 160, 250, 50));
this.addSquare(new Special("Conservation Fee Utility", 4));
this.addSquare(new Special("Zile River", 5));
this.addSquare(new Habitat("Whooping Crane Habitat", 6, 100, 6, 30, 90, 270, 400, 550, 50));
this.addSquare(new WildCardSquare("Wild Card 2", 7));
this.addSquare(new Habitat("Grey Parrot Habitat", 8, 100, 6, 30, 90, 270, 400, 550, 50));
this.addSquare(new Habitat("Hawaiian Duck Habitat", 9, 120, 8, 40, 100, 300, 450, 600, 50));
this.addSquare(new Special("Safari", 10));
this.addSquare(new Habitat("Great Egret Habitat", 11, 160, 12, 60, 180, 500, 700, 900, 100));
this.addSquare(new Special("Electricity Utility", 12));
this.addSquare(new Habitat("King Rail Habitat", 13, 140, 10, 50, 150, 450, 675, 750, 100));
this.addSquare(new Habitat("pugnose Shiner Habitat", 14, 140, 10, 50, 150, 450, 625, 750, 100));
this.addSquare(new Special("Hatsu River", 15));
this.addSquare(new Habitat("Grey Bat Habitat", 16, 160, 14, 70, 200, 550, 700, 900, 100));
this.addSquare(new WildCardSquare("Wild Card 3", 17));
this.addSquare(new Habitat("Blind Salamander Habitat", 18, 160, 14, 70, 200, 550, 700, 950, 100));
this.addSquare(new Habitat("Blind Cave Eel Habitat", 19, 200, 16, 80, 220, 600, 800, 1000, 100));
this.addSquare(new Special("Back From The Brink Square", 20));
this.addSquare(new Habitat("Amur Leopard Habitat", 21, 200, 18, 90, 250, 700, 875, 1050, 150));
this.addSquare(new WildCardSquare("Wild Card 4", 22));
this.addSquare(new Habitat("Black Rhino Habitat", 23, 220, 18, 90, 250, 700, 875, 1050, 150));
this.addSquare(new Habitat("Sunda Tiger Habitat", 24, 240, 20, 100, 300, 750, 925, 1100, 150));
this.addSquare(new Special("Trinity River", 25));
this.addSquare(new Habitat("Polar Bear Habitat", 26, 260, 22, 110, 330, 800, 975, 1150, 150));
this.addSquare(new Habitat("Arctic Fox Habitat", 27, 260, 22, 110, 330, 800, 975, 1150, 150));
this.addSquare(new Special("Get Water", 28));
this.addSquare(new Habitat("Arctic Wolf Habitat", 29, 280, 24, 120, 360, 850, 1025, 1200, 150));
this.addSquare(new Special("Spotted By Predator", 30));
this.addSquare(new Habitat("Cross River Gorilla Habitat", 31, 300, 26, 130, 390, 900, 1100, 1275, 200));
this.addSquare(new Habitat("Orangutan Habitat", 32, 300, 26, 130, 390, 900, 1100, 1275, 200));
this.addSquare(new WildCardSquare("Wild Card 5", 33));
this.addSquare(new Habitat("Asian Elephant Habitat", 34, 320, 28, 150, 450, 1000, 1200, 1400, 200));
this.addSquare(new Special("Duke River", 35));
this.addSquare(new Special("Wild Card 6", 36));
this.addSquare(new Habitat("Blue Whale Habitat", 37, 400, 50, 200, 600, 1400, 1700, 2000, 200));
this.addSquare(new Habitat("Sea Turtle Habitat", 38, 350, 35, 175, 500, 1100, 1300, 1500, 200));
this.addWildCard(new moveWildCard("Advance to Jaguar", true, false, BackFromTheBrink.board.getSquare(3)));
this.addWildCard(new moveWildCard("Advance to Blue Whale", true, false, BackFromTheBrink.board.getSquare(37)));
this.addWildCard(new moveWildCard("Advance to the Nearest River", true, true,null));
this.addWildCard(new moveWildCard("Advance to Travel Square", true, false, BackFromTheBrink.board.getSquare(0)));
this.addWildCard(new moveWildCard("Go Back 3 Squares", false, false, null));
this.addWildCard(new moveWildCard("Caught by Predator, advance to Hiding in Safari", true, false, BackFromTheBrink.board.getSquare(10)));
this.addWildCard(new EscapeCard("Escape Safari Card"));
this.addWildCard(new receiveMatWildCard("Received a Grant", false, false, 200));
this.addWildCard(new payUpWildCard("Assessed for Maintenance", true, 0));
this.addWildCard(new receiveMatWildCard("Successful Breeding", true, false, 0));
this.addWildCard(new payUpWildCard("Elected As Chairman", false, 50));
this.addWildCard(new payUpWildCard("Food Bills", false, 100));
this.addWildCard(new receiveMatWildCard("Conservation Fee Refund", false, false, 200));
this.addWildCard(new receiveMatWildCard("Conservation Scheme", false, true, 0));
this.pieces.add(new Piece("Sir David Attenborough",0));
this.pieces.add(new Piece("Steve Irwin",0));
this.pieces.add(new Piece("Greta Thunberg",0));
this.pieces.add(new Piece("Steve Backshall",0));
this.pieces.add(new Piece("Jane Goodall",0));
this.pieces.add(new Piece("John Muir",0));
this.pieces.add(new Piece("Theodore Roosevelt",0));
this.pieces.add(new Piece("Theodore Roosevelt v2",0));
return this;
}
}
|
package travel.mp.com.travel;
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
public class IntroSplash extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.intro);
Handler hd = new Handler();
hd.postDelayed(new Runnable() {
@Override
public void run() {
finish(); // 3 초후 이미지를 닫아버림
}
}, 3000);
// Handler handler = new Handler() {
// public void handleMessage(android.os.Message msg) {
// finish();
// }
// };
// handler.sendEmptyMessageDelayed(0, 3000);
}
}
|
package org.buaa.ly.MyCar.service;
import org.buaa.ly.MyCar.http.dto.StoreDTO;
import java.util.List;
public interface StoreService {
StoreDTO find(int id);
List<StoreDTO> find();
StoreDTO insert(StoreDTO storeDTO);
StoreDTO update(int id, StoreDTO storeDTO);
StoreDTO delete(int id);
}
|
package com.fitpolo.support.task;
import android.text.TextUtils;
import com.fitpolo.support.FitConstant;
import com.fitpolo.support.OrderEnum;
import com.fitpolo.support.callback.OrderCallback;
import com.fitpolo.support.entity.BaseResponse;
import com.fitpolo.support.entity.req.SitLongTimeAlert;
import com.fitpolo.support.log.LogModule;
import com.fitpolo.support.utils.DigitalConver;
/**
* @Date 2017/5/11
* @Author wenzheng.liu
* @Description 设置自动亮屏
* @ClassPath com.fitpolo.support.task.AutoLightenTask
*/
public class SitLongTimeAlertTask extends OrderTask {
SitLongTimeAlert sitLongTimeAlert;
public SitLongTimeAlertTask(OrderCallback callback, SitLongTimeAlert sitLongTimeAlert) {
setOrder(OrderEnum.setSitLongTimeAlert);
setCallback(callback);
setResponse(new BaseResponse());
this.sitLongTimeAlert = sitLongTimeAlert;
}
@Override
public byte[] assemble(Object... objects) {
if (sitLongTimeAlert != null) {
LogModule.i(sitLongTimeAlert.toString());
}
byte[] byteArray = new byte[17];
byteArray[0] = (byte) FitConstant.HEADER_SET_SIT_LONG_TIME_ALERT;
byteArray[1] = 0x00;
String stateStr = "1111111";
String alertSwitch = sitLongTimeAlert != null && sitLongTimeAlert.alertSwitch == 1 ? "1" : "0";
int state = Integer.parseInt(DigitalConver.binaryString2hexString(alertSwitch + stateStr), 16);
byteArray[2] = (byte) state;
String startTime = sitLongTimeAlert != null && !TextUtils.isEmpty(sitLongTimeAlert.startTime)
? sitLongTimeAlert.startTime : "09:00";
String endTime = sitLongTimeAlert != null && !TextUtils.isEmpty(sitLongTimeAlert.endTime)
? sitLongTimeAlert.endTime : "22:00";
byteArray[3] = (byte) Integer.parseInt(startTime.split(":")[0]);
byteArray[4] = (byte) Integer.parseInt(startTime.split(":")[1]);
byteArray[5] = (byte) Integer.parseInt(endTime.split(":")[0]);
byteArray[6] = (byte) Integer.parseInt(endTime.split(":")[1]);
byteArray[7] = (byte) 0;
byteArray[8] = (byte) 0;
byteArray[9] = (byte) 0;
byteArray[10] = (byte) 0;
byteArray[11] = (byte) 0;
byteArray[12] = (byte) 0;
byteArray[13] = (byte) 0;
byteArray[14] = (byte) 0;
byteArray[15] = (byte) 0;
byteArray[16] = (byte) 0;
return byteArray;
}
}
|
package edu.gcu.cst105.uno;
public class deckClass {
}
|
package utilities;
/**
* This class encapsulates customer details into an object.
*
* @author Darren
*/
public class Customer {
private int id;
private String username;
private String password;
private String fullName;
private String telephoneNumber;
/**
* Constructor that takes in an array of the details about the customer and
* fills in the details.
*
* @param details
* String array of the customer details
*/
public Customer(String[] details) {
this.id = Integer.parseInt(details[0]);
this.username = details[1];
this.password = details[2];
this.fullName = details[3];
this.telephoneNumber = details[4];
}
public Customer() {
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getFullName() {
return fullName;
}
public void setFullName(String fullName) {
this.fullName = fullName;
}
public String getTelephoneNumber() {
return telephoneNumber;
}
public void setTelephoneNumber(String telephoneNumber) {
this.telephoneNumber = telephoneNumber;
}
}
|
/*
* Copyright (c) 2009-2011 by Bjoern Kolbeck,
* Zuse Institute Berlin
*
* Licensed under the BSD License, see LICENSE file for details.
*
*/
package org.xtreemfs.common.clients;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import org.xtreemfs.common.KeyValuePairs;
import org.xtreemfs.common.uuids.ServiceUUID;
import org.xtreemfs.common.uuids.UUIDResolver;
import org.xtreemfs.common.uuids.UnknownUUIDException;
import org.xtreemfs.dir.DIRClient;
import org.xtreemfs.foundation.SSLOptions;
import org.xtreemfs.foundation.TimeSync;
import org.xtreemfs.foundation.logging.Logging;
import org.xtreemfs.foundation.pbrpc.client.RPCAuthentication;
import org.xtreemfs.foundation.pbrpc.client.RPCNIOSocketClient;
import org.xtreemfs.foundation.pbrpc.client.RPCResponse;
import org.xtreemfs.foundation.pbrpc.generatedinterfaces.RPC.Auth;
import org.xtreemfs.foundation.pbrpc.generatedinterfaces.RPC.UserCredentials;
import org.xtreemfs.pbrpc.generatedinterfaces.DIR.Service;
import org.xtreemfs.pbrpc.generatedinterfaces.DIR.ServiceSet;
import org.xtreemfs.pbrpc.generatedinterfaces.DIR.ServiceType;
import org.xtreemfs.pbrpc.generatedinterfaces.DIRServiceClient;
import org.xtreemfs.pbrpc.generatedinterfaces.GlobalTypes.AccessControlPolicyType;
import org.xtreemfs.pbrpc.generatedinterfaces.GlobalTypes.KeyValuePair;
import org.xtreemfs.pbrpc.generatedinterfaces.GlobalTypes.StripingPolicy;
import org.xtreemfs.pbrpc.generatedinterfaces.MRC.Volumes;
import org.xtreemfs.pbrpc.generatedinterfaces.MRCServiceClient;
import org.xtreemfs.pbrpc.generatedinterfaces.OSDServiceClient;
/**
*
* @author bjko
*/
public class Client {
private final RPCNIOSocketClient mdClient, osdClient;
private final InetSocketAddress[] dirAddress;
private DIRClient dirClient;
private final UUIDResolver uuidRes;
private final Map<String, Volume> volumeMap;
public Client(InetSocketAddress[] dirAddresses, int requestTimeout, int connectionTimeout, SSLOptions ssl)
throws IOException {
this.dirAddress = dirAddresses;
mdClient = new RPCNIOSocketClient(ssl, requestTimeout, connectionTimeout, "Client (dir)");
osdClient = new RPCNIOSocketClient(ssl, requestTimeout, connectionTimeout, "Client (osd)");
DIRServiceClient dirRpcClient = new DIRServiceClient(mdClient, dirAddress[0]);
dirClient = new DIRClient(dirRpcClient, dirAddress, 100, 1000 * 15);
TimeSync.initializeLocal(0);
uuidRes = UUIDResolver.startNonSingelton(dirClient, 3600, 1000);
volumeMap = new HashMap<String, Volume>();
}
public Volume getVolume(String volumeName, UserCredentials credentials) throws IOException {
try {
String lookupVolumeName = volumeName;
int snapNameIndex = volumeName.indexOf('@');
if (snapNameIndex != -1)
lookupVolumeName = volumeName.substring(0, snapNameIndex);
final ServiceSet s = dirClient.xtreemfs_service_get_by_name(null, RPCAuthentication.authNone,
RPCAuthentication.userService, lookupVolumeName);
if (s.getServicesCount() == 0) {
throw new IOException("volume '" + lookupVolumeName + "' does not exist");
}
final Service vol = s.getServices(0);
final String mrcUUIDstr = KeyValuePairs.getValue(vol.getData().getDataList(), "mrc");
final ServiceUUID mrc = new ServiceUUID(mrcUUIDstr, uuidRes);
UserCredentials uc = credentials;
if (uc == null) {
List<String> grps = new ArrayList(1);
grps.add("test");
uc = UserCredentials.newBuilder().setUsername("test").addGroups("test").build();
}
Logging.logMessage(Logging.LEVEL_DEBUG, this, "volume %s on MRC %s/%s", volumeName, mrcUUIDstr,
mrc.getAddress());
Volume v = volumeMap.get(volumeName);
if (v == null) {
v = new Volume(new OSDServiceClient(osdClient, null), new MRCServiceClient(mdClient, mrc
.getAddress()), volumeName, uuidRes, uc);
volumeMap.put(volumeName, v);
}
return v;
} catch (InterruptedException ex) {
throw new IOException("operation was interrupted", ex);
}
}
public void createVolume(String volumeName, Auth authentication, UserCredentials credentials,
StripingPolicy sp, AccessControlPolicyType accessCtrlPolicy, int permissions) throws IOException {
RPCResponse r2 = null;
try {
ServiceSet mrcs = dirClient.xtreemfs_service_get_by_type(null, RPCAuthentication.authNone, credentials,
ServiceType.SERVICE_TYPE_MRC);
if (mrcs.getServicesCount() == 0) {
throw new IOException("no MRC available for volume creation");
}
String uuid = mrcs.getServices(0).getUuid();
ServiceUUID mrcUUID = new ServiceUUID(uuid, uuidRes);
MRCServiceClient m = new MRCServiceClient(mdClient, mrcUUID.getAddress());
r2 = m.xtreemfs_mkvol(null, authentication, credentials, accessCtrlPolicy, sp, "", permissions,
volumeName, credentials.getUsername(), credentials.getGroups(0),
new LinkedList<KeyValuePair>(), 0);
r2.get();
} catch (InterruptedException ex) {
throw new IOException("operation was interrupted", ex);
} finally {
if (r2 != null)
r2.freeBuffers();
}
}
public void createVolume(String volumeName, Auth authentication, UserCredentials credentials,
StripingPolicy sp, AccessControlPolicyType accessCtrlPolicy, int permissions, String mrcUUID)
throws IOException {
RPCResponse<?> r = null;
try {
ServiceUUID uuid = new ServiceUUID(mrcUUID, uuidRes);
uuid.resolve();
MRCServiceClient m = new MRCServiceClient(mdClient, uuid.getAddress());
r = m.xtreemfs_mkvol(uuid.getAddress(), authentication, credentials, accessCtrlPolicy, sp, "", permissions,
volumeName, credentials.getUsername(), credentials.getGroups(0),
new LinkedList<KeyValuePair>(), 0);
r.get();
} catch (InterruptedException ex) {
throw new IOException("operation was interrupted", ex);
} catch (UnknownUUIDException ex) {
throw new IOException("mrc UUID was unknown", ex);
} finally {
if (r != null)
r.freeBuffers();
}
}
public void deleteVolume(String volumeName, Auth authentication, UserCredentials credentials)
throws IOException {
RPCResponse r2 = null;
assert (credentials != null);
try {
final ServiceSet s = dirClient.xtreemfs_service_get_by_name(null, RPCAuthentication.authNone, credentials,
volumeName);
if (s.getServicesCount() == 0) {
throw new IOException("volume '" + volumeName + "' does not exist");
}
final Service vol = s.getServices(0);
final String mrcUUIDstr = KeyValuePairs.getValue(vol.getData().getDataList(), "mrc");
final ServiceUUID mrc = new ServiceUUID(mrcUUIDstr, uuidRes);
MRCServiceClient m = new MRCServiceClient(mdClient, mrc.getAddress());
r2 = m.xtreemfs_rmvol(null, authentication, credentials, volumeName);
r2.get();
} catch (InterruptedException ex) {
throw new IOException("operation was interrupted", ex);
} finally {
if (r2 != null)
r2.freeBuffers();
}
}
public String[] listVolumeNames(UserCredentials credentials) throws IOException {
assert (credentials != null);
try {
final ServiceSet s = dirClient.xtreemfs_service_get_by_type(null, RPCAuthentication.authNone, credentials, ServiceType.SERVICE_TYPE_VOLUME);
String[] volNames = new String[s.getServicesCount()];
for (int i = 0; i < volNames.length; i++)
volNames[i] = s.getServices(i).getName();
return volNames;
} catch (InterruptedException ex) {
throw new IOException("operation was interrupted", ex);
}
}
public String[] listVolumeNames(String mrcUUID, UserCredentials credentials) throws IOException {
RPCResponse<Volumes> r = null;
assert (credentials != null);
try {
final ServiceUUID mrc = new ServiceUUID(mrcUUID, uuidRes);
MRCServiceClient m = new MRCServiceClient(mdClient, mrc.getAddress());
r = m.xtreemfs_lsvol(null, RPCAuthentication.authNone, credentials);
Volumes vols = r.get();
String[] volNames = new String[vols.getVolumesCount()];
for(int i = 0; i < volNames.length; i++)
volNames[i] = vols.getVolumes(i).getName();
return volNames;
} catch (InterruptedException ex) {
throw new IOException("operation was interrupted", ex);
} finally {
if (r != null)
r.freeBuffers();
}
}
public ServiceSet getRegistry() throws IOException {
try {
return dirClient.xtreemfs_service_get_by_type(null, RPCAuthentication.authNone,
RPCAuthentication.userService, ServiceType.SERVICE_TYPE_MIXED);
} catch (InterruptedException ex) {
throw new IOException("operation was interrupted", ex);
}
}
public void start() throws Exception {
mdClient.start();
mdClient.waitForStartup();
osdClient.start();
osdClient.waitForStartup();
}
public synchronized void stop() {
if (dirClient != null) {
try {
mdClient.shutdown();
osdClient.shutdown();
mdClient.waitForShutdown();
osdClient.waitForShutdown();
for (Volume v : volumeMap.values())
v.shutdown();
} catch (Exception ex) {
ex.printStackTrace();
} finally {
dirClient = null;
}
}
}
@Override
public void finalize() {
stop();
}
}
|
package com.google.android.gms.analytics;
import android.text.TextUtils;
import com.google.android.gms.analytics.internal.a;
import com.google.android.gms.analytics.internal.q;
import com.google.android.gms.c.ae;
import com.google.android.gms.c.ag;
import com.google.android.gms.c.h;
public class c extends ag<c> {
public final q aHe;
public boolean aIm;
public c(q qVar) {
super(qVar.ns(), qVar.aFC);
this.aHe = qVar;
}
protected final void a(ae aeVar) {
h hVar = (h) aeVar.e(h.class);
if (TextUtils.isEmpty(hVar.aGl)) {
hVar.aGl = this.aHe.nw().nP();
}
if (this.aIm && TextUtils.isEmpty(hVar.aWp)) {
q qVar = this.aHe;
q.a(qVar.aGe);
a aVar = qVar.aGe;
hVar.aWp = aVar.mG();
hVar.aWq = aVar.mF();
}
}
public final ae oj() {
ae ql = qm().ql();
q qVar = this.aHe;
q.a(qVar.aGf);
ql.b(qVar.aGf.nG());
ql.b(this.aHe.aGg.og());
qo();
return ql;
}
}
|
package com.boot.third.domain;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.annotations.CreationTimestamp;
import javax.persistence.*;
import java.sql.Timestamp;
@Getter
@Setter
@ToString
@Entity
@Table(name="users")
public class User {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private int userNo;
private String name;
private int age;
private String email;
@CreationTimestamp
private Timestamp regdate;
}
|
package ru.job4j.sortirovka.sortirovkacomparator;
import java.util.Comparator;
public class ComparatorByNameLength implements Comparator<User> {
@Override
public int compare(User a, User b) {
if (a.getName().length() > b.getName().length()) {
return 1;
} else if (a.getName().length() < b.getName().length()) {
return -1;
} else {
return 0;
}
}
}
|
package com.example.rodol.android_meusalbuns_sql.view.adapter;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.example.rodol.android_meusalbuns_sql.R;
import com.example.rodol.android_meusalbuns_sql.model.Album;
import com.example.rodol.android_meusalbuns_sql.view.holder.AlbumViewHolder;
import java.util.List;
/**
* Created by rodol on 17/01/2018.
*/
public class AlbumAdapterRecycler extends RecyclerView.Adapter {
private List<Album> albumList;
private Context context;
public AlbumAdapterRecycler(List<Album> albumList, Context context) {
this.albumList = albumList;
this.context = context;
}
@Override
public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View view = LayoutInflater.from(context).inflate(R.layout.item_lista_recyclerview, parent, false);
AlbumViewHolder holder = new AlbumViewHolder(view, this);
return holder;
}
@Override
public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
AlbumViewHolder viewHolder = (AlbumViewHolder) holder;
Album album = albumList.get(position);
viewHolder.preencher(album);
}
@Override
public int getItemCount() {
return albumList.size();
}
}
|
/**
*
*/
package com.yougou.yop.api.service;
import java.util.Arrays;
import java.util.Map;
import java.util.TreeMap;
import javax.annotation.Resource;
import org.apache.commons.lang.StringUtils;
import org.springframework.data.redis.core.HashOperations;
import org.springframework.stereotype.Service;
import com.yougou.util.MD5Encryptor;
import com.yougou.util.SHA1Encryptor;
import com.yougou.yop.api.IOpenApiService;
/**
* openapi
* @author he.wc
*
*/
@Service(value="openApiService")
public class OpenApiService implements IOpenApiService {
@Resource(name = "stringRedisTemplate")
private HashOperations<String, String, String> hashOperations;
@Override
public boolean apiAuth(String url) throws Exception {
int endIndex = url.lastIndexOf("api.sc?");
url = url.substring(endIndex+7);
System.out.println(" str ==>> "+url);
Map<String, Object> context = new TreeMap<String, Object>();
String sign = "";
for(String param:url.split("&")){
String key = param.split("=")[0];
String value = param.split("=")[1];
if ("sign".equalsIgnoreCase(key)) {
sign = value;
continue;
}
context.put(key, value);
}
//context.put("app_version", "1.0");
//context.put("timestamp", "2014-3-31 17:1:58");
System.out.println("context ==>> "+context);
int paramIndex = 0;
String signMethod = (String)context.get("sign_method");
String appKey = (String)context.get("app_key");
String secret = hashOperations.get("api.appkey.secret.hash", appKey);
String[] params = new String[context.size()];
for (Map.Entry<String, Object> entry : context.entrySet()) {
params[paramIndex++] = entry.getKey() + entry.getValue();
}
Arrays.sort(params);
secret += StringUtils.join(params, "");
String serverSign = "sha-1".equals(signMethod) ? SHA1Encryptor.encrypt(secret) : MD5Encryptor.encrypt(secret);
System.out.println("secret ==>"+secret);
System.out.println("sign ==>>" + sign);
System.out.println("serverSign ==>>" + serverSign);
if(StringUtils.equals(sign, serverSign)){
return true;
}
return false;
}
}
|
package dk.aau.controllers.sygehus;
import dk.aau.App;
import dk.aau.models.database.DatabaseManipulator;
import dk.aau.models.patient.Generelinfo;
import dk.aau.models.patient.Patient;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.CheckBox;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
public class ShowEditCreateCtrl{
private App mainApp;
private Generelinfo cs_generelinfo;
private Generelinfo generelinfo;
private String selectedDirection;
@FXML
private Label infoLabel;
@FXML
private Label egenlaegeOplysninger;
@FXML
private TextField PatientNavnTF;
@FXML
private TextField cprTF;
@FXML
private TextField tlfTF;
@FXML
private TextField arbejdeTF;
@FXML
private TextField mobilTF;
@FXML
private TextField adresseFT;
@FXML
private TextField naermesteNavnTF;
@FXML
private TextField naermesteTlfTF;
@FXML
private TextField naermesteMobilTF;
@FXML
private TextField naermesteArbejdeTF;
@FXML
private TextField EgenLaegeTF;
@FXML
private Label tlfIkkeUdfyldtLabel;
@FXML
private Label mobilIkkeUdfyldtLabel;
@FXML
private Label ArbejdeIkkeUdfyldtLabel;
@FXML
private Label AdresseIkkeUdfyldtLabel;
@FXML
private Label mrsaIkkeUdfyldtLabel;
@FXML
private Label naermesteNavnIkkeUdfyldtLabel;
@FXML
private Label naermesteTlfIkkeUdfyldtLabel;
@FXML
private Label naermesteMobilIkkeUdfyldtLabel;
@FXML
private Label naermestearbejdeIkkeUdfyldtLabel;
@FXML
private Label egenLaegeIkkeUdfyldtLabel;
@FXML
private CheckBox hjertesygdomJaCheckBox;
@FXML
private Label HjerteSygdommeIkkeUdfyldtLabel;
@FXML
private Label astmaIkkeUdfyldtLabel;
@FXML
private Label NyresygdomIkkeUdfyldtLabel;
@FXML
private Label sukkersygeIkkeUdfyldtLabel;
@FXML
private Label andreSygdommeIkkeUdfyldtLabel;
@FXML
private Label bloederSygdommeIkkeUdfyldtLabel;
@FXML
private Label mavesaarIkkeUdfyldtLabel;
@FXML
private Label halsbrandIkkeUdfyldtLabel;
@FXML
private Label HoejBlodtrykIkkeUdfyldtLabel;
@FXML
private Label ElilepsiIkkeUdfyldtLabel;
@FXML
private Label rygprogroblemmerIkkeUdfyldtLabel;
@FXML
private Label hofteProblemIkkeUdfyldtLabel;
@FXML
private Label stoftSkifteIkkeUdfyldtLabel;
@FXML
private Button SendTilPatientBnt;
@FXML
private Label overSkriftlabel_id;
@FXML
private CheckBox henteOplysningerJaCheckBnt;
@FXML
private CheckBox henteOplysningerNejCheckBnt;
@FXML
void HandleHenteOplysningerJaCheckBnt(ActionEvent event) {
if(selectedDirection.equals("tilgaa")){
if( henteOplysningerJaCheckBnt.isSelected() ){
henteOplysningerNejCheckBnt.setSelected(false);
henteOplysningerJaCheckBnt.setSelected(true);
}else{
henteOplysningerNejCheckBnt.setSelected(true);
henteOplysningerJaCheckBnt.setSelected(false);
}
}
}
@FXML
void handlehenteOplysningerNejCheckBnt(ActionEvent event) {
if(selectedDirection.equals("tilgaa")){
if( henteOplysningerNejCheckBnt.isSelected() ){
henteOplysningerJaCheckBnt.setSelected(false);
henteOplysningerNejCheckBnt.setSelected(true);
}else{
henteOplysningerJaCheckBnt.setSelected(true);
henteOplysningerNejCheckBnt.setSelected(false);
}
}
}
@FXML
private CheckBox mrsaJaCheckBnt;
@FXML
private CheckBox mrsaCheckBnt;
@FXML
void handleMrsaJaCheckBnt(ActionEvent event) {
if(selectedDirection.equals("tilgaa")){
if( mrsaJaCheckBnt.isSelected() ){
mrsaCheckBnt.setSelected(false);
mrsaJaCheckBnt.setSelected(true);
}else{
mrsaCheckBnt.setSelected(true);
mrsaJaCheckBnt.setSelected(false);
}
}
}
@FXML
void handleMrsaNejCheckBnt(ActionEvent event) {
if(selectedDirection.equals("tilgaa")){
if( mrsaCheckBnt.isSelected() ){
mrsaJaCheckBnt.setSelected(false);
mrsaCheckBnt.setSelected(true);
}else{
mrsaJaCheckBnt.setSelected(true);
mrsaCheckBnt.setSelected(false);
}
}
}
@FXML
void handleSendtilPatientBnt(ActionEvent event) {
if("opret".equals(selectedDirection)){
DatabaseManipulator.updateDataBase("INSERT INTO `TemporyDBGenerelInformation` (`CPR-nummer`, `Arbejde`, `Mobilnummer`, `telefonNummer`, `naermesteNavn`, `naermesteTlf`, `naermesteMobil`, `naermesteArbejde`, `mrsa`, `okHentOplysninger`, `SkemaUdfyld`) VALUES ('"+cs_generelinfo.getCprNummer()+"', '', '"+cs_generelinfo.getMobilNummer()+"', '"+cs_generelinfo.getTelefonNummer()+"', '"+cs_generelinfo.getNaermesteNavn()+"', '"+cs_generelinfo.getNaermesteTlf()+"', '"+cs_generelinfo.getNaermesteMobil()+"', '"+cs_generelinfo.getNaermesteArbejde()+"', '', '', 'false')");
mainApp.ShowScheme();
} else if ("tilgaa".equals(selectedDirection)) System.out.println("IDK what to do?");
}
@FXML
void handleTilbageBnt(ActionEvent event) {
mainApp.ShowScheme();
}
public void setReference(App mainApp, Patient patient, String selectedDirection ){
this.mainApp = mainApp;
this.selectedDirection = selectedDirection;
this.cs_generelinfo = patient.getGenerelinfoClinicalSuiteDB();
PatientNavnTF.setText(cs_generelinfo.getNavn());
cprTF.setText(cs_generelinfo.getCprNummer());
tlfTF.setText(cs_generelinfo.getTelefonNummer());
arbejdeTF.setText(cs_generelinfo.getArbejde());
mobilTF.setText(cs_generelinfo.getMobilNummer());
naermesteNavnTF.setText(cs_generelinfo.getNaermesteNavn());
naermesteTlfTF.setText(cs_generelinfo.getNaermesteTlf());
naermesteArbejdeTF.setText(cs_generelinfo.getNaermesteArbejde());
naermesteMobilTF.setText(cs_generelinfo.getNaermesteMobil());
EgenLaegeTF.setText(cs_generelinfo.getEgenLaegeNavn());
//We doent wonna change anything if 'opret' has been choisen
if(selectedDirection.equals("opret")){
tlfTF.setEditable(false);
arbejdeTF.setEditable(false);
mobilTF.setEditable(false);
adresseFT.setEditable(false);
naermesteNavnTF.setEditable(false);
naermesteTlfTF.setEditable(false);
naermesteArbejdeTF.setEditable(false);
naermesteMobilTF.setEditable(false);
EgenLaegeTF.setEditable(false);
}
//We never wanne change these
PatientNavnTF.setEditable(false);
cprTF.setEditable(false);
//=============================================
if (selectedDirection.equals("tilgaa")){
this.generelinfo = patient.getGenerelInfoTemporyDB();
tlfTF.setText(cs_generelinfo.getTelefonNummer());
if(!cs_generelinfo.getTelefonNummer().equals(generelinfo.getTelefonNummer())){
tlfIkkeUdfyldtLabel.setVisible(true);
tlfIkkeUdfyldtLabel.setText(generelinfo.getTelefonNummer());
}
arbejdeTF.setText(cs_generelinfo.getArbejde());
if(!cs_generelinfo.getArbejde().equals(generelinfo.getArbejde())){
ArbejdeIkkeUdfyldtLabel.setVisible(true);
ArbejdeIkkeUdfyldtLabel.setText(generelinfo.getArbejde());
}
mobilTF.setText(cs_generelinfo.getMobilNummer());
if(!cs_generelinfo.getMobilNummer().equals(generelinfo.getMobilNummer())){
mobilIkkeUdfyldtLabel.setVisible(true);
mobilIkkeUdfyldtLabel.setText(generelinfo.getMobilNummer());
}
naermesteNavnTF.setText(cs_generelinfo.getNaermesteNavn());
if(!cs_generelinfo.getNaermesteNavn().equals(generelinfo.getNaermesteNavn())){
naermesteNavnIkkeUdfyldtLabel.setVisible(true);
naermesteNavnIkkeUdfyldtLabel.setText(generelinfo.getNaermesteNavn());
}
naermesteTlfTF.setText(cs_generelinfo.getNaermesteTlf());
if(!cs_generelinfo.getNaermesteTlf().equals(generelinfo.getNaermesteTlf())){
naermesteTlfIkkeUdfyldtLabel.setVisible(true);
naermesteTlfIkkeUdfyldtLabel.setText(generelinfo.getNaermesteTlf());
}
naermesteArbejdeTF.setText(cs_generelinfo.getNaermesteArbejde());
if(!cs_generelinfo.getNaermesteArbejde().equals(generelinfo.getNaermesteArbejde())){
naermestearbejdeIkkeUdfyldtLabel.setVisible(true);
naermestearbejdeIkkeUdfyldtLabel.setText(generelinfo.getNaermesteArbejde());
}
naermesteMobilTF.setText(cs_generelinfo.getNaermesteMobil());
if(!cs_generelinfo.getNaermesteMobil().equals(generelinfo.getNaermesteMobil())){
naermesteMobilIkkeUdfyldtLabel.setVisible(true);
naermesteMobilIkkeUdfyldtLabel.setText(generelinfo.getNaermesteMobil());
}
EgenLaegeTF.setText(cs_generelinfo.getEgenLaegeNavn());
if(!cs_generelinfo.getEgenLaegeNavn().equals(generelinfo.getEgenLaegeNavn())){
egenLaegeIkkeUdfyldtLabel.setVisible(true);
egenLaegeIkkeUdfyldtLabel.setText(generelinfo.getEgenLaegeNavn());
}
if (cs_generelinfo.getMrsa().equals("true")) mrsaJaCheckBnt.setSelected(true);
if (cs_generelinfo.getMrsa().equals("false") || cs_generelinfo.getMrsa().isEmpty()) mrsaCheckBnt.setSelected(true);
if (!cs_generelinfo.getMrsa().equals(generelinfo.getMrsa())){
mrsaIkkeUdfyldtLabel.setVisible(true);
if(generelinfo.getMrsa().equals("true")) mrsaIkkeUdfyldtLabel.setText("Ja");
if(generelinfo.getMrsa().equals("false")) mrsaIkkeUdfyldtLabel.setText("Nej");
}
//====================
if (cs_generelinfo.getOkHentOplysninger().equals("true")) henteOplysningerJaCheckBnt.setSelected(true);
if (cs_generelinfo.getOkHentOplysninger().equals("false") || cs_generelinfo.getOkHentOplysninger().isEmpty()) henteOplysningerNejCheckBnt.setSelected(true);
if (!cs_generelinfo.getOkHentOplysninger().equals(generelinfo.getOkHentOplysninger())){
egenlaegeOplysninger.setVisible(true);
if(generelinfo.getOkHentOplysninger().equals("true")) egenlaegeOplysninger.setText("Ja");
if(generelinfo.getOkHentOplysninger().equals("false")) egenlaegeOplysninger.setText("Nej");
}
}
}
}
|
package SortingAlgorithms;
import Controller.Simulation;
public class HeapSort {
int Heap_Size;
Simulation sim = Simulation.get_instance();
public void Heap_Sort(int a[]) {
int temp;
Build_max_heap(a);
for (int i = a.length - 1; i >= 1; i--) {
temp = a[i];
a[i] = a[0];
a[0] = temp;
sim.setCurr_point3(i);
sim.setCurr_point4(0);
try {
Thread.sleep(5);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
sim.setBounds(a);
Heap_Size--;
Max_Heapify(a, 0);
}
}
public void Build_max_heap(int a[]) {
Heap_Size = a.length;
for (int i = Heap_Size / 2 - 1; i >= 0; i--) {
Max_Heapify(a, i);
}
}
public void Max_Heapify(int[] a, int i) {
int Left, Right, largest = i;
sim.setCurr_point1(i);
sim.setCurr_point2(largest);
Left = get_Left(i);
Right = get_Right(i);
if (Left < Heap_Size)
if (a[Left] > a[i])
largest = Left;
if (Right < Heap_Size)
if (a[Right] > a[largest])
largest = Right;
if (largest != i) {
int temp = a[i];
a[i] = a[largest];
a[largest] = temp;
sim.setCurr_point1(i);
sim.setCurr_point2(largest);
try {
Thread.sleep(5);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
sim.setBounds(a);
Max_Heapify(a, largest);
}
}
public int get_Left(int i) {
return 2 * i + 1;
}
public int get_Right(int i) {
return 2 * i + 2;
}
// public void Build_min_heap(int a[]) {
// Heap_Size = a.length;
// for (int i = Heap_Size / 2 - 1; i >= 0; i--) {
// Min_Heapify(a, i);
// }
// }
//
// public void Min_Heapify(int[] a, int i) {
// int L, R, least = i;
// L = get_Left(i);
// R = get_Right(i);
// if (L < Heap_Size)
// if (a[L] < a[i])
// least = L;
//
// if (R < Heap_Size)
// if (a[R] < a[least])
// least = R;
//
// if (least != i) {
// int temp;
// temp = a[i];
// a[i] = a[least];
// a[least] = temp;
// Min_Heapify(a, least);
// }
//
// }
// public static void main(String[] args) {
// int[] arr = { 5, 7, 9, 2, 1, 7, 3, 0, -1, 6, -1, -9, 6, 6, 10000 };
// HeapSort h = new HeapSort();
// h.Heap_Sort(arr);
// System.out.println("//////////// Heap Sort /////////////");
// int i = 0;
// while (i < arr.length) {
// System.out.print(arr[i] + " ");
// i++;
// }
// }
}
|
package org.globsframework.sqlstreams.annotations;
import org.globsframework.metamodel.GlobType;
import org.globsframework.metamodel.GlobTypeLoaderFactory;
import org.globsframework.metamodel.annotations.GlobCreateFromAnnotation;
import org.globsframework.metamodel.annotations.InitUniqueKey;
import org.globsframework.metamodel.fields.IntegerField;
import org.globsframework.metamodel.fields.StringField;
import org.globsframework.model.Key;
import org.globsframework.model.MutableGlob;
import org.globsframework.sqlstreams.annotations.typed.TypedDbFieldName;
public class DbFieldIndex {
public static GlobType TYPE;
public static IntegerField INDEX;
@InitUniqueKey
public static Key KEY;
static {
GlobTypeLoaderFactory.create(DbFieldIndex.class, "DbFieldIndex")
.load();
}
public static MutableGlob create(int fieldIndex) {
return TYPE.instantiate().set(INDEX, fieldIndex);
}
}
|
package com.snab.tachkit.databaseRealm.structureTableDatabase;
import io.realm.RealmObject;
/**
* Created by Таня on 13.03.2015.
* Таблица - связей для каждой категории тип кабины
*/
public class LinkCapType extends RealmObject {
private int id_link_advert_cap_type;
private int link_advert_type_id;
private int link_cap_type_id;
public int getId_link_advert_cap_type() {
return id_link_advert_cap_type;
}
public void setId_link_advert_cap_type(int id_link_advert_cap_type) {
this.id_link_advert_cap_type = id_link_advert_cap_type;
}
public int getLink_advert_type_id() {
return link_advert_type_id;
}
public void setLink_advert_type_id(int link_advert_type_id) {
this.link_advert_type_id = link_advert_type_id;
}
public int getLink_cap_type_id() {
return link_cap_type_id;
}
public void setLink_cap_type_id(int link_cap_type_id) {
this.link_cap_type_id = link_cap_type_id;
}
}
|
package Management.HumanResources.FinancialSystem;
import java.util.ArrayList;
/**
* 审阅报告历史版本的存储列表
* <b>使用单例模式,同时是备忘录模式的组分</b>
* @author 陈垲昕
* @since 2021/10/29 3:56 下午
*/
public class ReportAuditHistoryList {
/**
* 全局单例
*/
static private ReportAuditHistoryList instance;
/**
* 存储审阅报告的备忘录的列表
*/
private ArrayList<ReportMemento> historyList;
/**
* 私有构造函数
* @author 陈垲昕
* @since 2021-10-29 9:25 下午
*/
private ReportAuditHistoryList(){
this.historyList=new ArrayList<ReportMemento>();
}
/**
* 获取全局单例
* @return : Management.HumanResources.FinancialSystem.ReportAuditHistoryList
* @author 陈垲昕
* @since 2021-10-29 9:25 下午
*/
public static ReportAuditHistoryList getInstance(){
if(instance==null){
instance=new ReportAuditHistoryList();
}
return instance;
}
/**
* 获取列表大小
*/
public int getSize(){return historyList.size();}
/**
* 列表中添加新的审计报告记录
* @param historyVersion : 要添加的新审计报告备忘录
* @author 陈垲昕
* @since 2021-10-29 9:26 下午
*/
public void add(ReportMemento historyVersion){
historyList.add(historyVersion);
}
/**
* 根据索引获取历史记录中的备忘录
* @param index : 索引
* @return : Management.HumanResources.FinancialSystem.ReportMemento
* @author 陈垲昕
* @since 2021-10-29 9:27 下午
*/
public ReportMemento get(int index){
return historyList.get(index);
}
}
|
package ru.ibs.intern.service;
import ru.ibs.intern.entity.Area;
import ru.ibs.intern.entity.Vacancy;
public interface VacanciesService {
//Vacancy addVacancy(Long id, String name, Area area, Number salaryFrom, Number salaryTo, String salaryCurrency);
}
|
/*
* generated by Xtext
*/
package com.rockwellcollins.atc.services;
import com.google.inject.Singleton;
import com.google.inject.Inject;
import java.util.List;
import org.eclipse.xtext.*;
import org.eclipse.xtext.service.GrammarProvider;
import org.eclipse.xtext.service.AbstractElementFinder.*;
@Singleton
public class LimpGrammarAccess extends AbstractGrammarElementFinder {
public class SpecificationElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.Specification");
private final Assignment cDeclarationsAssignment = (Assignment)rule.eContents().get(1);
private final RuleCall cDeclarationsDeclarationParserRuleCall_0 = (RuleCall)cDeclarationsAssignment.eContents().get(0);
//Specification:
// declarations+=Declaration*;
@Override public ParserRule getRule() { return rule; }
//declarations+=Declaration*
public Assignment getDeclarationsAssignment() { return cDeclarationsAssignment; }
//Declaration
public RuleCall getDeclarationsDeclarationParserRuleCall_0() { return cDeclarationsDeclarationParserRuleCall_0; }
}
public class DeclarationElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.Declaration");
private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
private final RuleCall cImportParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
private final RuleCall cCommentParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
private final RuleCall cExternalFunctionParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
private final RuleCall cExternalProcedureParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3);
private final RuleCall cLocalFunctionParserRuleCall_4 = (RuleCall)cAlternatives.eContents().get(4);
private final RuleCall cLocalProcedureParserRuleCall_5 = (RuleCall)cAlternatives.eContents().get(5);
private final RuleCall cConstantDeclarationParserRuleCall_6 = (RuleCall)cAlternatives.eContents().get(6);
private final RuleCall cGlobalDeclarationParserRuleCall_7 = (RuleCall)cAlternatives.eContents().get(7);
private final RuleCall cTypeDeclarationParserRuleCall_8 = (RuleCall)cAlternatives.eContents().get(8);
//Declaration:
// Import
// | Comment
// | ExternalFunction
// | ExternalProcedure
// | LocalFunction
// | LocalProcedure
// | ConstantDeclaration
// | GlobalDeclaration
// | TypeDeclaration;
@Override public ParserRule getRule() { return rule; }
//Import | Comment | ExternalFunction | ExternalProcedure | LocalFunction | LocalProcedure | ConstantDeclaration |
//GlobalDeclaration | TypeDeclaration
public Alternatives getAlternatives() { return cAlternatives; }
//Import
public RuleCall getImportParserRuleCall_0() { return cImportParserRuleCall_0; }
//Comment
public RuleCall getCommentParserRuleCall_1() { return cCommentParserRuleCall_1; }
//ExternalFunction
public RuleCall getExternalFunctionParserRuleCall_2() { return cExternalFunctionParserRuleCall_2; }
//ExternalProcedure
public RuleCall getExternalProcedureParserRuleCall_3() { return cExternalProcedureParserRuleCall_3; }
//LocalFunction
public RuleCall getLocalFunctionParserRuleCall_4() { return cLocalFunctionParserRuleCall_4; }
//LocalProcedure
public RuleCall getLocalProcedureParserRuleCall_5() { return cLocalProcedureParserRuleCall_5; }
//ConstantDeclaration
public RuleCall getConstantDeclarationParserRuleCall_6() { return cConstantDeclarationParserRuleCall_6; }
//GlobalDeclaration
public RuleCall getGlobalDeclarationParserRuleCall_7() { return cGlobalDeclarationParserRuleCall_7; }
//TypeDeclaration
public RuleCall getTypeDeclarationParserRuleCall_8() { return cTypeDeclarationParserRuleCall_8; }
}
public class CommentElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.Comment");
private final Assignment cCommentAssignment = (Assignment)rule.eContents().get(1);
private final RuleCall cCommentSEMANTIC_COMMENTTerminalRuleCall_0 = (RuleCall)cCommentAssignment.eContents().get(0);
//Comment:
// comment=SEMANTIC_COMMENT;
@Override public ParserRule getRule() { return rule; }
//comment=SEMANTIC_COMMENT
public Assignment getCommentAssignment() { return cCommentAssignment; }
//SEMANTIC_COMMENT
public RuleCall getCommentSEMANTIC_COMMENTTerminalRuleCall_0() { return cCommentSEMANTIC_COMMENTTerminalRuleCall_0; }
}
public class ImportElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.Import");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cImportKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Assignment cImportURIAssignment_1 = (Assignment)cGroup.eContents().get(1);
private final RuleCall cImportURISTRINGTerminalRuleCall_1_0 = (RuleCall)cImportURIAssignment_1.eContents().get(0);
//Import:
// 'import' importURI=STRING;
@Override public ParserRule getRule() { return rule; }
//'import' importURI=STRING
public Group getGroup() { return cGroup; }
//'import'
public Keyword getImportKeyword_0() { return cImportKeyword_0; }
//importURI=STRING
public Assignment getImportURIAssignment_1() { return cImportURIAssignment_1; }
//STRING
public RuleCall getImportURISTRINGTerminalRuleCall_1_0() { return cImportURISTRINGTerminalRuleCall_1_0; }
}
public class ExternalFunctionElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.ExternalFunction");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cExternalKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Keyword cFunctionKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
private final RuleCall cNameIDTerminalRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0);
private final Keyword cLeftParenthesisKeyword_3 = (Keyword)cGroup.eContents().get(3);
private final Assignment cInputsAssignment_4 = (Assignment)cGroup.eContents().get(4);
private final RuleCall cInputsInputArgListParserRuleCall_4_0 = (RuleCall)cInputsAssignment_4.eContents().get(0);
private final Keyword cRightParenthesisKeyword_5 = (Keyword)cGroup.eContents().get(5);
private final Keyword cReturnsKeyword_6 = (Keyword)cGroup.eContents().get(6);
private final Keyword cLeftParenthesisKeyword_7 = (Keyword)cGroup.eContents().get(7);
private final Assignment cOutputAssignment_8 = (Assignment)cGroup.eContents().get(8);
private final RuleCall cOutputOutputArgParserRuleCall_8_0 = (RuleCall)cOutputAssignment_8.eContents().get(0);
private final Keyword cRightParenthesisKeyword_9 = (Keyword)cGroup.eContents().get(9);
//ExternalFunction:
// 'external' 'function' name=ID '(' inputs=InputArgList ')' 'returns' '(' output=OutputArg ')';
@Override public ParserRule getRule() { return rule; }
//'external' 'function' name=ID '(' inputs=InputArgList ')' 'returns' '(' output=OutputArg ')'
public Group getGroup() { return cGroup; }
//'external'
public Keyword getExternalKeyword_0() { return cExternalKeyword_0; }
//'function'
public Keyword getFunctionKeyword_1() { return cFunctionKeyword_1; }
//name=ID
public Assignment getNameAssignment_2() { return cNameAssignment_2; }
//ID
public RuleCall getNameIDTerminalRuleCall_2_0() { return cNameIDTerminalRuleCall_2_0; }
//'('
public Keyword getLeftParenthesisKeyword_3() { return cLeftParenthesisKeyword_3; }
//inputs=InputArgList
public Assignment getInputsAssignment_4() { return cInputsAssignment_4; }
//InputArgList
public RuleCall getInputsInputArgListParserRuleCall_4_0() { return cInputsInputArgListParserRuleCall_4_0; }
//')'
public Keyword getRightParenthesisKeyword_5() { return cRightParenthesisKeyword_5; }
//'returns'
public Keyword getReturnsKeyword_6() { return cReturnsKeyword_6; }
//'('
public Keyword getLeftParenthesisKeyword_7() { return cLeftParenthesisKeyword_7; }
//output=OutputArg
public Assignment getOutputAssignment_8() { return cOutputAssignment_8; }
//OutputArg
public RuleCall getOutputOutputArgParserRuleCall_8_0() { return cOutputOutputArgParserRuleCall_8_0; }
//')'
public Keyword getRightParenthesisKeyword_9() { return cRightParenthesisKeyword_9; }
}
public class ExternalProcedureElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.ExternalProcedure");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cExternalKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Keyword cProcedureKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
private final RuleCall cNameIDTerminalRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0);
private final Keyword cLeftParenthesisKeyword_3 = (Keyword)cGroup.eContents().get(3);
private final Assignment cInputsAssignment_4 = (Assignment)cGroup.eContents().get(4);
private final RuleCall cInputsInputArgListParserRuleCall_4_0 = (RuleCall)cInputsAssignment_4.eContents().get(0);
private final Keyword cRightParenthesisKeyword_5 = (Keyword)cGroup.eContents().get(5);
private final Keyword cReturnsKeyword_6 = (Keyword)cGroup.eContents().get(6);
private final Keyword cLeftParenthesisKeyword_7 = (Keyword)cGroup.eContents().get(7);
private final Assignment cOutputsAssignment_8 = (Assignment)cGroup.eContents().get(8);
private final RuleCall cOutputsOutputArgListParserRuleCall_8_0 = (RuleCall)cOutputsAssignment_8.eContents().get(0);
private final Keyword cRightParenthesisKeyword_9 = (Keyword)cGroup.eContents().get(9);
private final Assignment cAttributeBlockAssignment_10 = (Assignment)cGroup.eContents().get(10);
private final RuleCall cAttributeBlockAttributeBlockParserRuleCall_10_0 = (RuleCall)cAttributeBlockAssignment_10.eContents().get(0);
//ExternalProcedure:
// 'external' 'procedure' name=ID '(' inputs=InputArgList ')' 'returns' '(' outputs=OutputArgList ')'
// attributeBlock=AttributeBlock;
@Override public ParserRule getRule() { return rule; }
//'external' 'procedure' name=ID '(' inputs=InputArgList ')' 'returns' '(' outputs=OutputArgList ')'
//attributeBlock=AttributeBlock
public Group getGroup() { return cGroup; }
//'external'
public Keyword getExternalKeyword_0() { return cExternalKeyword_0; }
//'procedure'
public Keyword getProcedureKeyword_1() { return cProcedureKeyword_1; }
//name=ID
public Assignment getNameAssignment_2() { return cNameAssignment_2; }
//ID
public RuleCall getNameIDTerminalRuleCall_2_0() { return cNameIDTerminalRuleCall_2_0; }
//'('
public Keyword getLeftParenthesisKeyword_3() { return cLeftParenthesisKeyword_3; }
//inputs=InputArgList
public Assignment getInputsAssignment_4() { return cInputsAssignment_4; }
//InputArgList
public RuleCall getInputsInputArgListParserRuleCall_4_0() { return cInputsInputArgListParserRuleCall_4_0; }
//')'
public Keyword getRightParenthesisKeyword_5() { return cRightParenthesisKeyword_5; }
//'returns'
public Keyword getReturnsKeyword_6() { return cReturnsKeyword_6; }
//'('
public Keyword getLeftParenthesisKeyword_7() { return cLeftParenthesisKeyword_7; }
//outputs=OutputArgList
public Assignment getOutputsAssignment_8() { return cOutputsAssignment_8; }
//OutputArgList
public RuleCall getOutputsOutputArgListParserRuleCall_8_0() { return cOutputsOutputArgListParserRuleCall_8_0; }
//')'
public Keyword getRightParenthesisKeyword_9() { return cRightParenthesisKeyword_9; }
//attributeBlock=AttributeBlock
public Assignment getAttributeBlockAssignment_10() { return cAttributeBlockAssignment_10; }
//AttributeBlock
public RuleCall getAttributeBlockAttributeBlockParserRuleCall_10_0() { return cAttributeBlockAttributeBlockParserRuleCall_10_0; }
}
public class LocalFunctionElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.LocalFunction");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cFunctionKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1);
private final RuleCall cNameIDTerminalRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
private final Keyword cLeftParenthesisKeyword_2 = (Keyword)cGroup.eContents().get(2);
private final Assignment cInputsAssignment_3 = (Assignment)cGroup.eContents().get(3);
private final RuleCall cInputsInputArgListParserRuleCall_3_0 = (RuleCall)cInputsAssignment_3.eContents().get(0);
private final Keyword cRightParenthesisKeyword_4 = (Keyword)cGroup.eContents().get(4);
private final Keyword cReturnsKeyword_5 = (Keyword)cGroup.eContents().get(5);
private final Keyword cLeftParenthesisKeyword_6 = (Keyword)cGroup.eContents().get(6);
private final Assignment cOutputAssignment_7 = (Assignment)cGroup.eContents().get(7);
private final RuleCall cOutputOutputArgParserRuleCall_7_0 = (RuleCall)cOutputAssignment_7.eContents().get(0);
private final Keyword cRightParenthesisKeyword_8 = (Keyword)cGroup.eContents().get(8);
private final Assignment cVarBlockAssignment_9 = (Assignment)cGroup.eContents().get(9);
private final RuleCall cVarBlockVarBlockParserRuleCall_9_0 = (RuleCall)cVarBlockAssignment_9.eContents().get(0);
private final Keyword cEquationsKeyword_10 = (Keyword)cGroup.eContents().get(10);
private final Assignment cEquationBlockAssignment_11 = (Assignment)cGroup.eContents().get(11);
private final RuleCall cEquationBlockEquationBlockParserRuleCall_11_0 = (RuleCall)cEquationBlockAssignment_11.eContents().get(0);
//LocalFunction:
// 'function' name=ID '(' inputs=InputArgList ')' 'returns' '(' output=OutputArg ')'
// varBlock=VarBlock 'equations' equationBlock=EquationBlock;
@Override public ParserRule getRule() { return rule; }
//'function' name=ID '(' inputs=InputArgList ')' 'returns' '(' output=OutputArg ')' varBlock=VarBlock 'equations'
//equationBlock=EquationBlock
public Group getGroup() { return cGroup; }
//'function'
public Keyword getFunctionKeyword_0() { return cFunctionKeyword_0; }
//name=ID
public Assignment getNameAssignment_1() { return cNameAssignment_1; }
//ID
public RuleCall getNameIDTerminalRuleCall_1_0() { return cNameIDTerminalRuleCall_1_0; }
//'('
public Keyword getLeftParenthesisKeyword_2() { return cLeftParenthesisKeyword_2; }
//inputs=InputArgList
public Assignment getInputsAssignment_3() { return cInputsAssignment_3; }
//InputArgList
public RuleCall getInputsInputArgListParserRuleCall_3_0() { return cInputsInputArgListParserRuleCall_3_0; }
//')'
public Keyword getRightParenthesisKeyword_4() { return cRightParenthesisKeyword_4; }
//'returns'
public Keyword getReturnsKeyword_5() { return cReturnsKeyword_5; }
//'('
public Keyword getLeftParenthesisKeyword_6() { return cLeftParenthesisKeyword_6; }
//output=OutputArg
public Assignment getOutputAssignment_7() { return cOutputAssignment_7; }
//OutputArg
public RuleCall getOutputOutputArgParserRuleCall_7_0() { return cOutputOutputArgParserRuleCall_7_0; }
//')'
public Keyword getRightParenthesisKeyword_8() { return cRightParenthesisKeyword_8; }
//varBlock=VarBlock
public Assignment getVarBlockAssignment_9() { return cVarBlockAssignment_9; }
//VarBlock
public RuleCall getVarBlockVarBlockParserRuleCall_9_0() { return cVarBlockVarBlockParserRuleCall_9_0; }
//'equations'
public Keyword getEquationsKeyword_10() { return cEquationsKeyword_10; }
//equationBlock=EquationBlock
public Assignment getEquationBlockAssignment_11() { return cEquationBlockAssignment_11; }
//EquationBlock
public RuleCall getEquationBlockEquationBlockParserRuleCall_11_0() { return cEquationBlockEquationBlockParserRuleCall_11_0; }
}
public class LocalProcedureElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.LocalProcedure");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cProcedureKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1);
private final RuleCall cNameIDTerminalRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
private final Keyword cLeftParenthesisKeyword_2 = (Keyword)cGroup.eContents().get(2);
private final Assignment cInputsAssignment_3 = (Assignment)cGroup.eContents().get(3);
private final RuleCall cInputsInputArgListParserRuleCall_3_0 = (RuleCall)cInputsAssignment_3.eContents().get(0);
private final Keyword cRightParenthesisKeyword_4 = (Keyword)cGroup.eContents().get(4);
private final Keyword cReturnsKeyword_5 = (Keyword)cGroup.eContents().get(5);
private final Keyword cLeftParenthesisKeyword_6 = (Keyword)cGroup.eContents().get(6);
private final Assignment cOutputsAssignment_7 = (Assignment)cGroup.eContents().get(7);
private final RuleCall cOutputsOutputArgListParserRuleCall_7_0 = (RuleCall)cOutputsAssignment_7.eContents().get(0);
private final Keyword cRightParenthesisKeyword_8 = (Keyword)cGroup.eContents().get(8);
private final Assignment cVarBlockAssignment_9 = (Assignment)cGroup.eContents().get(9);
private final RuleCall cVarBlockVarBlockParserRuleCall_9_0 = (RuleCall)cVarBlockAssignment_9.eContents().get(0);
private final Assignment cAttributeBlockAssignment_10 = (Assignment)cGroup.eContents().get(10);
private final RuleCall cAttributeBlockAttributeBlockParserRuleCall_10_0 = (RuleCall)cAttributeBlockAssignment_10.eContents().get(0);
private final Keyword cStatementsKeyword_11 = (Keyword)cGroup.eContents().get(11);
private final Assignment cStatementblockAssignment_12 = (Assignment)cGroup.eContents().get(12);
private final RuleCall cStatementblockStatementBlockParserRuleCall_12_0 = (RuleCall)cStatementblockAssignment_12.eContents().get(0);
//LocalProcedure:
// 'procedure' name=ID '(' inputs=InputArgList ')' 'returns' '(' outputs=OutputArgList ')'
// varBlock=VarBlock attributeBlock=AttributeBlock 'statements' statementblock=StatementBlock;
@Override public ParserRule getRule() { return rule; }
//'procedure' name=ID '(' inputs=InputArgList ')' 'returns' '(' outputs=OutputArgList ')' varBlock=VarBlock
//attributeBlock=AttributeBlock 'statements' statementblock=StatementBlock
public Group getGroup() { return cGroup; }
//'procedure'
public Keyword getProcedureKeyword_0() { return cProcedureKeyword_0; }
//name=ID
public Assignment getNameAssignment_1() { return cNameAssignment_1; }
//ID
public RuleCall getNameIDTerminalRuleCall_1_0() { return cNameIDTerminalRuleCall_1_0; }
//'('
public Keyword getLeftParenthesisKeyword_2() { return cLeftParenthesisKeyword_2; }
//inputs=InputArgList
public Assignment getInputsAssignment_3() { return cInputsAssignment_3; }
//InputArgList
public RuleCall getInputsInputArgListParserRuleCall_3_0() { return cInputsInputArgListParserRuleCall_3_0; }
//')'
public Keyword getRightParenthesisKeyword_4() { return cRightParenthesisKeyword_4; }
//'returns'
public Keyword getReturnsKeyword_5() { return cReturnsKeyword_5; }
//'('
public Keyword getLeftParenthesisKeyword_6() { return cLeftParenthesisKeyword_6; }
//outputs=OutputArgList
public Assignment getOutputsAssignment_7() { return cOutputsAssignment_7; }
//OutputArgList
public RuleCall getOutputsOutputArgListParserRuleCall_7_0() { return cOutputsOutputArgListParserRuleCall_7_0; }
//')'
public Keyword getRightParenthesisKeyword_8() { return cRightParenthesisKeyword_8; }
//varBlock=VarBlock
public Assignment getVarBlockAssignment_9() { return cVarBlockAssignment_9; }
//VarBlock
public RuleCall getVarBlockVarBlockParserRuleCall_9_0() { return cVarBlockVarBlockParserRuleCall_9_0; }
//attributeBlock=AttributeBlock
public Assignment getAttributeBlockAssignment_10() { return cAttributeBlockAssignment_10; }
//AttributeBlock
public RuleCall getAttributeBlockAttributeBlockParserRuleCall_10_0() { return cAttributeBlockAttributeBlockParserRuleCall_10_0; }
//'statements'
public Keyword getStatementsKeyword_11() { return cStatementsKeyword_11; }
//statementblock=StatementBlock
public Assignment getStatementblockAssignment_12() { return cStatementblockAssignment_12; }
//StatementBlock
public RuleCall getStatementblockStatementBlockParserRuleCall_12_0() { return cStatementblockStatementBlockParserRuleCall_12_0; }
}
public class TypeDeclarationElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.TypeDeclaration");
private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
private final Group cGroup_0 = (Group)cAlternatives.eContents().get(0);
private final Action cTypeAliasAction_0_0 = (Action)cGroup_0.eContents().get(0);
private final Keyword cTypeKeyword_0_1 = (Keyword)cGroup_0.eContents().get(1);
private final Assignment cNameAssignment_0_2 = (Assignment)cGroup_0.eContents().get(2);
private final RuleCall cNameIDTerminalRuleCall_0_2_0 = (RuleCall)cNameAssignment_0_2.eContents().get(0);
private final Keyword cEqualsSignKeyword_0_3 = (Keyword)cGroup_0.eContents().get(3);
private final Assignment cTypeAssignment_0_4 = (Assignment)cGroup_0.eContents().get(4);
private final RuleCall cTypeTypeParserRuleCall_0_4_0 = (RuleCall)cTypeAssignment_0_4.eContents().get(0);
private final RuleCall cEnumTypeDefParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
private final RuleCall cRecordTypeDefParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
private final RuleCall cArrayTypeDefParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3);
private final RuleCall cAbstractTypeDefParserRuleCall_4 = (RuleCall)cAlternatives.eContents().get(4);
//TypeDeclaration:
// {TypeAlias} 'type' name=ID '=' type=Type | EnumTypeDef
// | RecordTypeDef
// | ArrayTypeDef
// | AbstractTypeDef;
@Override public ParserRule getRule() { return rule; }
//{TypeAlias} 'type' name=ID '=' type=Type | EnumTypeDef | RecordTypeDef | ArrayTypeDef | AbstractTypeDef
public Alternatives getAlternatives() { return cAlternatives; }
//{TypeAlias} 'type' name=ID '=' type=Type
public Group getGroup_0() { return cGroup_0; }
//{TypeAlias}
public Action getTypeAliasAction_0_0() { return cTypeAliasAction_0_0; }
//'type'
public Keyword getTypeKeyword_0_1() { return cTypeKeyword_0_1; }
//name=ID
public Assignment getNameAssignment_0_2() { return cNameAssignment_0_2; }
//ID
public RuleCall getNameIDTerminalRuleCall_0_2_0() { return cNameIDTerminalRuleCall_0_2_0; }
//'='
public Keyword getEqualsSignKeyword_0_3() { return cEqualsSignKeyword_0_3; }
//type=Type
public Assignment getTypeAssignment_0_4() { return cTypeAssignment_0_4; }
//Type
public RuleCall getTypeTypeParserRuleCall_0_4_0() { return cTypeTypeParserRuleCall_0_4_0; }
//EnumTypeDef
public RuleCall getEnumTypeDefParserRuleCall_1() { return cEnumTypeDefParserRuleCall_1; }
//RecordTypeDef
public RuleCall getRecordTypeDefParserRuleCall_2() { return cRecordTypeDefParserRuleCall_2; }
//ArrayTypeDef
public RuleCall getArrayTypeDefParserRuleCall_3() { return cArrayTypeDefParserRuleCall_3; }
//AbstractTypeDef
public RuleCall getAbstractTypeDefParserRuleCall_4() { return cAbstractTypeDefParserRuleCall_4; }
}
public class VarBlockElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.VarBlock");
private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
private final Group cGroup_0 = (Group)cAlternatives.eContents().get(0);
private final Action cSomeVarBlockAction_0_0 = (Action)cGroup_0.eContents().get(0);
private final Keyword cVarKeyword_0_1 = (Keyword)cGroup_0.eContents().get(1);
private final Keyword cLeftCurlyBracketKeyword_0_2 = (Keyword)cGroup_0.eContents().get(2);
private final Assignment cLocalsAssignment_0_3 = (Assignment)cGroup_0.eContents().get(3);
private final RuleCall cLocalsLocalArgParserRuleCall_0_3_0 = (RuleCall)cLocalsAssignment_0_3.eContents().get(0);
private final Keyword cRightCurlyBracketKeyword_0_4 = (Keyword)cGroup_0.eContents().get(4);
private final Action cNoVarBlockAction_1 = (Action)cAlternatives.eContents().get(1);
//VarBlock:
// {SomeVarBlock} 'var' '{' locals+=LocalArg* '}'
// | {NoVarBlock};
@Override public ParserRule getRule() { return rule; }
//{SomeVarBlock} 'var' '{' locals+=LocalArg* '}' | {NoVarBlock}
public Alternatives getAlternatives() { return cAlternatives; }
//{SomeVarBlock} 'var' '{' locals+=LocalArg* '}'
public Group getGroup_0() { return cGroup_0; }
//{SomeVarBlock}
public Action getSomeVarBlockAction_0_0() { return cSomeVarBlockAction_0_0; }
//'var'
public Keyword getVarKeyword_0_1() { return cVarKeyword_0_1; }
//'{'
public Keyword getLeftCurlyBracketKeyword_0_2() { return cLeftCurlyBracketKeyword_0_2; }
//locals+=LocalArg*
public Assignment getLocalsAssignment_0_3() { return cLocalsAssignment_0_3; }
//LocalArg
public RuleCall getLocalsLocalArgParserRuleCall_0_3_0() { return cLocalsLocalArgParserRuleCall_0_3_0; }
//'}'
public Keyword getRightCurlyBracketKeyword_0_4() { return cRightCurlyBracketKeyword_0_4; }
//{NoVarBlock}
public Action getNoVarBlockAction_1() { return cNoVarBlockAction_1; }
}
public class EnumTypeDefElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.EnumTypeDef");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cTypeKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Keyword cEnumKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
private final RuleCall cNameIDTerminalRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0);
private final Keyword cEqualsSignKeyword_3 = (Keyword)cGroup.eContents().get(3);
private final Keyword cLeftCurlyBracketKeyword_4 = (Keyword)cGroup.eContents().get(4);
private final Assignment cEnumerationsAssignment_5 = (Assignment)cGroup.eContents().get(5);
private final RuleCall cEnumerationsEnumValueParserRuleCall_5_0 = (RuleCall)cEnumerationsAssignment_5.eContents().get(0);
private final Group cGroup_6 = (Group)cGroup.eContents().get(6);
private final Keyword cCommaKeyword_6_0 = (Keyword)cGroup_6.eContents().get(0);
private final Assignment cEnumerationsAssignment_6_1 = (Assignment)cGroup_6.eContents().get(1);
private final RuleCall cEnumerationsEnumValueParserRuleCall_6_1_0 = (RuleCall)cEnumerationsAssignment_6_1.eContents().get(0);
private final Keyword cRightCurlyBracketKeyword_7 = (Keyword)cGroup.eContents().get(7);
//EnumTypeDef:
// 'type' 'enum' name=ID '=' '{' enumerations+=EnumValue (',' enumerations+=EnumValue)* '}';
@Override public ParserRule getRule() { return rule; }
//'type' 'enum' name=ID '=' '{' enumerations+=EnumValue (',' enumerations+=EnumValue)* '}'
public Group getGroup() { return cGroup; }
//'type'
public Keyword getTypeKeyword_0() { return cTypeKeyword_0; }
//'enum'
public Keyword getEnumKeyword_1() { return cEnumKeyword_1; }
//name=ID
public Assignment getNameAssignment_2() { return cNameAssignment_2; }
//ID
public RuleCall getNameIDTerminalRuleCall_2_0() { return cNameIDTerminalRuleCall_2_0; }
//'='
public Keyword getEqualsSignKeyword_3() { return cEqualsSignKeyword_3; }
//'{'
public Keyword getLeftCurlyBracketKeyword_4() { return cLeftCurlyBracketKeyword_4; }
//enumerations+=EnumValue
public Assignment getEnumerationsAssignment_5() { return cEnumerationsAssignment_5; }
//EnumValue
public RuleCall getEnumerationsEnumValueParserRuleCall_5_0() { return cEnumerationsEnumValueParserRuleCall_5_0; }
//(',' enumerations+=EnumValue)*
public Group getGroup_6() { return cGroup_6; }
//','
public Keyword getCommaKeyword_6_0() { return cCommaKeyword_6_0; }
//enumerations+=EnumValue
public Assignment getEnumerationsAssignment_6_1() { return cEnumerationsAssignment_6_1; }
//EnumValue
public RuleCall getEnumerationsEnumValueParserRuleCall_6_1_0() { return cEnumerationsEnumValueParserRuleCall_6_1_0; }
//'}'
public Keyword getRightCurlyBracketKeyword_7() { return cRightCurlyBracketKeyword_7; }
}
public class EnumValueElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.EnumValue");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Action cEnumValueAction_0 = (Action)cGroup.eContents().get(0);
private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1);
private final RuleCall cNameIDTerminalRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
//EnumValue:
// {EnumValue} name=ID;
@Override public ParserRule getRule() { return rule; }
//{EnumValue} name=ID
public Group getGroup() { return cGroup; }
//{EnumValue}
public Action getEnumValueAction_0() { return cEnumValueAction_0; }
//name=ID
public Assignment getNameAssignment_1() { return cNameAssignment_1; }
//ID
public RuleCall getNameIDTerminalRuleCall_1_0() { return cNameIDTerminalRuleCall_1_0; }
}
public class RecordTypeDefElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.RecordTypeDef");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cTypeKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Keyword cRecordKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
private final RuleCall cNameIDTerminalRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0);
private final Keyword cEqualsSignKeyword_3 = (Keyword)cGroup.eContents().get(3);
private final Keyword cLeftCurlyBracketKeyword_4 = (Keyword)cGroup.eContents().get(4);
private final Assignment cFieldsAssignment_5 = (Assignment)cGroup.eContents().get(5);
private final RuleCall cFieldsRecordFieldTypeParserRuleCall_5_0 = (RuleCall)cFieldsAssignment_5.eContents().get(0);
private final Group cGroup_6 = (Group)cGroup.eContents().get(6);
private final Keyword cCommaKeyword_6_0 = (Keyword)cGroup_6.eContents().get(0);
private final Assignment cFieldsAssignment_6_1 = (Assignment)cGroup_6.eContents().get(1);
private final RuleCall cFieldsRecordFieldTypeParserRuleCall_6_1_0 = (RuleCall)cFieldsAssignment_6_1.eContents().get(0);
private final Keyword cRightCurlyBracketKeyword_7 = (Keyword)cGroup.eContents().get(7);
//RecordTypeDef:
// 'type' 'record' name=ID '=' '{' fields+=RecordFieldType (',' fields+=RecordFieldType)* '}';
@Override public ParserRule getRule() { return rule; }
//'type' 'record' name=ID '=' '{' fields+=RecordFieldType (',' fields+=RecordFieldType)* '}'
public Group getGroup() { return cGroup; }
//'type'
public Keyword getTypeKeyword_0() { return cTypeKeyword_0; }
//'record'
public Keyword getRecordKeyword_1() { return cRecordKeyword_1; }
//name=ID
public Assignment getNameAssignment_2() { return cNameAssignment_2; }
//ID
public RuleCall getNameIDTerminalRuleCall_2_0() { return cNameIDTerminalRuleCall_2_0; }
//'='
public Keyword getEqualsSignKeyword_3() { return cEqualsSignKeyword_3; }
//'{'
public Keyword getLeftCurlyBracketKeyword_4() { return cLeftCurlyBracketKeyword_4; }
//fields+=RecordFieldType
public Assignment getFieldsAssignment_5() { return cFieldsAssignment_5; }
//RecordFieldType
public RuleCall getFieldsRecordFieldTypeParserRuleCall_5_0() { return cFieldsRecordFieldTypeParserRuleCall_5_0; }
//(',' fields+=RecordFieldType)*
public Group getGroup_6() { return cGroup_6; }
//','
public Keyword getCommaKeyword_6_0() { return cCommaKeyword_6_0; }
//fields+=RecordFieldType
public Assignment getFieldsAssignment_6_1() { return cFieldsAssignment_6_1; }
//RecordFieldType
public RuleCall getFieldsRecordFieldTypeParserRuleCall_6_1_0() { return cFieldsRecordFieldTypeParserRuleCall_6_1_0; }
//'}'
public Keyword getRightCurlyBracketKeyword_7() { return cRightCurlyBracketKeyword_7; }
}
public class ArrayTypeDefElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.ArrayTypeDef");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cTypeKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Keyword cArrayKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
private final RuleCall cNameIDTerminalRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0);
private final Keyword cEqualsSignKeyword_3 = (Keyword)cGroup.eContents().get(3);
private final Assignment cBaseTypeAssignment_4 = (Assignment)cGroup.eContents().get(4);
private final RuleCall cBaseTypeTypeParserRuleCall_4_0 = (RuleCall)cBaseTypeAssignment_4.eContents().get(0);
private final Keyword cLeftSquareBracketKeyword_5 = (Keyword)cGroup.eContents().get(5);
private final Assignment cSizeAssignment_6 = (Assignment)cGroup.eContents().get(6);
private final RuleCall cSizeINTTerminalRuleCall_6_0 = (RuleCall)cSizeAssignment_6.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_7 = (Keyword)cGroup.eContents().get(7);
//ArrayTypeDef:
// 'type' 'array' name=ID '=' baseType=Type '[' size=INT ']';
@Override public ParserRule getRule() { return rule; }
//'type' 'array' name=ID '=' baseType=Type '[' size=INT ']'
public Group getGroup() { return cGroup; }
//'type'
public Keyword getTypeKeyword_0() { return cTypeKeyword_0; }
//'array'
public Keyword getArrayKeyword_1() { return cArrayKeyword_1; }
//name=ID
public Assignment getNameAssignment_2() { return cNameAssignment_2; }
//ID
public RuleCall getNameIDTerminalRuleCall_2_0() { return cNameIDTerminalRuleCall_2_0; }
//'='
public Keyword getEqualsSignKeyword_3() { return cEqualsSignKeyword_3; }
//baseType=Type
public Assignment getBaseTypeAssignment_4() { return cBaseTypeAssignment_4; }
//Type
public RuleCall getBaseTypeTypeParserRuleCall_4_0() { return cBaseTypeTypeParserRuleCall_4_0; }
//'['
public Keyword getLeftSquareBracketKeyword_5() { return cLeftSquareBracketKeyword_5; }
//size=INT
public Assignment getSizeAssignment_6() { return cSizeAssignment_6; }
//INT
public RuleCall getSizeINTTerminalRuleCall_6_0() { return cSizeINTTerminalRuleCall_6_0; }
//']'
public Keyword getRightSquareBracketKeyword_7() { return cRightSquareBracketKeyword_7; }
}
public class AbstractTypeDefElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.AbstractTypeDef");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cTypeKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Keyword cAbstractKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
private final RuleCall cNameIDTerminalRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0);
//AbstractTypeDef:
// 'type' 'abstract' name=ID;
@Override public ParserRule getRule() { return rule; }
//'type' 'abstract' name=ID
public Group getGroup() { return cGroup; }
//'type'
public Keyword getTypeKeyword_0() { return cTypeKeyword_0; }
//'abstract'
public Keyword getAbstractKeyword_1() { return cAbstractKeyword_1; }
//name=ID
public Assignment getNameAssignment_2() { return cNameAssignment_2; }
//ID
public RuleCall getNameIDTerminalRuleCall_2_0() { return cNameIDTerminalRuleCall_2_0; }
}
public class RecordFieldTypeElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.RecordFieldType");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Assignment cFieldNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
private final RuleCall cFieldNameIDTerminalRuleCall_0_0 = (RuleCall)cFieldNameAssignment_0.eContents().get(0);
private final Keyword cColonKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Assignment cFieldTypeAssignment_2 = (Assignment)cGroup.eContents().get(2);
private final RuleCall cFieldTypeTypeParserRuleCall_2_0 = (RuleCall)cFieldTypeAssignment_2.eContents().get(0);
//RecordFieldType:
// fieldName=ID ':' fieldType=Type;
@Override public ParserRule getRule() { return rule; }
//fieldName=ID ':' fieldType=Type
public Group getGroup() { return cGroup; }
//fieldName=ID
public Assignment getFieldNameAssignment_0() { return cFieldNameAssignment_0; }
//ID
public RuleCall getFieldNameIDTerminalRuleCall_0_0() { return cFieldNameIDTerminalRuleCall_0_0; }
//':'
public Keyword getColonKeyword_1() { return cColonKeyword_1; }
//fieldType=Type
public Assignment getFieldTypeAssignment_2() { return cFieldTypeAssignment_2; }
//Type
public RuleCall getFieldTypeTypeParserRuleCall_2_0() { return cFieldTypeTypeParserRuleCall_2_0; }
}
public class ConstantDeclarationElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.ConstantDeclaration");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cConstantKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1);
private final RuleCall cNameIDTerminalRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
private final Keyword cColonKeyword_2 = (Keyword)cGroup.eContents().get(2);
private final Assignment cTypeAssignment_3 = (Assignment)cGroup.eContents().get(3);
private final RuleCall cTypeTypeParserRuleCall_3_0 = (RuleCall)cTypeAssignment_3.eContents().get(0);
private final Group cGroup_4 = (Group)cGroup.eContents().get(4);
private final Keyword cEqualsSignKeyword_4_0 = (Keyword)cGroup_4.eContents().get(0);
private final Assignment cExprAssignment_4_1 = (Assignment)cGroup_4.eContents().get(1);
private final RuleCall cExprExprParserRuleCall_4_1_0 = (RuleCall)cExprAssignment_4_1.eContents().get(0);
//ConstantDeclaration:
// 'constant' name=ID ':' type=Type ('=' expr=Expr)?;
@Override public ParserRule getRule() { return rule; }
//'constant' name=ID ':' type=Type ('=' expr=Expr)?
public Group getGroup() { return cGroup; }
//'constant'
public Keyword getConstantKeyword_0() { return cConstantKeyword_0; }
//name=ID
public Assignment getNameAssignment_1() { return cNameAssignment_1; }
//ID
public RuleCall getNameIDTerminalRuleCall_1_0() { return cNameIDTerminalRuleCall_1_0; }
//':'
public Keyword getColonKeyword_2() { return cColonKeyword_2; }
//type=Type
public Assignment getTypeAssignment_3() { return cTypeAssignment_3; }
//Type
public RuleCall getTypeTypeParserRuleCall_3_0() { return cTypeTypeParserRuleCall_3_0; }
//('=' expr=Expr)?
public Group getGroup_4() { return cGroup_4; }
//'='
public Keyword getEqualsSignKeyword_4_0() { return cEqualsSignKeyword_4_0; }
//expr=Expr
public Assignment getExprAssignment_4_1() { return cExprAssignment_4_1; }
//Expr
public RuleCall getExprExprParserRuleCall_4_1_0() { return cExprExprParserRuleCall_4_1_0; }
}
public class GlobalDeclarationElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.GlobalDeclaration");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cGlobalKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1);
private final RuleCall cNameIDTerminalRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
private final Keyword cColonKeyword_2 = (Keyword)cGroup.eContents().get(2);
private final Assignment cTypeAssignment_3 = (Assignment)cGroup.eContents().get(3);
private final RuleCall cTypeTypeParserRuleCall_3_0 = (RuleCall)cTypeAssignment_3.eContents().get(0);
//GlobalDeclaration:
// 'global' name=ID ':' type=Type;
@Override public ParserRule getRule() { return rule; }
//'global' name=ID ':' type=Type
public Group getGroup() { return cGroup; }
//'global'
public Keyword getGlobalKeyword_0() { return cGlobalKeyword_0; }
//name=ID
public Assignment getNameAssignment_1() { return cNameAssignment_1; }
//ID
public RuleCall getNameIDTerminalRuleCall_1_0() { return cNameIDTerminalRuleCall_1_0; }
//':'
public Keyword getColonKeyword_2() { return cColonKeyword_2; }
//type=Type
public Assignment getTypeAssignment_3() { return cTypeAssignment_3; }
//Type
public RuleCall getTypeTypeParserRuleCall_3_0() { return cTypeTypeParserRuleCall_3_0; }
}
public class VariableRefElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.VariableRef");
private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
private final RuleCall cInputArgParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
private final RuleCall cLocalArgParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
private final RuleCall cOutputArgParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
private final RuleCall cConstantDeclarationParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3);
private final RuleCall cGlobalDeclarationParserRuleCall_4 = (RuleCall)cAlternatives.eContents().get(4);
private final RuleCall cEnumValueParserRuleCall_5 = (RuleCall)cAlternatives.eContents().get(5);
//VariableRef:
// InputArg
// | LocalArg
// | OutputArg
// | ConstantDeclaration
// | GlobalDeclaration
// | EnumValue;
@Override public ParserRule getRule() { return rule; }
//InputArg | LocalArg | OutputArg | ConstantDeclaration | GlobalDeclaration | EnumValue
public Alternatives getAlternatives() { return cAlternatives; }
//InputArg
public RuleCall getInputArgParserRuleCall_0() { return cInputArgParserRuleCall_0; }
//LocalArg
public RuleCall getLocalArgParserRuleCall_1() { return cLocalArgParserRuleCall_1; }
//OutputArg
public RuleCall getOutputArgParserRuleCall_2() { return cOutputArgParserRuleCall_2; }
//ConstantDeclaration
public RuleCall getConstantDeclarationParserRuleCall_3() { return cConstantDeclarationParserRuleCall_3; }
//GlobalDeclaration
public RuleCall getGlobalDeclarationParserRuleCall_4() { return cGlobalDeclarationParserRuleCall_4; }
//EnumValue
public RuleCall getEnumValueParserRuleCall_5() { return cEnumValueParserRuleCall_5; }
}
public class InputArgListElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.InputArgList");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Action cInputArgListAction_0 = (Action)cGroup.eContents().get(0);
private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
private final Assignment cInputArgsAssignment_1_0 = (Assignment)cGroup_1.eContents().get(0);
private final RuleCall cInputArgsInputArgParserRuleCall_1_0_0 = (RuleCall)cInputArgsAssignment_1_0.eContents().get(0);
private final Group cGroup_1_1 = (Group)cGroup_1.eContents().get(1);
private final Keyword cCommaKeyword_1_1_0 = (Keyword)cGroup_1_1.eContents().get(0);
private final Assignment cInputArgsAssignment_1_1_1 = (Assignment)cGroup_1_1.eContents().get(1);
private final RuleCall cInputArgsInputArgParserRuleCall_1_1_1_0 = (RuleCall)cInputArgsAssignment_1_1_1.eContents().get(0);
//InputArgList:
// {InputArgList} (inputArgs+=InputArg (',' inputArgs+=InputArg)*)?;
@Override public ParserRule getRule() { return rule; }
//{InputArgList} (inputArgs+=InputArg (',' inputArgs+=InputArg)*)?
public Group getGroup() { return cGroup; }
//{InputArgList}
public Action getInputArgListAction_0() { return cInputArgListAction_0; }
//(inputArgs+=InputArg (',' inputArgs+=InputArg)*)?
public Group getGroup_1() { return cGroup_1; }
//inputArgs+=InputArg
public Assignment getInputArgsAssignment_1_0() { return cInputArgsAssignment_1_0; }
//InputArg
public RuleCall getInputArgsInputArgParserRuleCall_1_0_0() { return cInputArgsInputArgParserRuleCall_1_0_0; }
//(',' inputArgs+=InputArg)*
public Group getGroup_1_1() { return cGroup_1_1; }
//','
public Keyword getCommaKeyword_1_1_0() { return cCommaKeyword_1_1_0; }
//inputArgs+=InputArg
public Assignment getInputArgsAssignment_1_1_1() { return cInputArgsAssignment_1_1_1; }
//InputArg
public RuleCall getInputArgsInputArgParserRuleCall_1_1_1_0() { return cInputArgsInputArgParserRuleCall_1_1_1_0; }
}
public class InputArgElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.InputArg");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
private final RuleCall cNameIDTerminalRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0);
private final Keyword cColonKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Assignment cTypeAssignment_2 = (Assignment)cGroup.eContents().get(2);
private final RuleCall cTypeTypeParserRuleCall_2_0 = (RuleCall)cTypeAssignment_2.eContents().get(0);
//InputArg:
// name=ID ':' type=Type;
@Override public ParserRule getRule() { return rule; }
//name=ID ':' type=Type
public Group getGroup() { return cGroup; }
//name=ID
public Assignment getNameAssignment_0() { return cNameAssignment_0; }
//ID
public RuleCall getNameIDTerminalRuleCall_0_0() { return cNameIDTerminalRuleCall_0_0; }
//':'
public Keyword getColonKeyword_1() { return cColonKeyword_1; }
//type=Type
public Assignment getTypeAssignment_2() { return cTypeAssignment_2; }
//Type
public RuleCall getTypeTypeParserRuleCall_2_0() { return cTypeTypeParserRuleCall_2_0; }
}
public class LocalArgElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.LocalArg");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
private final RuleCall cNameIDTerminalRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0);
private final Keyword cColonKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Assignment cTypeAssignment_2 = (Assignment)cGroup.eContents().get(2);
private final RuleCall cTypeTypeParserRuleCall_2_0 = (RuleCall)cTypeAssignment_2.eContents().get(0);
private final Keyword cSemicolonKeyword_3 = (Keyword)cGroup.eContents().get(3);
//LocalArg:
// name=ID ':' type=Type ';';
@Override public ParserRule getRule() { return rule; }
//name=ID ':' type=Type ';'
public Group getGroup() { return cGroup; }
//name=ID
public Assignment getNameAssignment_0() { return cNameAssignment_0; }
//ID
public RuleCall getNameIDTerminalRuleCall_0_0() { return cNameIDTerminalRuleCall_0_0; }
//':'
public Keyword getColonKeyword_1() { return cColonKeyword_1; }
//type=Type
public Assignment getTypeAssignment_2() { return cTypeAssignment_2; }
//Type
public RuleCall getTypeTypeParserRuleCall_2_0() { return cTypeTypeParserRuleCall_2_0; }
//';'
public Keyword getSemicolonKeyword_3() { return cSemicolonKeyword_3; }
}
public class OutputArgListElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.OutputArgList");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Action cOutputArgListAction_0 = (Action)cGroup.eContents().get(0);
private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
private final Assignment cOutputArgsAssignment_1_0 = (Assignment)cGroup_1.eContents().get(0);
private final RuleCall cOutputArgsOutputArgParserRuleCall_1_0_0 = (RuleCall)cOutputArgsAssignment_1_0.eContents().get(0);
private final Group cGroup_1_1 = (Group)cGroup_1.eContents().get(1);
private final Keyword cCommaKeyword_1_1_0 = (Keyword)cGroup_1_1.eContents().get(0);
private final Assignment cOutputArgsAssignment_1_1_1 = (Assignment)cGroup_1_1.eContents().get(1);
private final RuleCall cOutputArgsOutputArgParserRuleCall_1_1_1_0 = (RuleCall)cOutputArgsAssignment_1_1_1.eContents().get(0);
//OutputArgList:
// {OutputArgList} (outputArgs+=OutputArg (',' outputArgs+=OutputArg)*)?;
@Override public ParserRule getRule() { return rule; }
//{OutputArgList} (outputArgs+=OutputArg (',' outputArgs+=OutputArg)*)?
public Group getGroup() { return cGroup; }
//{OutputArgList}
public Action getOutputArgListAction_0() { return cOutputArgListAction_0; }
//(outputArgs+=OutputArg (',' outputArgs+=OutputArg)*)?
public Group getGroup_1() { return cGroup_1; }
//outputArgs+=OutputArg
public Assignment getOutputArgsAssignment_1_0() { return cOutputArgsAssignment_1_0; }
//OutputArg
public RuleCall getOutputArgsOutputArgParserRuleCall_1_0_0() { return cOutputArgsOutputArgParserRuleCall_1_0_0; }
//(',' outputArgs+=OutputArg)*
public Group getGroup_1_1() { return cGroup_1_1; }
//','
public Keyword getCommaKeyword_1_1_0() { return cCommaKeyword_1_1_0; }
//outputArgs+=OutputArg
public Assignment getOutputArgsAssignment_1_1_1() { return cOutputArgsAssignment_1_1_1; }
//OutputArg
public RuleCall getOutputArgsOutputArgParserRuleCall_1_1_1_0() { return cOutputArgsOutputArgParserRuleCall_1_1_1_0; }
}
public class OutputArgElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.OutputArg");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
private final RuleCall cNameIDTerminalRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0);
private final Keyword cColonKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Assignment cTypeAssignment_2 = (Assignment)cGroup.eContents().get(2);
private final RuleCall cTypeTypeParserRuleCall_2_0 = (RuleCall)cTypeAssignment_2.eContents().get(0);
//OutputArg:
// name=ID ':' type=Type;
@Override public ParserRule getRule() { return rule; }
//name=ID ':' type=Type
public Group getGroup() { return cGroup; }
//name=ID
public Assignment getNameAssignment_0() { return cNameAssignment_0; }
//ID
public RuleCall getNameIDTerminalRuleCall_0_0() { return cNameIDTerminalRuleCall_0_0; }
//':'
public Keyword getColonKeyword_1() { return cColonKeyword_1; }
//type=Type
public Assignment getTypeAssignment_2() { return cTypeAssignment_2; }
//Type
public RuleCall getTypeTypeParserRuleCall_2_0() { return cTypeTypeParserRuleCall_2_0; }
}
public class TypeElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.Type");
private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
private final Group cGroup_0 = (Group)cAlternatives.eContents().get(0);
private final Action cVoidTypeAction_0_0 = (Action)cGroup_0.eContents().get(0);
private final Keyword cVoidKeyword_0_1 = (Keyword)cGroup_0.eContents().get(1);
private final Group cGroup_1 = (Group)cAlternatives.eContents().get(1);
private final Action cBoolTypeAction_1_0 = (Action)cGroup_1.eContents().get(0);
private final Keyword cBoolKeyword_1_1 = (Keyword)cGroup_1.eContents().get(1);
private final Group cGroup_2 = (Group)cAlternatives.eContents().get(2);
private final Action cIntegerTypeAction_2_0 = (Action)cGroup_2.eContents().get(0);
private final Keyword cIntKeyword_2_1 = (Keyword)cGroup_2.eContents().get(1);
private final Group cGroup_3 = (Group)cAlternatives.eContents().get(3);
private final Action cRealTypeAction_3_0 = (Action)cGroup_3.eContents().get(0);
private final Keyword cRealKeyword_3_1 = (Keyword)cGroup_3.eContents().get(1);
private final Group cGroup_4 = (Group)cAlternatives.eContents().get(4);
private final Action cStringTypeAction_4_0 = (Action)cGroup_4.eContents().get(0);
private final Keyword cStringKeyword_4_1 = (Keyword)cGroup_4.eContents().get(1);
private final Group cGroup_5 = (Group)cAlternatives.eContents().get(5);
private final Action cEnumTypeAction_5_0 = (Action)cGroup_5.eContents().get(0);
private final Keyword cEnumKeyword_5_1 = (Keyword)cGroup_5.eContents().get(1);
private final Assignment cEnumDefAssignment_5_2 = (Assignment)cGroup_5.eContents().get(2);
private final CrossReference cEnumDefEnumTypeDefCrossReference_5_2_0 = (CrossReference)cEnumDefAssignment_5_2.eContents().get(0);
private final RuleCall cEnumDefEnumTypeDefIDTerminalRuleCall_5_2_0_1 = (RuleCall)cEnumDefEnumTypeDefCrossReference_5_2_0.eContents().get(1);
private final Group cGroup_6 = (Group)cAlternatives.eContents().get(6);
private final Action cRecordTypeAction_6_0 = (Action)cGroup_6.eContents().get(0);
private final Keyword cRecordKeyword_6_1 = (Keyword)cGroup_6.eContents().get(1);
private final Assignment cRecordDefAssignment_6_2 = (Assignment)cGroup_6.eContents().get(2);
private final CrossReference cRecordDefRecordTypeDefCrossReference_6_2_0 = (CrossReference)cRecordDefAssignment_6_2.eContents().get(0);
private final RuleCall cRecordDefRecordTypeDefIDTerminalRuleCall_6_2_0_1 = (RuleCall)cRecordDefRecordTypeDefCrossReference_6_2_0.eContents().get(1);
private final Group cGroup_7 = (Group)cAlternatives.eContents().get(7);
private final Action cArrayTypeAction_7_0 = (Action)cGroup_7.eContents().get(0);
private final Keyword cArrayKeyword_7_1 = (Keyword)cGroup_7.eContents().get(1);
private final Assignment cArrayDefAssignment_7_2 = (Assignment)cGroup_7.eContents().get(2);
private final CrossReference cArrayDefArrayTypeDefCrossReference_7_2_0 = (CrossReference)cArrayDefAssignment_7_2.eContents().get(0);
private final RuleCall cArrayDefArrayTypeDefIDTerminalRuleCall_7_2_0_1 = (RuleCall)cArrayDefArrayTypeDefCrossReference_7_2_0.eContents().get(1);
private final Group cGroup_8 = (Group)cAlternatives.eContents().get(8);
private final Action cAbstractTypeAction_8_0 = (Action)cGroup_8.eContents().get(0);
private final Keyword cAbstractKeyword_8_1 = (Keyword)cGroup_8.eContents().get(1);
private final Assignment cAbstractDefAssignment_8_2 = (Assignment)cGroup_8.eContents().get(2);
private final CrossReference cAbstractDefAbstractTypeDefCrossReference_8_2_0 = (CrossReference)cAbstractDefAssignment_8_2.eContents().get(0);
private final RuleCall cAbstractDefAbstractTypeDefIDTerminalRuleCall_8_2_0_1 = (RuleCall)cAbstractDefAbstractTypeDefCrossReference_8_2_0.eContents().get(1);
private final Group cGroup_9 = (Group)cAlternatives.eContents().get(9);
private final Action cNamedTypeAction_9_0 = (Action)cGroup_9.eContents().get(0);
private final Assignment cAliasAssignment_9_1 = (Assignment)cGroup_9.eContents().get(1);
private final CrossReference cAliasTypeAliasCrossReference_9_1_0 = (CrossReference)cAliasAssignment_9_1.eContents().get(0);
private final RuleCall cAliasTypeAliasIDTerminalRuleCall_9_1_0_1 = (RuleCall)cAliasTypeAliasCrossReference_9_1_0.eContents().get(1);
//Type:
// {VoidType} 'void'
// | {BoolType} 'bool'
// | {IntegerType} 'int'
// | {RealType} 'real'
// | {StringType} 'string'
// | {EnumType} 'enum' enumDef=[EnumTypeDef] | {RecordType} 'record' recordDef=[RecordTypeDef] | {ArrayType} 'array'
// arrayDef=[ArrayTypeDef] | {AbstractType} 'abstract' abstractDef=[AbstractTypeDef] | {NamedType} alias=[TypeAlias];
@Override public ParserRule getRule() { return rule; }
//{VoidType} 'void' | {BoolType} 'bool' | {IntegerType} 'int' | {RealType} 'real' | {StringType} 'string' | {EnumType}
//'enum' enumDef=[EnumTypeDef] | {RecordType} 'record' recordDef=[RecordTypeDef] | {ArrayType} 'array'
//arrayDef=[ArrayTypeDef] | {AbstractType} 'abstract' abstractDef=[AbstractTypeDef] | {NamedType} alias=[TypeAlias]
public Alternatives getAlternatives() { return cAlternatives; }
//{VoidType} 'void'
public Group getGroup_0() { return cGroup_0; }
//{VoidType}
public Action getVoidTypeAction_0_0() { return cVoidTypeAction_0_0; }
//'void'
public Keyword getVoidKeyword_0_1() { return cVoidKeyword_0_1; }
//{BoolType} 'bool'
public Group getGroup_1() { return cGroup_1; }
//{BoolType}
public Action getBoolTypeAction_1_0() { return cBoolTypeAction_1_0; }
//'bool'
public Keyword getBoolKeyword_1_1() { return cBoolKeyword_1_1; }
//{IntegerType} 'int'
public Group getGroup_2() { return cGroup_2; }
//{IntegerType}
public Action getIntegerTypeAction_2_0() { return cIntegerTypeAction_2_0; }
//'int'
public Keyword getIntKeyword_2_1() { return cIntKeyword_2_1; }
//{RealType} 'real'
public Group getGroup_3() { return cGroup_3; }
//{RealType}
public Action getRealTypeAction_3_0() { return cRealTypeAction_3_0; }
//'real'
public Keyword getRealKeyword_3_1() { return cRealKeyword_3_1; }
//{StringType} 'string'
public Group getGroup_4() { return cGroup_4; }
//{StringType}
public Action getStringTypeAction_4_0() { return cStringTypeAction_4_0; }
//'string'
public Keyword getStringKeyword_4_1() { return cStringKeyword_4_1; }
//{EnumType} 'enum' enumDef=[EnumTypeDef]
public Group getGroup_5() { return cGroup_5; }
//{EnumType}
public Action getEnumTypeAction_5_0() { return cEnumTypeAction_5_0; }
//'enum'
public Keyword getEnumKeyword_5_1() { return cEnumKeyword_5_1; }
//enumDef=[EnumTypeDef]
public Assignment getEnumDefAssignment_5_2() { return cEnumDefAssignment_5_2; }
//[EnumTypeDef]
public CrossReference getEnumDefEnumTypeDefCrossReference_5_2_0() { return cEnumDefEnumTypeDefCrossReference_5_2_0; }
//ID
public RuleCall getEnumDefEnumTypeDefIDTerminalRuleCall_5_2_0_1() { return cEnumDefEnumTypeDefIDTerminalRuleCall_5_2_0_1; }
//{RecordType} 'record' recordDef=[RecordTypeDef]
public Group getGroup_6() { return cGroup_6; }
//{RecordType}
public Action getRecordTypeAction_6_0() { return cRecordTypeAction_6_0; }
//'record'
public Keyword getRecordKeyword_6_1() { return cRecordKeyword_6_1; }
//recordDef=[RecordTypeDef]
public Assignment getRecordDefAssignment_6_2() { return cRecordDefAssignment_6_2; }
//[RecordTypeDef]
public CrossReference getRecordDefRecordTypeDefCrossReference_6_2_0() { return cRecordDefRecordTypeDefCrossReference_6_2_0; }
//ID
public RuleCall getRecordDefRecordTypeDefIDTerminalRuleCall_6_2_0_1() { return cRecordDefRecordTypeDefIDTerminalRuleCall_6_2_0_1; }
//{ArrayType} 'array' arrayDef=[ArrayTypeDef]
public Group getGroup_7() { return cGroup_7; }
//{ArrayType}
public Action getArrayTypeAction_7_0() { return cArrayTypeAction_7_0; }
//'array'
public Keyword getArrayKeyword_7_1() { return cArrayKeyword_7_1; }
//arrayDef=[ArrayTypeDef]
public Assignment getArrayDefAssignment_7_2() { return cArrayDefAssignment_7_2; }
//[ArrayTypeDef]
public CrossReference getArrayDefArrayTypeDefCrossReference_7_2_0() { return cArrayDefArrayTypeDefCrossReference_7_2_0; }
//ID
public RuleCall getArrayDefArrayTypeDefIDTerminalRuleCall_7_2_0_1() { return cArrayDefArrayTypeDefIDTerminalRuleCall_7_2_0_1; }
//{AbstractType} 'abstract' abstractDef=[AbstractTypeDef]
public Group getGroup_8() { return cGroup_8; }
//{AbstractType}
public Action getAbstractTypeAction_8_0() { return cAbstractTypeAction_8_0; }
//'abstract'
public Keyword getAbstractKeyword_8_1() { return cAbstractKeyword_8_1; }
//abstractDef=[AbstractTypeDef]
public Assignment getAbstractDefAssignment_8_2() { return cAbstractDefAssignment_8_2; }
//[AbstractTypeDef]
public CrossReference getAbstractDefAbstractTypeDefCrossReference_8_2_0() { return cAbstractDefAbstractTypeDefCrossReference_8_2_0; }
//ID
public RuleCall getAbstractDefAbstractTypeDefIDTerminalRuleCall_8_2_0_1() { return cAbstractDefAbstractTypeDefIDTerminalRuleCall_8_2_0_1; }
//{NamedType} alias=[TypeAlias]
public Group getGroup_9() { return cGroup_9; }
//{NamedType}
public Action getNamedTypeAction_9_0() { return cNamedTypeAction_9_0; }
//alias=[TypeAlias]
public Assignment getAliasAssignment_9_1() { return cAliasAssignment_9_1; }
//[TypeAlias]
public CrossReference getAliasTypeAliasCrossReference_9_1_0() { return cAliasTypeAliasCrossReference_9_1_0; }
//ID
public RuleCall getAliasTypeAliasIDTerminalRuleCall_9_1_0_1() { return cAliasTypeAliasIDTerminalRuleCall_9_1_0_1; }
}
public class AttributeBlockElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.AttributeBlock");
private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
private final Group cGroup_0 = (Group)cAlternatives.eContents().get(0);
private final Action cSomeAttributeBlockAction_0_0 = (Action)cGroup_0.eContents().get(0);
private final Keyword cAttributesKeyword_0_1 = (Keyword)cGroup_0.eContents().get(1);
private final Keyword cLeftCurlyBracketKeyword_0_2 = (Keyword)cGroup_0.eContents().get(2);
private final Assignment cAttributeListAssignment_0_3 = (Assignment)cGroup_0.eContents().get(3);
private final RuleCall cAttributeListAttributeParserRuleCall_0_3_0 = (RuleCall)cAttributeListAssignment_0_3.eContents().get(0);
private final Keyword cRightCurlyBracketKeyword_0_4 = (Keyword)cGroup_0.eContents().get(4);
private final Action cNoAttributeBlockAction_1 = (Action)cAlternatives.eContents().get(1);
//AttributeBlock:
// {SomeAttributeBlock} 'attributes' '{' attributeList+=Attribute* '}'
// | {NoAttributeBlock};
@Override public ParserRule getRule() { return rule; }
//{SomeAttributeBlock} 'attributes' '{' attributeList+=Attribute* '}' | {NoAttributeBlock}
public Alternatives getAlternatives() { return cAlternatives; }
//{SomeAttributeBlock} 'attributes' '{' attributeList+=Attribute* '}'
public Group getGroup_0() { return cGroup_0; }
//{SomeAttributeBlock}
public Action getSomeAttributeBlockAction_0_0() { return cSomeAttributeBlockAction_0_0; }
//'attributes'
public Keyword getAttributesKeyword_0_1() { return cAttributesKeyword_0_1; }
//'{'
public Keyword getLeftCurlyBracketKeyword_0_2() { return cLeftCurlyBracketKeyword_0_2; }
//attributeList+=Attribute*
public Assignment getAttributeListAssignment_0_3() { return cAttributeListAssignment_0_3; }
//Attribute
public RuleCall getAttributeListAttributeParserRuleCall_0_3_0() { return cAttributeListAttributeParserRuleCall_0_3_0; }
//'}'
public Keyword getRightCurlyBracketKeyword_0_4() { return cRightCurlyBracketKeyword_0_4; }
//{NoAttributeBlock}
public Action getNoAttributeBlockAction_1() { return cNoAttributeBlockAction_1; }
}
public class AttributeElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.Attribute");
private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
private final RuleCall cPreconditionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
private final RuleCall cPostconditionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
private final RuleCall cDefineParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
private final RuleCall cUsesParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3);
//Attribute:
// Precondition
// | Postcondition
// | Define
// | Uses;
@Override public ParserRule getRule() { return rule; }
//Precondition | Postcondition | Define | Uses
public Alternatives getAlternatives() { return cAlternatives; }
//Precondition
public RuleCall getPreconditionParserRuleCall_0() { return cPreconditionParserRuleCall_0; }
//Postcondition
public RuleCall getPostconditionParserRuleCall_1() { return cPostconditionParserRuleCall_1; }
//Define
public RuleCall getDefineParserRuleCall_2() { return cDefineParserRuleCall_2; }
//Uses
public RuleCall getUsesParserRuleCall_3() { return cUsesParserRuleCall_3; }
}
public class PreconditionElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.Precondition");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cPreconditionKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1);
private final RuleCall cNameIDTerminalRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
private final Keyword cEqualsSignKeyword_2 = (Keyword)cGroup.eContents().get(2);
private final Assignment cExprAssignment_3 = (Assignment)cGroup.eContents().get(3);
private final RuleCall cExprExprParserRuleCall_3_0 = (RuleCall)cExprAssignment_3.eContents().get(0);
private final Keyword cSemicolonKeyword_4 = (Keyword)cGroup.eContents().get(4);
//Precondition:
// 'precondition' name=ID '=' expr=Expr ';';
@Override public ParserRule getRule() { return rule; }
//'precondition' name=ID '=' expr=Expr ';'
public Group getGroup() { return cGroup; }
//'precondition'
public Keyword getPreconditionKeyword_0() { return cPreconditionKeyword_0; }
//name=ID
public Assignment getNameAssignment_1() { return cNameAssignment_1; }
//ID
public RuleCall getNameIDTerminalRuleCall_1_0() { return cNameIDTerminalRuleCall_1_0; }
//'='
public Keyword getEqualsSignKeyword_2() { return cEqualsSignKeyword_2; }
//expr=Expr
public Assignment getExprAssignment_3() { return cExprAssignment_3; }
//Expr
public RuleCall getExprExprParserRuleCall_3_0() { return cExprExprParserRuleCall_3_0; }
//';'
public Keyword getSemicolonKeyword_4() { return cSemicolonKeyword_4; }
}
public class PostconditionElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.Postcondition");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cPostconditionKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1);
private final RuleCall cNameIDTerminalRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
private final Keyword cEqualsSignKeyword_2 = (Keyword)cGroup.eContents().get(2);
private final Assignment cExprAssignment_3 = (Assignment)cGroup.eContents().get(3);
private final RuleCall cExprExprParserRuleCall_3_0 = (RuleCall)cExprAssignment_3.eContents().get(0);
private final Keyword cSemicolonKeyword_4 = (Keyword)cGroup.eContents().get(4);
//Postcondition:
// 'postcondition' name=ID '=' expr=Expr ';';
@Override public ParserRule getRule() { return rule; }
//'postcondition' name=ID '=' expr=Expr ';'
public Group getGroup() { return cGroup; }
//'postcondition'
public Keyword getPostconditionKeyword_0() { return cPostconditionKeyword_0; }
//name=ID
public Assignment getNameAssignment_1() { return cNameAssignment_1; }
//ID
public RuleCall getNameIDTerminalRuleCall_1_0() { return cNameIDTerminalRuleCall_1_0; }
//'='
public Keyword getEqualsSignKeyword_2() { return cEqualsSignKeyword_2; }
//expr=Expr
public Assignment getExprAssignment_3() { return cExprAssignment_3; }
//Expr
public RuleCall getExprExprParserRuleCall_3_0() { return cExprExprParserRuleCall_3_0; }
//';'
public Keyword getSemicolonKeyword_4() { return cSemicolonKeyword_4; }
}
public class DefineUseRefElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.DefineUseRef");
private final Assignment cReferenceExprAssignment = (Assignment)rule.eContents().get(1);
private final RuleCall cReferenceExprExprParserRuleCall_0 = (RuleCall)cReferenceExprAssignment.eContents().get(0);
//DefineUseRef:
// referenceExpr=Expr;
@Override public ParserRule getRule() { return rule; }
//referenceExpr=Expr
public Assignment getReferenceExprAssignment() { return cReferenceExprAssignment; }
//Expr
public RuleCall getReferenceExprExprParserRuleCall_0() { return cReferenceExprExprParserRuleCall_0; }
}
public class DefineElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.Define");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cDefinesKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Assignment cElementsAssignment_1 = (Assignment)cGroup.eContents().get(1);
private final RuleCall cElementsDefineUseRefParserRuleCall_1_0 = (RuleCall)cElementsAssignment_1.eContents().get(0);
private final Group cGroup_2 = (Group)cGroup.eContents().get(2);
private final Keyword cCommaKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0);
private final Assignment cElementsAssignment_2_1 = (Assignment)cGroup_2.eContents().get(1);
private final RuleCall cElementsDefineUseRefParserRuleCall_2_1_0 = (RuleCall)cElementsAssignment_2_1.eContents().get(0);
private final Keyword cSemicolonKeyword_3 = (Keyword)cGroup.eContents().get(3);
//Define:
// 'defines' elements+=DefineUseRef (',' elements+=DefineUseRef)* ';';
@Override public ParserRule getRule() { return rule; }
//'defines' elements+=DefineUseRef (',' elements+=DefineUseRef)* ';'
public Group getGroup() { return cGroup; }
//'defines'
public Keyword getDefinesKeyword_0() { return cDefinesKeyword_0; }
//elements+=DefineUseRef
public Assignment getElementsAssignment_1() { return cElementsAssignment_1; }
//DefineUseRef
public RuleCall getElementsDefineUseRefParserRuleCall_1_0() { return cElementsDefineUseRefParserRuleCall_1_0; }
//(',' elements+=DefineUseRef)*
public Group getGroup_2() { return cGroup_2; }
//','
public Keyword getCommaKeyword_2_0() { return cCommaKeyword_2_0; }
//elements+=DefineUseRef
public Assignment getElementsAssignment_2_1() { return cElementsAssignment_2_1; }
//DefineUseRef
public RuleCall getElementsDefineUseRefParserRuleCall_2_1_0() { return cElementsDefineUseRefParserRuleCall_2_1_0; }
//';'
public Keyword getSemicolonKeyword_3() { return cSemicolonKeyword_3; }
}
public class UsesElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.Uses");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cUsesKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Assignment cElementsAssignment_1 = (Assignment)cGroup.eContents().get(1);
private final RuleCall cElementsDefineUseRefParserRuleCall_1_0 = (RuleCall)cElementsAssignment_1.eContents().get(0);
private final Group cGroup_2 = (Group)cGroup.eContents().get(2);
private final Keyword cCommaKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0);
private final Assignment cElementsAssignment_2_1 = (Assignment)cGroup_2.eContents().get(1);
private final RuleCall cElementsDefineUseRefParserRuleCall_2_1_0 = (RuleCall)cElementsAssignment_2_1.eContents().get(0);
private final Keyword cSemicolonKeyword_3 = (Keyword)cGroup.eContents().get(3);
//Uses:
// 'uses' elements+=DefineUseRef (',' elements+=DefineUseRef)* ';';
@Override public ParserRule getRule() { return rule; }
//'uses' elements+=DefineUseRef (',' elements+=DefineUseRef)* ';'
public Group getGroup() { return cGroup; }
//'uses'
public Keyword getUsesKeyword_0() { return cUsesKeyword_0; }
//elements+=DefineUseRef
public Assignment getElementsAssignment_1() { return cElementsAssignment_1; }
//DefineUseRef
public RuleCall getElementsDefineUseRefParserRuleCall_1_0() { return cElementsDefineUseRefParserRuleCall_1_0; }
//(',' elements+=DefineUseRef)*
public Group getGroup_2() { return cGroup_2; }
//','
public Keyword getCommaKeyword_2_0() { return cCommaKeyword_2_0; }
//elements+=DefineUseRef
public Assignment getElementsAssignment_2_1() { return cElementsAssignment_2_1; }
//DefineUseRef
public RuleCall getElementsDefineUseRefParserRuleCall_2_1_0() { return cElementsDefineUseRefParserRuleCall_2_1_0; }
//';'
public Keyword getSemicolonKeyword_3() { return cSemicolonKeyword_3; }
}
public class StatementBlockElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.StatementBlock");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Action cStatementBlockAction_0 = (Action)cGroup.eContents().get(0);
private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Assignment cStatementsAssignment_2 = (Assignment)cGroup.eContents().get(2);
private final RuleCall cStatementsStatementParserRuleCall_2_0 = (RuleCall)cStatementsAssignment_2.eContents().get(0);
private final Keyword cRightCurlyBracketKeyword_3 = (Keyword)cGroup.eContents().get(3);
//StatementBlock:
// {StatementBlock} '{' statements+=Statement* '}';
@Override public ParserRule getRule() { return rule; }
//{StatementBlock} '{' statements+=Statement* '}'
public Group getGroup() { return cGroup; }
//{StatementBlock}
public Action getStatementBlockAction_0() { return cStatementBlockAction_0; }
//'{'
public Keyword getLeftCurlyBracketKeyword_1() { return cLeftCurlyBracketKeyword_1; }
//statements+=Statement*
public Assignment getStatementsAssignment_2() { return cStatementsAssignment_2; }
//Statement
public RuleCall getStatementsStatementParserRuleCall_2_0() { return cStatementsStatementParserRuleCall_2_0; }
//'}'
public Keyword getRightCurlyBracketKeyword_3() { return cRightCurlyBracketKeyword_3; }
}
public class StatementElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.Statement");
private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
private final RuleCall cVoidStatementParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
private final RuleCall cAssignmentStatementParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
private final RuleCall cIfThenElseStatementParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
private final RuleCall cWhileStatementParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3);
private final RuleCall cForStatementParserRuleCall_4 = (RuleCall)cAlternatives.eContents().get(4);
private final RuleCall cGotoStatementParserRuleCall_5 = (RuleCall)cAlternatives.eContents().get(5);
private final RuleCall cLabelStatementParserRuleCall_6 = (RuleCall)cAlternatives.eContents().get(6);
private final Group cGroup_7 = (Group)cAlternatives.eContents().get(7);
private final Action cBreakStatementAction_7_0 = (Action)cGroup_7.eContents().get(0);
private final Keyword cBreakKeyword_7_1 = (Keyword)cGroup_7.eContents().get(1);
private final Keyword cSemicolonKeyword_7_2 = (Keyword)cGroup_7.eContents().get(2);
private final Group cGroup_8 = (Group)cAlternatives.eContents().get(8);
private final Action cContinueStatementAction_8_0 = (Action)cGroup_8.eContents().get(0);
private final Keyword cContinueKeyword_8_1 = (Keyword)cGroup_8.eContents().get(1);
private final Keyword cSemicolonKeyword_8_2 = (Keyword)cGroup_8.eContents().get(2);
private final Group cGroup_9 = (Group)cAlternatives.eContents().get(9);
private final Action cReturnStatementAction_9_0 = (Action)cGroup_9.eContents().get(0);
private final Keyword cReturnKeyword_9_1 = (Keyword)cGroup_9.eContents().get(1);
private final Keyword cSemicolonKeyword_9_2 = (Keyword)cGroup_9.eContents().get(2);
//Statement:
// VoidStatement
// | AssignmentStatement
// | IfThenElseStatement
// | WhileStatement
// | ForStatement
// | GotoStatement
// | LabelStatement
// | {BreakStatement} 'break' ';'
// | {ContinueStatement} 'continue' ';'
// | {ReturnStatement} 'return' ';';
@Override public ParserRule getRule() { return rule; }
//VoidStatement | AssignmentStatement | IfThenElseStatement | WhileStatement | ForStatement | GotoStatement |
//LabelStatement | {BreakStatement} 'break' ';' | {ContinueStatement} 'continue' ';' | {ReturnStatement} 'return' ';'
public Alternatives getAlternatives() { return cAlternatives; }
//VoidStatement
public RuleCall getVoidStatementParserRuleCall_0() { return cVoidStatementParserRuleCall_0; }
//AssignmentStatement
public RuleCall getAssignmentStatementParserRuleCall_1() { return cAssignmentStatementParserRuleCall_1; }
//IfThenElseStatement
public RuleCall getIfThenElseStatementParserRuleCall_2() { return cIfThenElseStatementParserRuleCall_2; }
//WhileStatement
public RuleCall getWhileStatementParserRuleCall_3() { return cWhileStatementParserRuleCall_3; }
//ForStatement
public RuleCall getForStatementParserRuleCall_4() { return cForStatementParserRuleCall_4; }
//GotoStatement
public RuleCall getGotoStatementParserRuleCall_5() { return cGotoStatementParserRuleCall_5; }
//LabelStatement
public RuleCall getLabelStatementParserRuleCall_6() { return cLabelStatementParserRuleCall_6; }
//{BreakStatement} 'break' ';'
public Group getGroup_7() { return cGroup_7; }
//{BreakStatement}
public Action getBreakStatementAction_7_0() { return cBreakStatementAction_7_0; }
//'break'
public Keyword getBreakKeyword_7_1() { return cBreakKeyword_7_1; }
//';'
public Keyword getSemicolonKeyword_7_2() { return cSemicolonKeyword_7_2; }
//{ContinueStatement} 'continue' ';'
public Group getGroup_8() { return cGroup_8; }
//{ContinueStatement}
public Action getContinueStatementAction_8_0() { return cContinueStatementAction_8_0; }
//'continue'
public Keyword getContinueKeyword_8_1() { return cContinueKeyword_8_1; }
//';'
public Keyword getSemicolonKeyword_8_2() { return cSemicolonKeyword_8_2; }
//{ReturnStatement} 'return' ';'
public Group getGroup_9() { return cGroup_9; }
//{ReturnStatement}
public Action getReturnStatementAction_9_0() { return cReturnStatementAction_9_0; }
//'return'
public Keyword getReturnKeyword_9_1() { return cReturnKeyword_9_1; }
//';'
public Keyword getSemicolonKeyword_9_2() { return cSemicolonKeyword_9_2; }
}
public class VoidStatementElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.VoidStatement");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Assignment cExprAssignment_0 = (Assignment)cGroup.eContents().get(0);
private final RuleCall cExprExprParserRuleCall_0_0 = (RuleCall)cExprAssignment_0.eContents().get(0);
private final Keyword cSemicolonKeyword_1 = (Keyword)cGroup.eContents().get(1);
//VoidStatement:
// expr=Expr ';';
@Override public ParserRule getRule() { return rule; }
//expr=Expr ';'
public Group getGroup() { return cGroup; }
//expr=Expr
public Assignment getExprAssignment_0() { return cExprAssignment_0; }
//Expr
public RuleCall getExprExprParserRuleCall_0_0() { return cExprExprParserRuleCall_0_0; }
//';'
public Keyword getSemicolonKeyword_1() { return cSemicolonKeyword_1; }
}
public class AssignmentStatementElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.AssignmentStatement");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Assignment cIdsAssignment_0 = (Assignment)cGroup.eContents().get(0);
private final RuleCall cIdsIdListParserRuleCall_0_0 = (RuleCall)cIdsAssignment_0.eContents().get(0);
private final Keyword cEqualsSignKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Assignment cRhsAssignment_2 = (Assignment)cGroup.eContents().get(2);
private final RuleCall cRhsExprParserRuleCall_2_0 = (RuleCall)cRhsAssignment_2.eContents().get(0);
private final Keyword cSemicolonKeyword_3 = (Keyword)cGroup.eContents().get(3);
//AssignmentStatement:
// ids=IdList '=' rhs=Expr ';';
@Override public ParserRule getRule() { return rule; }
//ids=IdList '=' rhs=Expr ';'
public Group getGroup() { return cGroup; }
//ids=IdList
public Assignment getIdsAssignment_0() { return cIdsAssignment_0; }
//IdList
public RuleCall getIdsIdListParserRuleCall_0_0() { return cIdsIdListParserRuleCall_0_0; }
//'='
public Keyword getEqualsSignKeyword_1() { return cEqualsSignKeyword_1; }
//rhs=Expr
public Assignment getRhsAssignment_2() { return cRhsAssignment_2; }
//Expr
public RuleCall getRhsExprParserRuleCall_2_0() { return cRhsExprParserRuleCall_2_0; }
//';'
public Keyword getSemicolonKeyword_3() { return cSemicolonKeyword_3; }
}
public class IfThenElseStatementElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.IfThenElseStatement");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cIfKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Assignment cCondAssignment_1 = (Assignment)cGroup.eContents().get(1);
private final RuleCall cCondExprParserRuleCall_1_0 = (RuleCall)cCondAssignment_1.eContents().get(0);
private final Keyword cThenKeyword_2 = (Keyword)cGroup.eContents().get(2);
private final Assignment cThenBlockAssignment_3 = (Assignment)cGroup.eContents().get(3);
private final RuleCall cThenBlockStatementBlockParserRuleCall_3_0 = (RuleCall)cThenBlockAssignment_3.eContents().get(0);
private final Assignment cElseAssignment_4 = (Assignment)cGroup.eContents().get(4);
private final RuleCall cElseElseParserRuleCall_4_0 = (RuleCall)cElseAssignment_4.eContents().get(0);
//IfThenElseStatement:
// 'if' cond=Expr 'then' thenBlock=StatementBlock else=Else;
@Override public ParserRule getRule() { return rule; }
//'if' cond=Expr 'then' thenBlock=StatementBlock else=Else
public Group getGroup() { return cGroup; }
//'if'
public Keyword getIfKeyword_0() { return cIfKeyword_0; }
//cond=Expr
public Assignment getCondAssignment_1() { return cCondAssignment_1; }
//Expr
public RuleCall getCondExprParserRuleCall_1_0() { return cCondExprParserRuleCall_1_0; }
//'then'
public Keyword getThenKeyword_2() { return cThenKeyword_2; }
//thenBlock=StatementBlock
public Assignment getThenBlockAssignment_3() { return cThenBlockAssignment_3; }
//StatementBlock
public RuleCall getThenBlockStatementBlockParserRuleCall_3_0() { return cThenBlockStatementBlockParserRuleCall_3_0; }
//else=Else
public Assignment getElseAssignment_4() { return cElseAssignment_4; }
//Else
public RuleCall getElseElseParserRuleCall_4_0() { return cElseElseParserRuleCall_4_0; }
}
public class ElseElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.Else");
private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
private final Group cGroup_0 = (Group)cAlternatives.eContents().get(0);
private final Action cElseBlockAction_0_0 = (Action)cGroup_0.eContents().get(0);
private final Keyword cElseKeyword_0_1 = (Keyword)cGroup_0.eContents().get(1);
private final Assignment cBlockAssignment_0_2 = (Assignment)cGroup_0.eContents().get(2);
private final RuleCall cBlockStatementBlockParserRuleCall_0_2_0 = (RuleCall)cBlockAssignment_0_2.eContents().get(0);
private final Group cGroup_1 = (Group)cAlternatives.eContents().get(1);
private final Action cElseIfAction_1_0 = (Action)cGroup_1.eContents().get(0);
private final Keyword cElseKeyword_1_1 = (Keyword)cGroup_1.eContents().get(1);
private final Assignment cIfThenElseAssignment_1_2 = (Assignment)cGroup_1.eContents().get(2);
private final RuleCall cIfThenElseIfThenElseStatementParserRuleCall_1_2_0 = (RuleCall)cIfThenElseAssignment_1_2.eContents().get(0);
private final Action cNoElseAction_2 = (Action)cAlternatives.eContents().get(2);
//Else:
// {ElseBlock} 'else' block=StatementBlock | {ElseIf} 'else' ifThenElse=IfThenElseStatement | {NoElse};
@Override public ParserRule getRule() { return rule; }
//{ElseBlock} 'else' block=StatementBlock | {ElseIf} 'else' ifThenElse=IfThenElseStatement | {NoElse}
public Alternatives getAlternatives() { return cAlternatives; }
//{ElseBlock} 'else' block=StatementBlock
public Group getGroup_0() { return cGroup_0; }
//{ElseBlock}
public Action getElseBlockAction_0_0() { return cElseBlockAction_0_0; }
//'else'
public Keyword getElseKeyword_0_1() { return cElseKeyword_0_1; }
//block=StatementBlock
public Assignment getBlockAssignment_0_2() { return cBlockAssignment_0_2; }
//StatementBlock
public RuleCall getBlockStatementBlockParserRuleCall_0_2_0() { return cBlockStatementBlockParserRuleCall_0_2_0; }
//{ElseIf} 'else' ifThenElse=IfThenElseStatement
public Group getGroup_1() { return cGroup_1; }
//{ElseIf}
public Action getElseIfAction_1_0() { return cElseIfAction_1_0; }
//'else'
public Keyword getElseKeyword_1_1() { return cElseKeyword_1_1; }
//ifThenElse=IfThenElseStatement
public Assignment getIfThenElseAssignment_1_2() { return cIfThenElseAssignment_1_2; }
//IfThenElseStatement
public RuleCall getIfThenElseIfThenElseStatementParserRuleCall_1_2_0() { return cIfThenElseIfThenElseStatementParserRuleCall_1_2_0; }
//{NoElse}
public Action getNoElseAction_2() { return cNoElseAction_2; }
}
public class WhileStatementElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.WhileStatement");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cWhileKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Assignment cCondAssignment_1 = (Assignment)cGroup.eContents().get(1);
private final RuleCall cCondExprParserRuleCall_1_0 = (RuleCall)cCondAssignment_1.eContents().get(0);
private final Assignment cBlockAssignment_2 = (Assignment)cGroup.eContents().get(2);
private final RuleCall cBlockStatementBlockParserRuleCall_2_0 = (RuleCall)cBlockAssignment_2.eContents().get(0);
//WhileStatement:
// 'while' cond=Expr block=StatementBlock;
@Override public ParserRule getRule() { return rule; }
//'while' cond=Expr block=StatementBlock
public Group getGroup() { return cGroup; }
//'while'
public Keyword getWhileKeyword_0() { return cWhileKeyword_0; }
//cond=Expr
public Assignment getCondAssignment_1() { return cCondAssignment_1; }
//Expr
public RuleCall getCondExprParserRuleCall_1_0() { return cCondExprParserRuleCall_1_0; }
//block=StatementBlock
public Assignment getBlockAssignment_2() { return cBlockAssignment_2; }
//StatementBlock
public RuleCall getBlockStatementBlockParserRuleCall_2_0() { return cBlockStatementBlockParserRuleCall_2_0; }
}
public class ForStatementElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.ForStatement");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cForKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Keyword cLeftParenthesisKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Assignment cInitStatementAssignment_2 = (Assignment)cGroup.eContents().get(2);
private final RuleCall cInitStatementAssignmentStatementParserRuleCall_2_0 = (RuleCall)cInitStatementAssignment_2.eContents().get(0);
private final Assignment cLimitExprAssignment_3 = (Assignment)cGroup.eContents().get(3);
private final RuleCall cLimitExprExprParserRuleCall_3_0 = (RuleCall)cLimitExprAssignment_3.eContents().get(0);
private final Keyword cSemicolonKeyword_4 = (Keyword)cGroup.eContents().get(4);
private final Assignment cIncrementStatementAssignment_5 = (Assignment)cGroup.eContents().get(5);
private final RuleCall cIncrementStatementAssignmentStatementParserRuleCall_5_0 = (RuleCall)cIncrementStatementAssignment_5.eContents().get(0);
private final Keyword cRightParenthesisKeyword_6 = (Keyword)cGroup.eContents().get(6);
private final Assignment cBlockAssignment_7 = (Assignment)cGroup.eContents().get(7);
private final RuleCall cBlockStatementBlockParserRuleCall_7_0 = (RuleCall)cBlockAssignment_7.eContents().get(0);
//ForStatement:
// 'for' '(' initStatement=AssignmentStatement limitExpr=Expr ';' incrementStatement=AssignmentStatement ')'
// block=StatementBlock;
@Override public ParserRule getRule() { return rule; }
//'for' '(' initStatement=AssignmentStatement limitExpr=Expr ';' incrementStatement=AssignmentStatement ')'
//block=StatementBlock
public Group getGroup() { return cGroup; }
//'for'
public Keyword getForKeyword_0() { return cForKeyword_0; }
//'('
public Keyword getLeftParenthesisKeyword_1() { return cLeftParenthesisKeyword_1; }
//initStatement=AssignmentStatement
public Assignment getInitStatementAssignment_2() { return cInitStatementAssignment_2; }
//AssignmentStatement
public RuleCall getInitStatementAssignmentStatementParserRuleCall_2_0() { return cInitStatementAssignmentStatementParserRuleCall_2_0; }
//limitExpr=Expr
public Assignment getLimitExprAssignment_3() { return cLimitExprAssignment_3; }
//Expr
public RuleCall getLimitExprExprParserRuleCall_3_0() { return cLimitExprExprParserRuleCall_3_0; }
//';'
public Keyword getSemicolonKeyword_4() { return cSemicolonKeyword_4; }
//incrementStatement=AssignmentStatement
public Assignment getIncrementStatementAssignment_5() { return cIncrementStatementAssignment_5; }
//AssignmentStatement
public RuleCall getIncrementStatementAssignmentStatementParserRuleCall_5_0() { return cIncrementStatementAssignmentStatementParserRuleCall_5_0; }
//')'
public Keyword getRightParenthesisKeyword_6() { return cRightParenthesisKeyword_6; }
//block=StatementBlock
public Assignment getBlockAssignment_7() { return cBlockAssignment_7; }
//StatementBlock
public RuleCall getBlockStatementBlockParserRuleCall_7_0() { return cBlockStatementBlockParserRuleCall_7_0; }
}
public class LabelStatementElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.LabelStatement");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cLabelKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1);
private final RuleCall cNameIDTerminalRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
private final Keyword cSemicolonKeyword_2 = (Keyword)cGroup.eContents().get(2);
//LabelStatement:
// 'label' name=ID ';';
@Override public ParserRule getRule() { return rule; }
//'label' name=ID ';'
public Group getGroup() { return cGroup; }
//'label'
public Keyword getLabelKeyword_0() { return cLabelKeyword_0; }
//name=ID
public Assignment getNameAssignment_1() { return cNameAssignment_1; }
//ID
public RuleCall getNameIDTerminalRuleCall_1_0() { return cNameIDTerminalRuleCall_1_0; }
//';'
public Keyword getSemicolonKeyword_2() { return cSemicolonKeyword_2; }
}
public class GotoStatementElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.GotoStatement");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Action cGotoStatementAction_0 = (Action)cGroup.eContents().get(0);
private final Keyword cGotoKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Assignment cLabelAssignment_2 = (Assignment)cGroup.eContents().get(2);
private final CrossReference cLabelLabelStatementCrossReference_2_0 = (CrossReference)cLabelAssignment_2.eContents().get(0);
private final RuleCall cLabelLabelStatementIDTerminalRuleCall_2_0_1 = (RuleCall)cLabelLabelStatementCrossReference_2_0.eContents().get(1);
private final Group cGroup_3 = (Group)cGroup.eContents().get(3);
private final Keyword cWhenKeyword_3_0 = (Keyword)cGroup_3.eContents().get(0);
private final Assignment cWhenExprAssignment_3_1 = (Assignment)cGroup_3.eContents().get(1);
private final RuleCall cWhenExprExprParserRuleCall_3_1_0 = (RuleCall)cWhenExprAssignment_3_1.eContents().get(0);
private final Keyword cSemicolonKeyword_4 = (Keyword)cGroup.eContents().get(4);
//GotoStatement:
// {GotoStatement} 'goto' label=[LabelStatement] ('when' whenExpr=Expr)? ';';
@Override public ParserRule getRule() { return rule; }
//{GotoStatement} 'goto' label=[LabelStatement] ('when' whenExpr=Expr)? ';'
public Group getGroup() { return cGroup; }
//{GotoStatement}
public Action getGotoStatementAction_0() { return cGotoStatementAction_0; }
//'goto'
public Keyword getGotoKeyword_1() { return cGotoKeyword_1; }
//label=[LabelStatement]
public Assignment getLabelAssignment_2() { return cLabelAssignment_2; }
//[LabelStatement]
public CrossReference getLabelLabelStatementCrossReference_2_0() { return cLabelLabelStatementCrossReference_2_0; }
//ID
public RuleCall getLabelLabelStatementIDTerminalRuleCall_2_0_1() { return cLabelLabelStatementIDTerminalRuleCall_2_0_1; }
//('when' whenExpr=Expr)?
public Group getGroup_3() { return cGroup_3; }
//'when'
public Keyword getWhenKeyword_3_0() { return cWhenKeyword_3_0; }
//whenExpr=Expr
public Assignment getWhenExprAssignment_3_1() { return cWhenExprAssignment_3_1; }
//Expr
public RuleCall getWhenExprExprParserRuleCall_3_1_0() { return cWhenExprExprParserRuleCall_3_1_0; }
//';'
public Keyword getSemicolonKeyword_4() { return cSemicolonKeyword_4; }
}
public class EquationBlockElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.EquationBlock");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Action cEquationBlockAction_0 = (Action)cGroup.eContents().get(0);
private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Assignment cEquationsAssignment_2 = (Assignment)cGroup.eContents().get(2);
private final RuleCall cEquationsEquationParserRuleCall_2_0 = (RuleCall)cEquationsAssignment_2.eContents().get(0);
private final Keyword cRightCurlyBracketKeyword_3 = (Keyword)cGroup.eContents().get(3);
//EquationBlock:
// {EquationBlock} '{' equations+=Equation* '}';
@Override public ParserRule getRule() { return rule; }
//{EquationBlock} '{' equations+=Equation* '}'
public Group getGroup() { return cGroup; }
//{EquationBlock}
public Action getEquationBlockAction_0() { return cEquationBlockAction_0; }
//'{'
public Keyword getLeftCurlyBracketKeyword_1() { return cLeftCurlyBracketKeyword_1; }
//equations+=Equation*
public Assignment getEquationsAssignment_2() { return cEquationsAssignment_2; }
//Equation
public RuleCall getEquationsEquationParserRuleCall_2_0() { return cEquationsEquationParserRuleCall_2_0; }
//'}'
public Keyword getRightCurlyBracketKeyword_3() { return cRightCurlyBracketKeyword_3; }
}
public class EquationElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.Equation");
private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
private final RuleCall cVoidStatementParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
private final RuleCall cAssignmentStatementParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
//Equation:
// VoidStatement
// | AssignmentStatement;
@Override public ParserRule getRule() { return rule; }
//VoidStatement | AssignmentStatement
public Alternatives getAlternatives() { return cAlternatives; }
//VoidStatement
public RuleCall getVoidStatementParserRuleCall_0() { return cVoidStatementParserRuleCall_0; }
//AssignmentStatement
public RuleCall getAssignmentStatementParserRuleCall_1() { return cAssignmentStatementParserRuleCall_1; }
}
public class IdListElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.IdList");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Assignment cIdsAssignment_0 = (Assignment)cGroup.eContents().get(0);
private final CrossReference cIdsVariableRefCrossReference_0_0 = (CrossReference)cIdsAssignment_0.eContents().get(0);
private final RuleCall cIdsVariableRefIDTerminalRuleCall_0_0_1 = (RuleCall)cIdsVariableRefCrossReference_0_0.eContents().get(1);
private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
private final Keyword cCommaKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
private final Assignment cIdsAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
private final CrossReference cIdsVariableRefCrossReference_1_1_0 = (CrossReference)cIdsAssignment_1_1.eContents().get(0);
private final RuleCall cIdsVariableRefIDTerminalRuleCall_1_1_0_1 = (RuleCall)cIdsVariableRefCrossReference_1_1_0.eContents().get(1);
//IdList:
// ids+=[VariableRef] (',' ids+=[VariableRef])*;
@Override public ParserRule getRule() { return rule; }
//ids+=[VariableRef] (',' ids+=[VariableRef])*
public Group getGroup() { return cGroup; }
//ids+=[VariableRef]
public Assignment getIdsAssignment_0() { return cIdsAssignment_0; }
//[VariableRef]
public CrossReference getIdsVariableRefCrossReference_0_0() { return cIdsVariableRefCrossReference_0_0; }
//ID
public RuleCall getIdsVariableRefIDTerminalRuleCall_0_0_1() { return cIdsVariableRefIDTerminalRuleCall_0_0_1; }
//(',' ids+=[VariableRef])*
public Group getGroup_1() { return cGroup_1; }
//','
public Keyword getCommaKeyword_1_0() { return cCommaKeyword_1_0; }
//ids+=[VariableRef]
public Assignment getIdsAssignment_1_1() { return cIdsAssignment_1_1; }
//[VariableRef]
public CrossReference getIdsVariableRefCrossReference_1_1_0() { return cIdsVariableRefCrossReference_1_1_0; }
//ID
public RuleCall getIdsVariableRefIDTerminalRuleCall_1_1_0_1() { return cIdsVariableRefIDTerminalRuleCall_1_1_0_1; }
}
public class ExprElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.Expr");
private final RuleCall cIfThenElseExprParserRuleCall = (RuleCall)rule.eContents().get(1);
//Expr:
// IfThenElseExpr;
@Override public ParserRule getRule() { return rule; }
//IfThenElseExpr
public RuleCall getIfThenElseExprParserRuleCall() { return cIfThenElseExprParserRuleCall; }
}
public class IfThenElseExprElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.IfThenElseExpr");
private final Group cGroup = (Group)rule.eContents().get(1);
private final RuleCall cChoiceExprParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
private final Group cGroup_1_0 = (Group)cGroup_1.eContents().get(0);
private final Group cGroup_1_0_0 = (Group)cGroup_1_0.eContents().get(0);
private final Action cIfThenElseExprCondExprAction_1_0_0_0 = (Action)cGroup_1_0_0.eContents().get(0);
private final Keyword cQuestionMarkKeyword_1_0_0_1 = (Keyword)cGroup_1_0_0.eContents().get(1);
private final Assignment cThenExprAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
private final RuleCall cThenExprExprParserRuleCall_1_1_0 = (RuleCall)cThenExprAssignment_1_1.eContents().get(0);
private final Keyword cColonKeyword_1_2 = (Keyword)cGroup_1.eContents().get(2);
private final Assignment cElseExprAssignment_1_3 = (Assignment)cGroup_1.eContents().get(3);
private final RuleCall cElseExprExprParserRuleCall_1_3_0 = (RuleCall)cElseExprAssignment_1_3.eContents().get(0);
//IfThenElseExpr Expr:
// ChoiceExpr (=> ({IfThenElseExpr.condExpr=current} '?') thenExpr=Expr ':' elseExpr=Expr)?
@Override public ParserRule getRule() { return rule; }
//ChoiceExpr (=> ({IfThenElseExpr.condExpr=current} '?') thenExpr=Expr ':' elseExpr=Expr)?
public Group getGroup() { return cGroup; }
//ChoiceExpr
public RuleCall getChoiceExprParserRuleCall_0() { return cChoiceExprParserRuleCall_0; }
//(=> ({IfThenElseExpr.condExpr=current} '?') thenExpr=Expr ':' elseExpr=Expr)?
public Group getGroup_1() { return cGroup_1; }
//=> ({IfThenElseExpr.condExpr=current} '?')
public Group getGroup_1_0() { return cGroup_1_0; }
//({IfThenElseExpr.condExpr=current} '?')
public Group getGroup_1_0_0() { return cGroup_1_0_0; }
//{IfThenElseExpr.condExpr=current}
public Action getIfThenElseExprCondExprAction_1_0_0_0() { return cIfThenElseExprCondExprAction_1_0_0_0; }
//'?'
public Keyword getQuestionMarkKeyword_1_0_0_1() { return cQuestionMarkKeyword_1_0_0_1; }
//thenExpr=Expr
public Assignment getThenExprAssignment_1_1() { return cThenExprAssignment_1_1; }
//Expr
public RuleCall getThenExprExprParserRuleCall_1_1_0() { return cThenExprExprParserRuleCall_1_1_0; }
//':'
public Keyword getColonKeyword_1_2() { return cColonKeyword_1_2; }
//elseExpr=Expr
public Assignment getElseExprAssignment_1_3() { return cElseExprAssignment_1_3; }
//Expr
public RuleCall getElseExprExprParserRuleCall_1_3_0() { return cElseExprExprParserRuleCall_1_3_0; }
}
public class ChoiceExprElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.ChoiceExpr");
private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
private final Group cGroup_0 = (Group)cAlternatives.eContents().get(0);
private final Action cChoiceExprAction_0_0 = (Action)cGroup_0.eContents().get(0);
private final Keyword cChoiceKeyword_0_1 = (Keyword)cGroup_0.eContents().get(1);
private final Keyword cLeftParenthesisKeyword_0_2 = (Keyword)cGroup_0.eContents().get(2);
private final Assignment cFirstAssignment_0_3 = (Assignment)cGroup_0.eContents().get(3);
private final RuleCall cFirstExprParserRuleCall_0_3_0 = (RuleCall)cFirstAssignment_0_3.eContents().get(0);
private final Keyword cCommaKeyword_0_4 = (Keyword)cGroup_0.eContents().get(4);
private final Assignment cSecondAssignment_0_5 = (Assignment)cGroup_0.eContents().get(5);
private final RuleCall cSecondExprParserRuleCall_0_5_0 = (RuleCall)cSecondAssignment_0_5.eContents().get(0);
private final Keyword cRightParenthesisKeyword_0_6 = (Keyword)cGroup_0.eContents().get(6);
private final RuleCall cImpliesExprParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
//ChoiceExpr Expr:
// {ChoiceExpr} 'choice' '(' first=Expr ',' second=Expr ')' //analysis cannot be run if a spec contains this
// | ImpliesExpr
@Override public ParserRule getRule() { return rule; }
//{ChoiceExpr} 'choice' '(' first=Expr ',' second=Expr ')' //analysis cannot be run if a spec contains this
//| ImpliesExpr
public Alternatives getAlternatives() { return cAlternatives; }
//{ChoiceExpr} 'choice' '(' first=Expr ',' second=Expr ')'
public Group getGroup_0() { return cGroup_0; }
//{ChoiceExpr}
public Action getChoiceExprAction_0_0() { return cChoiceExprAction_0_0; }
//'choice'
public Keyword getChoiceKeyword_0_1() { return cChoiceKeyword_0_1; }
//'('
public Keyword getLeftParenthesisKeyword_0_2() { return cLeftParenthesisKeyword_0_2; }
//first=Expr
public Assignment getFirstAssignment_0_3() { return cFirstAssignment_0_3; }
//Expr
public RuleCall getFirstExprParserRuleCall_0_3_0() { return cFirstExprParserRuleCall_0_3_0; }
//','
public Keyword getCommaKeyword_0_4() { return cCommaKeyword_0_4; }
//second=Expr
public Assignment getSecondAssignment_0_5() { return cSecondAssignment_0_5; }
//Expr
public RuleCall getSecondExprParserRuleCall_0_5_0() { return cSecondExprParserRuleCall_0_5_0; }
//')'
public Keyword getRightParenthesisKeyword_0_6() { return cRightParenthesisKeyword_0_6; }
//ImpliesExpr
public RuleCall getImpliesExprParserRuleCall_1() { return cImpliesExprParserRuleCall_1; }
}
public class ImpliesExprElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.ImpliesExpr");
private final Group cGroup = (Group)rule.eContents().get(1);
private final RuleCall cOrExprParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
private final Group cGroup_1_0 = (Group)cGroup_1.eContents().get(0);
private final Group cGroup_1_0_0 = (Group)cGroup_1_0.eContents().get(0);
private final Action cBinaryExprLeftAction_1_0_0_0 = (Action)cGroup_1_0_0.eContents().get(0);
private final Assignment cOpAssignment_1_0_0_1 = (Assignment)cGroup_1_0_0.eContents().get(1);
private final Keyword cOpEqualsSignGreaterThanSignKeyword_1_0_0_1_0 = (Keyword)cOpAssignment_1_0_0_1.eContents().get(0);
private final Assignment cRightAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
private final RuleCall cRightImpliesExprParserRuleCall_1_1_0 = (RuleCall)cRightAssignment_1_1.eContents().get(0);
//ImpliesExpr Expr:
// OrExpr (=> ({BinaryExpr.left=current} op='=>') right=ImpliesExpr)?
@Override public ParserRule getRule() { return rule; }
//OrExpr (=> ({BinaryExpr.left=current} op='=>') right=ImpliesExpr)?
public Group getGroup() { return cGroup; }
//OrExpr
public RuleCall getOrExprParserRuleCall_0() { return cOrExprParserRuleCall_0; }
//(=> ({BinaryExpr.left=current} op='=>') right=ImpliesExpr)?
public Group getGroup_1() { return cGroup_1; }
//=> ({BinaryExpr.left=current} op='=>')
public Group getGroup_1_0() { return cGroup_1_0; }
//({BinaryExpr.left=current} op='=>')
public Group getGroup_1_0_0() { return cGroup_1_0_0; }
//{BinaryExpr.left=current}
public Action getBinaryExprLeftAction_1_0_0_0() { return cBinaryExprLeftAction_1_0_0_0; }
//op='=>'
public Assignment getOpAssignment_1_0_0_1() { return cOpAssignment_1_0_0_1; }
//'=>'
public Keyword getOpEqualsSignGreaterThanSignKeyword_1_0_0_1_0() { return cOpEqualsSignGreaterThanSignKeyword_1_0_0_1_0; }
//right=ImpliesExpr
public Assignment getRightAssignment_1_1() { return cRightAssignment_1_1; }
//ImpliesExpr
public RuleCall getRightImpliesExprParserRuleCall_1_1_0() { return cRightImpliesExprParserRuleCall_1_1_0; }
}
public class OrExprElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.OrExpr");
private final Group cGroup = (Group)rule.eContents().get(1);
private final RuleCall cAndExprParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
private final Group cGroup_1_0 = (Group)cGroup_1.eContents().get(0);
private final Group cGroup_1_0_0 = (Group)cGroup_1_0.eContents().get(0);
private final Action cBinaryExprLeftAction_1_0_0_0 = (Action)cGroup_1_0_0.eContents().get(0);
private final Assignment cOpAssignment_1_0_0_1 = (Assignment)cGroup_1_0_0.eContents().get(1);
private final Keyword cOpOrKeyword_1_0_0_1_0 = (Keyword)cOpAssignment_1_0_0_1.eContents().get(0);
private final Assignment cRightAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
private final RuleCall cRightAndExprParserRuleCall_1_1_0 = (RuleCall)cRightAssignment_1_1.eContents().get(0);
//OrExpr Expr:
// AndExpr (=> ({BinaryExpr.left=current} op='or') right=AndExpr)*
@Override public ParserRule getRule() { return rule; }
//AndExpr (=> ({BinaryExpr.left=current} op='or') right=AndExpr)*
public Group getGroup() { return cGroup; }
//AndExpr
public RuleCall getAndExprParserRuleCall_0() { return cAndExprParserRuleCall_0; }
//(=> ({BinaryExpr.left=current} op='or') right=AndExpr)*
public Group getGroup_1() { return cGroup_1; }
//=> ({BinaryExpr.left=current} op='or')
public Group getGroup_1_0() { return cGroup_1_0; }
//({BinaryExpr.left=current} op='or')
public Group getGroup_1_0_0() { return cGroup_1_0_0; }
//{BinaryExpr.left=current}
public Action getBinaryExprLeftAction_1_0_0_0() { return cBinaryExprLeftAction_1_0_0_0; }
//op='or'
public Assignment getOpAssignment_1_0_0_1() { return cOpAssignment_1_0_0_1; }
//'or'
public Keyword getOpOrKeyword_1_0_0_1_0() { return cOpOrKeyword_1_0_0_1_0; }
//right=AndExpr
public Assignment getRightAssignment_1_1() { return cRightAssignment_1_1; }
//AndExpr
public RuleCall getRightAndExprParserRuleCall_1_1_0() { return cRightAndExprParserRuleCall_1_1_0; }
}
public class AndExprElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.AndExpr");
private final Group cGroup = (Group)rule.eContents().get(1);
private final RuleCall cRelationalExprParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
private final Group cGroup_1_0 = (Group)cGroup_1.eContents().get(0);
private final Group cGroup_1_0_0 = (Group)cGroup_1_0.eContents().get(0);
private final Action cBinaryExprLeftAction_1_0_0_0 = (Action)cGroup_1_0_0.eContents().get(0);
private final Assignment cOpAssignment_1_0_0_1 = (Assignment)cGroup_1_0_0.eContents().get(1);
private final Keyword cOpAndKeyword_1_0_0_1_0 = (Keyword)cOpAssignment_1_0_0_1.eContents().get(0);
private final Assignment cRightAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
private final RuleCall cRightRelationalExprParserRuleCall_1_1_0 = (RuleCall)cRightAssignment_1_1.eContents().get(0);
//AndExpr Expr:
// RelationalExpr (=> ({BinaryExpr.left=current} op='and') right=RelationalExpr)*
@Override public ParserRule getRule() { return rule; }
//RelationalExpr (=> ({BinaryExpr.left=current} op='and') right=RelationalExpr)*
public Group getGroup() { return cGroup; }
//RelationalExpr
public RuleCall getRelationalExprParserRuleCall_0() { return cRelationalExprParserRuleCall_0; }
//(=> ({BinaryExpr.left=current} op='and') right=RelationalExpr)*
public Group getGroup_1() { return cGroup_1; }
//=> ({BinaryExpr.left=current} op='and')
public Group getGroup_1_0() { return cGroup_1_0; }
//({BinaryExpr.left=current} op='and')
public Group getGroup_1_0_0() { return cGroup_1_0_0; }
//{BinaryExpr.left=current}
public Action getBinaryExprLeftAction_1_0_0_0() { return cBinaryExprLeftAction_1_0_0_0; }
//op='and'
public Assignment getOpAssignment_1_0_0_1() { return cOpAssignment_1_0_0_1; }
//'and'
public Keyword getOpAndKeyword_1_0_0_1_0() { return cOpAndKeyword_1_0_0_1_0; }
//right=RelationalExpr
public Assignment getRightAssignment_1_1() { return cRightAssignment_1_1; }
//RelationalExpr
public RuleCall getRightRelationalExprParserRuleCall_1_1_0() { return cRightRelationalExprParserRuleCall_1_1_0; }
}
public class RelationalOpElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.RelationalOp");
private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
private final Keyword cLessThanSignKeyword_0 = (Keyword)cAlternatives.eContents().get(0);
private final Keyword cLessThanSignEqualsSignKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
private final Keyword cGreaterThanSignKeyword_2 = (Keyword)cAlternatives.eContents().get(2);
private final Keyword cGreaterThanSignEqualsSignKeyword_3 = (Keyword)cAlternatives.eContents().get(3);
private final Keyword cEqualsSignEqualsSignKeyword_4 = (Keyword)cAlternatives.eContents().get(4);
private final Keyword cLessThanSignGreaterThanSignKeyword_5 = (Keyword)cAlternatives.eContents().get(5);
//RelationalOp:
// '<' | '<=' | '>' | '>=' | '==' | '<>';
@Override public ParserRule getRule() { return rule; }
//'<' | '<=' | '>' | '>=' | '==' | '<>'
public Alternatives getAlternatives() { return cAlternatives; }
//'<'
public Keyword getLessThanSignKeyword_0() { return cLessThanSignKeyword_0; }
//'<='
public Keyword getLessThanSignEqualsSignKeyword_1() { return cLessThanSignEqualsSignKeyword_1; }
//'>'
public Keyword getGreaterThanSignKeyword_2() { return cGreaterThanSignKeyword_2; }
//'>='
public Keyword getGreaterThanSignEqualsSignKeyword_3() { return cGreaterThanSignEqualsSignKeyword_3; }
//'=='
public Keyword getEqualsSignEqualsSignKeyword_4() { return cEqualsSignEqualsSignKeyword_4; }
//'<>'
public Keyword getLessThanSignGreaterThanSignKeyword_5() { return cLessThanSignGreaterThanSignKeyword_5; }
}
public class RelationalExprElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.RelationalExpr");
private final Group cGroup = (Group)rule.eContents().get(1);
private final RuleCall cPlusExprParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
private final Group cGroup_1_0 = (Group)cGroup_1.eContents().get(0);
private final Group cGroup_1_0_0 = (Group)cGroup_1_0.eContents().get(0);
private final Action cBinaryExprLeftAction_1_0_0_0 = (Action)cGroup_1_0_0.eContents().get(0);
private final Assignment cOpAssignment_1_0_0_1 = (Assignment)cGroup_1_0_0.eContents().get(1);
private final RuleCall cOpRelationalOpParserRuleCall_1_0_0_1_0 = (RuleCall)cOpAssignment_1_0_0_1.eContents().get(0);
private final Assignment cRightAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
private final RuleCall cRightPlusExprParserRuleCall_1_1_0 = (RuleCall)cRightAssignment_1_1.eContents().get(0);
//RelationalExpr Expr:
// PlusExpr (=> ({BinaryExpr.left=current} op=RelationalOp) right=PlusExpr)?
@Override public ParserRule getRule() { return rule; }
//PlusExpr (=> ({BinaryExpr.left=current} op=RelationalOp) right=PlusExpr)?
public Group getGroup() { return cGroup; }
//PlusExpr
public RuleCall getPlusExprParserRuleCall_0() { return cPlusExprParserRuleCall_0; }
//(=> ({BinaryExpr.left=current} op=RelationalOp) right=PlusExpr)?
public Group getGroup_1() { return cGroup_1; }
//=> ({BinaryExpr.left=current} op=RelationalOp)
public Group getGroup_1_0() { return cGroup_1_0; }
//({BinaryExpr.left=current} op=RelationalOp)
public Group getGroup_1_0_0() { return cGroup_1_0_0; }
//{BinaryExpr.left=current}
public Action getBinaryExprLeftAction_1_0_0_0() { return cBinaryExprLeftAction_1_0_0_0; }
//op=RelationalOp
public Assignment getOpAssignment_1_0_0_1() { return cOpAssignment_1_0_0_1; }
//RelationalOp
public RuleCall getOpRelationalOpParserRuleCall_1_0_0_1_0() { return cOpRelationalOpParserRuleCall_1_0_0_1_0; }
//right=PlusExpr
public Assignment getRightAssignment_1_1() { return cRightAssignment_1_1; }
//PlusExpr
public RuleCall getRightPlusExprParserRuleCall_1_1_0() { return cRightPlusExprParserRuleCall_1_1_0; }
}
public class PlusExprElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.PlusExpr");
private final Group cGroup = (Group)rule.eContents().get(1);
private final RuleCall cMultExprParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
private final Group cGroup_1_0 = (Group)cGroup_1.eContents().get(0);
private final Group cGroup_1_0_0 = (Group)cGroup_1_0.eContents().get(0);
private final Action cBinaryExprLeftAction_1_0_0_0 = (Action)cGroup_1_0_0.eContents().get(0);
private final Assignment cOpAssignment_1_0_0_1 = (Assignment)cGroup_1_0_0.eContents().get(1);
private final Alternatives cOpAlternatives_1_0_0_1_0 = (Alternatives)cOpAssignment_1_0_0_1.eContents().get(0);
private final Keyword cOpPlusSignKeyword_1_0_0_1_0_0 = (Keyword)cOpAlternatives_1_0_0_1_0.eContents().get(0);
private final Keyword cOpHyphenMinusKeyword_1_0_0_1_0_1 = (Keyword)cOpAlternatives_1_0_0_1_0.eContents().get(1);
private final Assignment cRightAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
private final RuleCall cRightMultExprParserRuleCall_1_1_0 = (RuleCall)cRightAssignment_1_1.eContents().get(0);
//PlusExpr Expr:
// MultExpr (=> ({BinaryExpr.left=current} op=('+' | '-')) right=MultExpr)*
@Override public ParserRule getRule() { return rule; }
//MultExpr (=> ({BinaryExpr.left=current} op=('+' | '-')) right=MultExpr)*
public Group getGroup() { return cGroup; }
//MultExpr
public RuleCall getMultExprParserRuleCall_0() { return cMultExprParserRuleCall_0; }
//(=> ({BinaryExpr.left=current} op=('+' | '-')) right=MultExpr)*
public Group getGroup_1() { return cGroup_1; }
//=> ({BinaryExpr.left=current} op=('+' | '-'))
public Group getGroup_1_0() { return cGroup_1_0; }
//({BinaryExpr.left=current} op=('+' | '-'))
public Group getGroup_1_0_0() { return cGroup_1_0_0; }
//{BinaryExpr.left=current}
public Action getBinaryExprLeftAction_1_0_0_0() { return cBinaryExprLeftAction_1_0_0_0; }
//op=('+' | '-')
public Assignment getOpAssignment_1_0_0_1() { return cOpAssignment_1_0_0_1; }
//('+' | '-')
public Alternatives getOpAlternatives_1_0_0_1_0() { return cOpAlternatives_1_0_0_1_0; }
//'+'
public Keyword getOpPlusSignKeyword_1_0_0_1_0_0() { return cOpPlusSignKeyword_1_0_0_1_0_0; }
//'-'
public Keyword getOpHyphenMinusKeyword_1_0_0_1_0_1() { return cOpHyphenMinusKeyword_1_0_0_1_0_1; }
//right=MultExpr
public Assignment getRightAssignment_1_1() { return cRightAssignment_1_1; }
//MultExpr
public RuleCall getRightMultExprParserRuleCall_1_1_0() { return cRightMultExprParserRuleCall_1_1_0; }
}
public class MultExprElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.MultExpr");
private final Group cGroup = (Group)rule.eContents().get(1);
private final RuleCall cUnaryExprParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
private final Group cGroup_1_0 = (Group)cGroup_1.eContents().get(0);
private final Group cGroup_1_0_0 = (Group)cGroup_1_0.eContents().get(0);
private final Action cBinaryExprLeftAction_1_0_0_0 = (Action)cGroup_1_0_0.eContents().get(0);
private final Assignment cOpAssignment_1_0_0_1 = (Assignment)cGroup_1_0_0.eContents().get(1);
private final Alternatives cOpAlternatives_1_0_0_1_0 = (Alternatives)cOpAssignment_1_0_0_1.eContents().get(0);
private final Keyword cOpAsteriskKeyword_1_0_0_1_0_0 = (Keyword)cOpAlternatives_1_0_0_1_0.eContents().get(0);
private final Keyword cOpSolidusKeyword_1_0_0_1_0_1 = (Keyword)cOpAlternatives_1_0_0_1_0.eContents().get(1);
private final Assignment cRightAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
private final RuleCall cRightUnaryExprParserRuleCall_1_1_0 = (RuleCall)cRightAssignment_1_1.eContents().get(0);
//MultExpr Expr:
// UnaryExpr (=> ({BinaryExpr.left=current} op=('*' | '/')) right=UnaryExpr)*
@Override public ParserRule getRule() { return rule; }
//UnaryExpr (=> ({BinaryExpr.left=current} op=('*' | '/')) right=UnaryExpr)*
public Group getGroup() { return cGroup; }
//UnaryExpr
public RuleCall getUnaryExprParserRuleCall_0() { return cUnaryExprParserRuleCall_0; }
//(=> ({BinaryExpr.left=current} op=('*' | '/')) right=UnaryExpr)*
public Group getGroup_1() { return cGroup_1; }
//=> ({BinaryExpr.left=current} op=('*' | '/'))
public Group getGroup_1_0() { return cGroup_1_0; }
//({BinaryExpr.left=current} op=('*' | '/'))
public Group getGroup_1_0_0() { return cGroup_1_0_0; }
//{BinaryExpr.left=current}
public Action getBinaryExprLeftAction_1_0_0_0() { return cBinaryExprLeftAction_1_0_0_0; }
//op=('*' | '/')
public Assignment getOpAssignment_1_0_0_1() { return cOpAssignment_1_0_0_1; }
//('*' | '/')
public Alternatives getOpAlternatives_1_0_0_1_0() { return cOpAlternatives_1_0_0_1_0; }
//'*'
public Keyword getOpAsteriskKeyword_1_0_0_1_0_0() { return cOpAsteriskKeyword_1_0_0_1_0_0; }
//'/'
public Keyword getOpSolidusKeyword_1_0_0_1_0_1() { return cOpSolidusKeyword_1_0_0_1_0_1; }
//right=UnaryExpr
public Assignment getRightAssignment_1_1() { return cRightAssignment_1_1; }
//UnaryExpr
public RuleCall getRightUnaryExprParserRuleCall_1_1_0() { return cRightUnaryExprParserRuleCall_1_1_0; }
}
public class UnaryExprElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.UnaryExpr");
private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
private final RuleCall cAccessExprParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
private final Group cGroup_1 = (Group)cAlternatives.eContents().get(1);
private final Action cUnaryNegationExprAction_1_0 = (Action)cGroup_1.eContents().get(0);
private final Keyword cNotKeyword_1_1 = (Keyword)cGroup_1.eContents().get(1);
private final Assignment cExprAssignment_1_2 = (Assignment)cGroup_1.eContents().get(2);
private final RuleCall cExprUnaryExprParserRuleCall_1_2_0 = (RuleCall)cExprAssignment_1_2.eContents().get(0);
private final Group cGroup_2 = (Group)cAlternatives.eContents().get(2);
private final Action cUnaryMinusExprAction_2_0 = (Action)cGroup_2.eContents().get(0);
private final Keyword cHyphenMinusKeyword_2_1 = (Keyword)cGroup_2.eContents().get(1);
private final Assignment cExprAssignment_2_2 = (Assignment)cGroup_2.eContents().get(2);
private final RuleCall cExprUnaryExprParserRuleCall_2_2_0 = (RuleCall)cExprAssignment_2_2.eContents().get(0);
//UnaryExpr Expr:
// AccessExpr
// | {UnaryNegationExpr} 'not' expr=UnaryExpr | {UnaryMinusExpr} '-' expr=UnaryExpr
@Override public ParserRule getRule() { return rule; }
//AccessExpr | {UnaryNegationExpr} 'not' expr=UnaryExpr | {UnaryMinusExpr} '-' expr=UnaryExpr
public Alternatives getAlternatives() { return cAlternatives; }
//AccessExpr
public RuleCall getAccessExprParserRuleCall_0() { return cAccessExprParserRuleCall_0; }
//{UnaryNegationExpr} 'not' expr=UnaryExpr
public Group getGroup_1() { return cGroup_1; }
//{UnaryNegationExpr}
public Action getUnaryNegationExprAction_1_0() { return cUnaryNegationExprAction_1_0; }
//'not'
public Keyword getNotKeyword_1_1() { return cNotKeyword_1_1; }
//expr=UnaryExpr
public Assignment getExprAssignment_1_2() { return cExprAssignment_1_2; }
//UnaryExpr
public RuleCall getExprUnaryExprParserRuleCall_1_2_0() { return cExprUnaryExprParserRuleCall_1_2_0; }
//{UnaryMinusExpr} '-' expr=UnaryExpr
public Group getGroup_2() { return cGroup_2; }
//{UnaryMinusExpr}
public Action getUnaryMinusExprAction_2_0() { return cUnaryMinusExprAction_2_0; }
//'-'
public Keyword getHyphenMinusKeyword_2_1() { return cHyphenMinusKeyword_2_1; }
//expr=UnaryExpr
public Assignment getExprAssignment_2_2() { return cExprAssignment_2_2; }
//UnaryExpr
public RuleCall getExprUnaryExprParserRuleCall_2_2_0() { return cExprUnaryExprParserRuleCall_2_2_0; }
}
public class AccessExprElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.AccessExpr");
private final Group cGroup = (Group)rule.eContents().get(1);
private final RuleCall cTerminalExprParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
private final Group cGroup_1_0 = (Group)cAlternatives_1.eContents().get(0);
private final Group cGroup_1_0_0 = (Group)cGroup_1_0.eContents().get(0);
private final Group cGroup_1_0_0_0 = (Group)cGroup_1_0_0.eContents().get(0);
private final Action cRecordAccessExprRecordAction_1_0_0_0_0 = (Action)cGroup_1_0_0_0.eContents().get(0);
private final Keyword cFullStopKeyword_1_0_0_0_1 = (Keyword)cGroup_1_0_0_0.eContents().get(1);
private final Assignment cFieldAssignment_1_0_1 = (Assignment)cGroup_1_0.eContents().get(1);
private final RuleCall cFieldIDTerminalRuleCall_1_0_1_0 = (RuleCall)cFieldAssignment_1_0_1.eContents().get(0);
private final Group cGroup_1_1 = (Group)cAlternatives_1.eContents().get(1);
private final Group cGroup_1_1_0 = (Group)cGroup_1_1.eContents().get(0);
private final Group cGroup_1_1_0_0 = (Group)cGroup_1_1_0.eContents().get(0);
private final Action cRecordUpdateExprRecordAction_1_1_0_0_0 = (Action)cGroup_1_1_0_0.eContents().get(0);
private final Keyword cLeftCurlyBracketKeyword_1_1_0_0_1 = (Keyword)cGroup_1_1_0_0.eContents().get(1);
private final Assignment cFieldAssignment_1_1_0_0_2 = (Assignment)cGroup_1_1_0_0.eContents().get(2);
private final RuleCall cFieldIDTerminalRuleCall_1_1_0_0_2_0 = (RuleCall)cFieldAssignment_1_1_0_0_2.eContents().get(0);
private final Keyword cColonEqualsSignKeyword_1_1_0_0_3 = (Keyword)cGroup_1_1_0_0.eContents().get(3);
private final Assignment cValueAssignment_1_1_1 = (Assignment)cGroup_1_1.eContents().get(1);
private final RuleCall cValueExprParserRuleCall_1_1_1_0 = (RuleCall)cValueAssignment_1_1_1.eContents().get(0);
private final Keyword cRightCurlyBracketKeyword_1_1_2 = (Keyword)cGroup_1_1.eContents().get(2);
private final Group cGroup_1_2 = (Group)cAlternatives_1.eContents().get(2);
private final Group cGroup_1_2_0 = (Group)cGroup_1_2.eContents().get(0);
private final Group cGroup_1_2_0_0 = (Group)cGroup_1_2_0.eContents().get(0);
private final Action cArrayAccessExprArrayAction_1_2_0_0_0 = (Action)cGroup_1_2_0_0.eContents().get(0);
private final Keyword cLeftSquareBracketKeyword_1_2_0_0_1 = (Keyword)cGroup_1_2_0_0.eContents().get(1);
private final Assignment cIndexAssignment_1_2_1 = (Assignment)cGroup_1_2.eContents().get(1);
private final RuleCall cIndexExprParserRuleCall_1_2_1_0 = (RuleCall)cIndexAssignment_1_2_1.eContents().get(0);
private final Group cGroup_1_2_2 = (Group)cGroup_1_2.eContents().get(2);
private final Group cGroup_1_2_2_0 = (Group)cGroup_1_2_2.eContents().get(0);
private final Group cGroup_1_2_2_0_0 = (Group)cGroup_1_2_2_0.eContents().get(0);
private final Action cArrayUpdateExprAccessAction_1_2_2_0_0_0 = (Action)cGroup_1_2_2_0_0.eContents().get(0);
private final Keyword cColonEqualsSignKeyword_1_2_2_0_0_1 = (Keyword)cGroup_1_2_2_0_0.eContents().get(1);
private final Assignment cValueAssignment_1_2_2_1 = (Assignment)cGroup_1_2_2.eContents().get(1);
private final RuleCall cValueExprParserRuleCall_1_2_2_1_0 = (RuleCall)cValueAssignment_1_2_2_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_1_2_3 = (Keyword)cGroup_1_2.eContents().get(3);
//AccessExpr Expr:
// TerminalExpr (=> ({RecordAccessExpr.record=current} '.') field=ID
// | => ({RecordUpdateExpr.record=current} '{' field=ID ':=') value=Expr '}'
// | => ({ArrayAccessExpr.array=current} '[') index=Expr (=> ({ArrayUpdateExpr.access=current} ':=') value=Expr)? ']')*
@Override public ParserRule getRule() { return rule; }
//TerminalExpr (=> ({RecordAccessExpr.record=current} '.') field=ID | => ({RecordUpdateExpr.record=current} '{' field=ID
//':=') value=Expr '}' | => ({ArrayAccessExpr.array=current} '[') index=Expr (=> ({ArrayUpdateExpr.access=current} ':=')
//value=Expr)? ']')*
public Group getGroup() { return cGroup; }
//TerminalExpr
public RuleCall getTerminalExprParserRuleCall_0() { return cTerminalExprParserRuleCall_0; }
//(=> ({RecordAccessExpr.record=current} '.') field=ID | => ({RecordUpdateExpr.record=current} '{' field=ID ':=')
//value=Expr '}' | => ({ArrayAccessExpr.array=current} '[') index=Expr (=> ({ArrayUpdateExpr.access=current} ':=')
//value=Expr)? ']')*
public Alternatives getAlternatives_1() { return cAlternatives_1; }
//=> ({RecordAccessExpr.record=current} '.') field=ID
public Group getGroup_1_0() { return cGroup_1_0; }
//=> ({RecordAccessExpr.record=current} '.')
public Group getGroup_1_0_0() { return cGroup_1_0_0; }
//({RecordAccessExpr.record=current} '.')
public Group getGroup_1_0_0_0() { return cGroup_1_0_0_0; }
//{RecordAccessExpr.record=current}
public Action getRecordAccessExprRecordAction_1_0_0_0_0() { return cRecordAccessExprRecordAction_1_0_0_0_0; }
//'.'
public Keyword getFullStopKeyword_1_0_0_0_1() { return cFullStopKeyword_1_0_0_0_1; }
//field=ID
public Assignment getFieldAssignment_1_0_1() { return cFieldAssignment_1_0_1; }
//ID
public RuleCall getFieldIDTerminalRuleCall_1_0_1_0() { return cFieldIDTerminalRuleCall_1_0_1_0; }
//=> ({RecordUpdateExpr.record=current} '{' field=ID ':=') value=Expr '}'
public Group getGroup_1_1() { return cGroup_1_1; }
//=> ({RecordUpdateExpr.record=current} '{' field=ID ':=')
public Group getGroup_1_1_0() { return cGroup_1_1_0; }
//({RecordUpdateExpr.record=current} '{' field=ID ':=')
public Group getGroup_1_1_0_0() { return cGroup_1_1_0_0; }
//{RecordUpdateExpr.record=current}
public Action getRecordUpdateExprRecordAction_1_1_0_0_0() { return cRecordUpdateExprRecordAction_1_1_0_0_0; }
//'{'
public Keyword getLeftCurlyBracketKeyword_1_1_0_0_1() { return cLeftCurlyBracketKeyword_1_1_0_0_1; }
//field=ID
public Assignment getFieldAssignment_1_1_0_0_2() { return cFieldAssignment_1_1_0_0_2; }
//ID
public RuleCall getFieldIDTerminalRuleCall_1_1_0_0_2_0() { return cFieldIDTerminalRuleCall_1_1_0_0_2_0; }
//':='
public Keyword getColonEqualsSignKeyword_1_1_0_0_3() { return cColonEqualsSignKeyword_1_1_0_0_3; }
//value=Expr
public Assignment getValueAssignment_1_1_1() { return cValueAssignment_1_1_1; }
//Expr
public RuleCall getValueExprParserRuleCall_1_1_1_0() { return cValueExprParserRuleCall_1_1_1_0; }
//'}'
public Keyword getRightCurlyBracketKeyword_1_1_2() { return cRightCurlyBracketKeyword_1_1_2; }
//=> ({ArrayAccessExpr.array=current} '[') index=Expr (=> ({ArrayUpdateExpr.access=current} ':=') value=Expr)? ']'
public Group getGroup_1_2() { return cGroup_1_2; }
//=> ({ArrayAccessExpr.array=current} '[')
public Group getGroup_1_2_0() { return cGroup_1_2_0; }
//({ArrayAccessExpr.array=current} '[')
public Group getGroup_1_2_0_0() { return cGroup_1_2_0_0; }
//{ArrayAccessExpr.array=current}
public Action getArrayAccessExprArrayAction_1_2_0_0_0() { return cArrayAccessExprArrayAction_1_2_0_0_0; }
//'['
public Keyword getLeftSquareBracketKeyword_1_2_0_0_1() { return cLeftSquareBracketKeyword_1_2_0_0_1; }
//index=Expr
public Assignment getIndexAssignment_1_2_1() { return cIndexAssignment_1_2_1; }
//Expr
public RuleCall getIndexExprParserRuleCall_1_2_1_0() { return cIndexExprParserRuleCall_1_2_1_0; }
//(=> ({ArrayUpdateExpr.access=current} ':=') value=Expr)?
public Group getGroup_1_2_2() { return cGroup_1_2_2; }
//=> ({ArrayUpdateExpr.access=current} ':=')
public Group getGroup_1_2_2_0() { return cGroup_1_2_2_0; }
//({ArrayUpdateExpr.access=current} ':=')
public Group getGroup_1_2_2_0_0() { return cGroup_1_2_2_0_0; }
//{ArrayUpdateExpr.access=current}
public Action getArrayUpdateExprAccessAction_1_2_2_0_0_0() { return cArrayUpdateExprAccessAction_1_2_2_0_0_0; }
//':='
public Keyword getColonEqualsSignKeyword_1_2_2_0_0_1() { return cColonEqualsSignKeyword_1_2_2_0_0_1; }
//value=Expr
public Assignment getValueAssignment_1_2_2_1() { return cValueAssignment_1_2_2_1; }
//Expr
public RuleCall getValueExprParserRuleCall_1_2_2_1_0() { return cValueExprParserRuleCall_1_2_2_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_1_2_3() { return cRightSquareBracketKeyword_1_2_3; }
}
public class FunctionRefElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.FunctionRef");
private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
private final RuleCall cExternalFunctionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
private final RuleCall cExternalProcedureParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
private final RuleCall cLocalFunctionParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
private final RuleCall cLocalProcedureParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3);
//FunctionRef:
// ExternalFunction
// | ExternalProcedure
// | LocalFunction
// | LocalProcedure;
@Override public ParserRule getRule() { return rule; }
//ExternalFunction | ExternalProcedure | LocalFunction | LocalProcedure
public Alternatives getAlternatives() { return cAlternatives; }
//ExternalFunction
public RuleCall getExternalFunctionParserRuleCall_0() { return cExternalFunctionParserRuleCall_0; }
//ExternalProcedure
public RuleCall getExternalProcedureParserRuleCall_1() { return cExternalProcedureParserRuleCall_1; }
//LocalFunction
public RuleCall getLocalFunctionParserRuleCall_2() { return cLocalFunctionParserRuleCall_2; }
//LocalProcedure
public RuleCall getLocalProcedureParserRuleCall_3() { return cLocalProcedureParserRuleCall_3; }
}
public class TerminalExprElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.TerminalExpr");
private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
private final Group cGroup_0 = (Group)cAlternatives.eContents().get(0);
private final Keyword cLeftParenthesisKeyword_0_0 = (Keyword)cGroup_0.eContents().get(0);
private final RuleCall cExprParserRuleCall_0_1 = (RuleCall)cGroup_0.eContents().get(1);
private final Keyword cRightParenthesisKeyword_0_2 = (Keyword)cGroup_0.eContents().get(2);
private final Group cGroup_1 = (Group)cAlternatives.eContents().get(1);
private final Action cBooleanLiteralExprAction_1_0 = (Action)cGroup_1.eContents().get(0);
private final Assignment cBoolValAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
private final RuleCall cBoolValBOOLEANTerminalRuleCall_1_1_0 = (RuleCall)cBoolValAssignment_1_1.eContents().get(0);
private final Group cGroup_2 = (Group)cAlternatives.eContents().get(2);
private final Action cIntegerLiteralExprAction_2_0 = (Action)cGroup_2.eContents().get(0);
private final Assignment cIntValAssignment_2_1 = (Assignment)cGroup_2.eContents().get(1);
private final RuleCall cIntValINTTerminalRuleCall_2_1_0 = (RuleCall)cIntValAssignment_2_1.eContents().get(0);
private final Group cGroup_3 = (Group)cAlternatives.eContents().get(3);
private final Action cIntegerWildCardExprAction_3_0 = (Action)cGroup_3.eContents().get(0);
private final Keyword cAsteriskKeyword_3_1 = (Keyword)cGroup_3.eContents().get(1);
private final Group cGroup_4 = (Group)cAlternatives.eContents().get(4);
private final Action cRealLiteralExprAction_4_0 = (Action)cGroup_4.eContents().get(0);
private final Assignment cRealValAssignment_4_1 = (Assignment)cGroup_4.eContents().get(1);
private final RuleCall cRealValREALTerminalRuleCall_4_1_0 = (RuleCall)cRealValAssignment_4_1.eContents().get(0);
private final Group cGroup_5 = (Group)cAlternatives.eContents().get(5);
private final Action cStringLiteralExprAction_5_0 = (Action)cGroup_5.eContents().get(0);
private final Assignment cStringValAssignment_5_1 = (Assignment)cGroup_5.eContents().get(1);
private final RuleCall cStringValSTRINGTerminalRuleCall_5_1_0 = (RuleCall)cStringValAssignment_5_1.eContents().get(0);
private final Group cGroup_6 = (Group)cAlternatives.eContents().get(6);
private final Action cInitExprAction_6_0 = (Action)cGroup_6.eContents().get(0);
private final Keyword cInitKeyword_6_1 = (Keyword)cGroup_6.eContents().get(1);
private final Assignment cIdAssignment_6_2 = (Assignment)cGroup_6.eContents().get(2);
private final CrossReference cIdVariableRefCrossReference_6_2_0 = (CrossReference)cIdAssignment_6_2.eContents().get(0);
private final RuleCall cIdVariableRefIDTerminalRuleCall_6_2_0_1 = (RuleCall)cIdVariableRefCrossReference_6_2_0.eContents().get(1);
private final Group cGroup_7 = (Group)cAlternatives.eContents().get(7);
private final Action cSecondInitAction_7_0 = (Action)cGroup_7.eContents().get(0);
private final Keyword cSecond_initKeyword_7_1 = (Keyword)cGroup_7.eContents().get(1);
private final Assignment cIdAssignment_7_2 = (Assignment)cGroup_7.eContents().get(2);
private final CrossReference cIdVariableRefCrossReference_7_2_0 = (CrossReference)cIdAssignment_7_2.eContents().get(0);
private final RuleCall cIdVariableRefIDTerminalRuleCall_7_2_0_1 = (RuleCall)cIdVariableRefCrossReference_7_2_0.eContents().get(1);
private final RuleCall cArrayExprParserRuleCall_8 = (RuleCall)cAlternatives.eContents().get(8);
private final RuleCall cRecordExprParserRuleCall_9 = (RuleCall)cAlternatives.eContents().get(9);
private final Group cGroup_10 = (Group)cAlternatives.eContents().get(10);
private final Action cIdExprAction_10_0 = (Action)cGroup_10.eContents().get(0);
private final Assignment cIdAssignment_10_1 = (Assignment)cGroup_10.eContents().get(1);
private final CrossReference cIdVariableRefCrossReference_10_1_0 = (CrossReference)cIdAssignment_10_1.eContents().get(0);
private final RuleCall cIdVariableRefIDTerminalRuleCall_10_1_0_1 = (RuleCall)cIdVariableRefCrossReference_10_1_0.eContents().get(1);
private final Group cGroup_11 = (Group)cAlternatives.eContents().get(11);
private final Action cFcnCallExprAction_11_0 = (Action)cGroup_11.eContents().get(0);
private final Assignment cIdAssignment_11_1 = (Assignment)cGroup_11.eContents().get(1);
private final CrossReference cIdFunctionRefCrossReference_11_1_0 = (CrossReference)cIdAssignment_11_1.eContents().get(0);
private final RuleCall cIdFunctionRefIDTerminalRuleCall_11_1_0_1 = (RuleCall)cIdFunctionRefCrossReference_11_1_0.eContents().get(1);
private final Keyword cLeftParenthesisKeyword_11_2 = (Keyword)cGroup_11.eContents().get(2);
private final Assignment cExprsAssignment_11_3 = (Assignment)cGroup_11.eContents().get(3);
private final RuleCall cExprsExprListParserRuleCall_11_3_0 = (RuleCall)cExprsAssignment_11_3.eContents().get(0);
private final Keyword cRightParenthesisKeyword_11_4 = (Keyword)cGroup_11.eContents().get(4);
//TerminalExpr Expr:
// '(' Expr ')'
// | {BooleanLiteralExpr} boolVal=BOOLEAN | {IntegerLiteralExpr} intVal=INT | {IntegerWildCardExpr} '*' //analysis cannot be run if this expression is present
// | {RealLiteralExpr} realVal=REAL | {StringLiteralExpr} stringVal=STRING | {InitExpr} 'init' id=[VariableRef] |
// {SecondInit} 'second_init' id=[VariableRef] | ArrayExpr
// | RecordExpr
// | {IdExpr} id=[VariableRef] | {FcnCallExpr} id=[FunctionRef] '(' exprs=ExprList ')'
@Override public ParserRule getRule() { return rule; }
//'(' Expr ')' | {BooleanLiteralExpr} boolVal=BOOLEAN | {IntegerLiteralExpr} intVal=INT | {IntegerWildCardExpr} '*' //analysis cannot be run if this expression is present
//| {RealLiteralExpr} realVal=REAL | {StringLiteralExpr} stringVal=STRING | {InitExpr} 'init' id=[VariableRef] |
//{SecondInit} 'second_init' id=[VariableRef] | ArrayExpr | RecordExpr | {IdExpr} id=[VariableRef] | {FcnCallExpr}
//id=[FunctionRef] '(' exprs=ExprList ')'
public Alternatives getAlternatives() { return cAlternatives; }
//'(' Expr ')'
public Group getGroup_0() { return cGroup_0; }
//'('
public Keyword getLeftParenthesisKeyword_0_0() { return cLeftParenthesisKeyword_0_0; }
//Expr
public RuleCall getExprParserRuleCall_0_1() { return cExprParserRuleCall_0_1; }
//')'
public Keyword getRightParenthesisKeyword_0_2() { return cRightParenthesisKeyword_0_2; }
//{BooleanLiteralExpr} boolVal=BOOLEAN
public Group getGroup_1() { return cGroup_1; }
//{BooleanLiteralExpr}
public Action getBooleanLiteralExprAction_1_0() { return cBooleanLiteralExprAction_1_0; }
//boolVal=BOOLEAN
public Assignment getBoolValAssignment_1_1() { return cBoolValAssignment_1_1; }
//BOOLEAN
public RuleCall getBoolValBOOLEANTerminalRuleCall_1_1_0() { return cBoolValBOOLEANTerminalRuleCall_1_1_0; }
//{IntegerLiteralExpr} intVal=INT
public Group getGroup_2() { return cGroup_2; }
//{IntegerLiteralExpr}
public Action getIntegerLiteralExprAction_2_0() { return cIntegerLiteralExprAction_2_0; }
//intVal=INT
public Assignment getIntValAssignment_2_1() { return cIntValAssignment_2_1; }
//INT
public RuleCall getIntValINTTerminalRuleCall_2_1_0() { return cIntValINTTerminalRuleCall_2_1_0; }
//{IntegerWildCardExpr} '*'
public Group getGroup_3() { return cGroup_3; }
//{IntegerWildCardExpr}
public Action getIntegerWildCardExprAction_3_0() { return cIntegerWildCardExprAction_3_0; }
//'*'
public Keyword getAsteriskKeyword_3_1() { return cAsteriskKeyword_3_1; }
//{RealLiteralExpr} realVal=REAL
public Group getGroup_4() { return cGroup_4; }
//{RealLiteralExpr}
public Action getRealLiteralExprAction_4_0() { return cRealLiteralExprAction_4_0; }
//realVal=REAL
public Assignment getRealValAssignment_4_1() { return cRealValAssignment_4_1; }
//REAL
public RuleCall getRealValREALTerminalRuleCall_4_1_0() { return cRealValREALTerminalRuleCall_4_1_0; }
//{StringLiteralExpr} stringVal=STRING
public Group getGroup_5() { return cGroup_5; }
//{StringLiteralExpr}
public Action getStringLiteralExprAction_5_0() { return cStringLiteralExprAction_5_0; }
//stringVal=STRING
public Assignment getStringValAssignment_5_1() { return cStringValAssignment_5_1; }
//STRING
public RuleCall getStringValSTRINGTerminalRuleCall_5_1_0() { return cStringValSTRINGTerminalRuleCall_5_1_0; }
//{InitExpr} 'init' id=[VariableRef]
public Group getGroup_6() { return cGroup_6; }
//{InitExpr}
public Action getInitExprAction_6_0() { return cInitExprAction_6_0; }
//'init'
public Keyword getInitKeyword_6_1() { return cInitKeyword_6_1; }
//id=[VariableRef]
public Assignment getIdAssignment_6_2() { return cIdAssignment_6_2; }
//[VariableRef]
public CrossReference getIdVariableRefCrossReference_6_2_0() { return cIdVariableRefCrossReference_6_2_0; }
//ID
public RuleCall getIdVariableRefIDTerminalRuleCall_6_2_0_1() { return cIdVariableRefIDTerminalRuleCall_6_2_0_1; }
//{SecondInit} 'second_init' id=[VariableRef]
public Group getGroup_7() { return cGroup_7; }
//{SecondInit}
public Action getSecondInitAction_7_0() { return cSecondInitAction_7_0; }
//'second_init'
public Keyword getSecond_initKeyword_7_1() { return cSecond_initKeyword_7_1; }
//id=[VariableRef]
public Assignment getIdAssignment_7_2() { return cIdAssignment_7_2; }
//[VariableRef]
public CrossReference getIdVariableRefCrossReference_7_2_0() { return cIdVariableRefCrossReference_7_2_0; }
//ID
public RuleCall getIdVariableRefIDTerminalRuleCall_7_2_0_1() { return cIdVariableRefIDTerminalRuleCall_7_2_0_1; }
//ArrayExpr
public RuleCall getArrayExprParserRuleCall_8() { return cArrayExprParserRuleCall_8; }
//RecordExpr
public RuleCall getRecordExprParserRuleCall_9() { return cRecordExprParserRuleCall_9; }
//{IdExpr} id=[VariableRef]
public Group getGroup_10() { return cGroup_10; }
//{IdExpr}
public Action getIdExprAction_10_0() { return cIdExprAction_10_0; }
//id=[VariableRef]
public Assignment getIdAssignment_10_1() { return cIdAssignment_10_1; }
//[VariableRef]
public CrossReference getIdVariableRefCrossReference_10_1_0() { return cIdVariableRefCrossReference_10_1_0; }
//ID
public RuleCall getIdVariableRefIDTerminalRuleCall_10_1_0_1() { return cIdVariableRefIDTerminalRuleCall_10_1_0_1; }
//{FcnCallExpr} id=[FunctionRef] '(' exprs=ExprList ')'
public Group getGroup_11() { return cGroup_11; }
//{FcnCallExpr}
public Action getFcnCallExprAction_11_0() { return cFcnCallExprAction_11_0; }
//id=[FunctionRef]
public Assignment getIdAssignment_11_1() { return cIdAssignment_11_1; }
//[FunctionRef]
public CrossReference getIdFunctionRefCrossReference_11_1_0() { return cIdFunctionRefCrossReference_11_1_0; }
//ID
public RuleCall getIdFunctionRefIDTerminalRuleCall_11_1_0_1() { return cIdFunctionRefIDTerminalRuleCall_11_1_0_1; }
//'('
public Keyword getLeftParenthesisKeyword_11_2() { return cLeftParenthesisKeyword_11_2; }
//exprs=ExprList
public Assignment getExprsAssignment_11_3() { return cExprsAssignment_11_3; }
//ExprList
public RuleCall getExprsExprListParserRuleCall_11_3_0() { return cExprsExprListParserRuleCall_11_3_0; }
//')'
public Keyword getRightParenthesisKeyword_11_4() { return cRightParenthesisKeyword_11_4; }
}
public class ArrayExprElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.ArrayExpr");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cArrayKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Assignment cArrayDefinitionAssignment_1 = (Assignment)cGroup.eContents().get(1);
private final CrossReference cArrayDefinitionArrayTypeDefCrossReference_1_0 = (CrossReference)cArrayDefinitionAssignment_1.eContents().get(0);
private final RuleCall cArrayDefinitionArrayTypeDefIDTerminalRuleCall_1_0_1 = (RuleCall)cArrayDefinitionArrayTypeDefCrossReference_1_0.eContents().get(1);
private final Keyword cLeftSquareBracketKeyword_2 = (Keyword)cGroup.eContents().get(2);
private final Assignment cExprListAssignment_3 = (Assignment)cGroup.eContents().get(3);
private final RuleCall cExprListExprParserRuleCall_3_0 = (RuleCall)cExprListAssignment_3.eContents().get(0);
private final Group cGroup_4 = (Group)cGroup.eContents().get(4);
private final Keyword cCommaKeyword_4_0 = (Keyword)cGroup_4.eContents().get(0);
private final Assignment cExprListAssignment_4_1 = (Assignment)cGroup_4.eContents().get(1);
private final RuleCall cExprListExprParserRuleCall_4_1_0 = (RuleCall)cExprListAssignment_4_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_5 = (Keyword)cGroup.eContents().get(5);
//ArrayExpr:
// 'array' arrayDefinition=[ArrayTypeDef] '[' exprList+=Expr (',' exprList+=Expr)* ']';
@Override public ParserRule getRule() { return rule; }
//'array' arrayDefinition=[ArrayTypeDef] '[' exprList+=Expr (',' exprList+=Expr)* ']'
public Group getGroup() { return cGroup; }
//'array'
public Keyword getArrayKeyword_0() { return cArrayKeyword_0; }
//arrayDefinition=[ArrayTypeDef]
public Assignment getArrayDefinitionAssignment_1() { return cArrayDefinitionAssignment_1; }
//[ArrayTypeDef]
public CrossReference getArrayDefinitionArrayTypeDefCrossReference_1_0() { return cArrayDefinitionArrayTypeDefCrossReference_1_0; }
//ID
public RuleCall getArrayDefinitionArrayTypeDefIDTerminalRuleCall_1_0_1() { return cArrayDefinitionArrayTypeDefIDTerminalRuleCall_1_0_1; }
//'['
public Keyword getLeftSquareBracketKeyword_2() { return cLeftSquareBracketKeyword_2; }
//exprList+=Expr
public Assignment getExprListAssignment_3() { return cExprListAssignment_3; }
//Expr
public RuleCall getExprListExprParserRuleCall_3_0() { return cExprListExprParserRuleCall_3_0; }
//(',' exprList+=Expr)*
public Group getGroup_4() { return cGroup_4; }
//','
public Keyword getCommaKeyword_4_0() { return cCommaKeyword_4_0; }
//exprList+=Expr
public Assignment getExprListAssignment_4_1() { return cExprListAssignment_4_1; }
//Expr
public RuleCall getExprListExprParserRuleCall_4_1_0() { return cExprListExprParserRuleCall_4_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_5() { return cRightSquareBracketKeyword_5; }
}
public class RecordExprElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.RecordExpr");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cRecordKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Assignment cRecordDefinitionAssignment_1 = (Assignment)cGroup.eContents().get(1);
private final CrossReference cRecordDefinitionRecordTypeDefCrossReference_1_0 = (CrossReference)cRecordDefinitionAssignment_1.eContents().get(0);
private final RuleCall cRecordDefinitionRecordTypeDefIDTerminalRuleCall_1_0_1 = (RuleCall)cRecordDefinitionRecordTypeDefCrossReference_1_0.eContents().get(1);
private final Keyword cLeftCurlyBracketKeyword_2 = (Keyword)cGroup.eContents().get(2);
private final Assignment cFieldExprListAssignment_3 = (Assignment)cGroup.eContents().get(3);
private final RuleCall cFieldExprListRecordFieldExprParserRuleCall_3_0 = (RuleCall)cFieldExprListAssignment_3.eContents().get(0);
private final Group cGroup_4 = (Group)cGroup.eContents().get(4);
private final Keyword cCommaKeyword_4_0 = (Keyword)cGroup_4.eContents().get(0);
private final Assignment cFieldExprListAssignment_4_1 = (Assignment)cGroup_4.eContents().get(1);
private final RuleCall cFieldExprListRecordFieldExprParserRuleCall_4_1_0 = (RuleCall)cFieldExprListAssignment_4_1.eContents().get(0);
private final Keyword cRightCurlyBracketKeyword_5 = (Keyword)cGroup.eContents().get(5);
//RecordExpr:
// 'record' recordDefinition=[RecordTypeDef] '{' fieldExprList+=RecordFieldExpr (',' fieldExprList+=RecordFieldExpr)*
// '}';
@Override public ParserRule getRule() { return rule; }
//'record' recordDefinition=[RecordTypeDef] '{' fieldExprList+=RecordFieldExpr (',' fieldExprList+=RecordFieldExpr)* '}'
public Group getGroup() { return cGroup; }
//'record'
public Keyword getRecordKeyword_0() { return cRecordKeyword_0; }
//recordDefinition=[RecordTypeDef]
public Assignment getRecordDefinitionAssignment_1() { return cRecordDefinitionAssignment_1; }
//[RecordTypeDef]
public CrossReference getRecordDefinitionRecordTypeDefCrossReference_1_0() { return cRecordDefinitionRecordTypeDefCrossReference_1_0; }
//ID
public RuleCall getRecordDefinitionRecordTypeDefIDTerminalRuleCall_1_0_1() { return cRecordDefinitionRecordTypeDefIDTerminalRuleCall_1_0_1; }
//'{'
public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; }
//fieldExprList+=RecordFieldExpr
public Assignment getFieldExprListAssignment_3() { return cFieldExprListAssignment_3; }
//RecordFieldExpr
public RuleCall getFieldExprListRecordFieldExprParserRuleCall_3_0() { return cFieldExprListRecordFieldExprParserRuleCall_3_0; }
//(',' fieldExprList+=RecordFieldExpr)*
public Group getGroup_4() { return cGroup_4; }
//','
public Keyword getCommaKeyword_4_0() { return cCommaKeyword_4_0; }
//fieldExprList+=RecordFieldExpr
public Assignment getFieldExprListAssignment_4_1() { return cFieldExprListAssignment_4_1; }
//RecordFieldExpr
public RuleCall getFieldExprListRecordFieldExprParserRuleCall_4_1_0() { return cFieldExprListRecordFieldExprParserRuleCall_4_1_0; }
//'}'
public Keyword getRightCurlyBracketKeyword_5() { return cRightCurlyBracketKeyword_5; }
}
public class RecordFieldExprElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.RecordFieldExpr");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Assignment cFieldNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
private final RuleCall cFieldNameIDTerminalRuleCall_0_0 = (RuleCall)cFieldNameAssignment_0.eContents().get(0);
private final Keyword cEqualsSignKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Assignment cFieldExprAssignment_2 = (Assignment)cGroup.eContents().get(2);
private final RuleCall cFieldExprExprParserRuleCall_2_0 = (RuleCall)cFieldExprAssignment_2.eContents().get(0);
//RecordFieldExpr:
// fieldName=ID '=' fieldExpr=Expr;
@Override public ParserRule getRule() { return rule; }
//fieldName=ID '=' fieldExpr=Expr
public Group getGroup() { return cGroup; }
//fieldName=ID
public Assignment getFieldNameAssignment_0() { return cFieldNameAssignment_0; }
//ID
public RuleCall getFieldNameIDTerminalRuleCall_0_0() { return cFieldNameIDTerminalRuleCall_0_0; }
//'='
public Keyword getEqualsSignKeyword_1() { return cEqualsSignKeyword_1; }
//fieldExpr=Expr
public Assignment getFieldExprAssignment_2() { return cFieldExprAssignment_2; }
//Expr
public RuleCall getFieldExprExprParserRuleCall_2_0() { return cFieldExprExprParserRuleCall_2_0; }
}
public class ExprListElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.ExprList");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Action cExprListAction_0 = (Action)cGroup.eContents().get(0);
private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
private final Assignment cExprListAssignment_1_0 = (Assignment)cGroup_1.eContents().get(0);
private final RuleCall cExprListExprParserRuleCall_1_0_0 = (RuleCall)cExprListAssignment_1_0.eContents().get(0);
private final Group cGroup_1_1 = (Group)cGroup_1.eContents().get(1);
private final Keyword cCommaKeyword_1_1_0 = (Keyword)cGroup_1_1.eContents().get(0);
private final Assignment cExprListAssignment_1_1_1 = (Assignment)cGroup_1_1.eContents().get(1);
private final RuleCall cExprListExprParserRuleCall_1_1_1_0 = (RuleCall)cExprListAssignment_1_1_1.eContents().get(0);
//ExprList:
// {ExprList} (exprList+=Expr (',' exprList+=Expr)*)?;
@Override public ParserRule getRule() { return rule; }
//{ExprList} (exprList+=Expr (',' exprList+=Expr)*)?
public Group getGroup() { return cGroup; }
//{ExprList}
public Action getExprListAction_0() { return cExprListAction_0; }
//(exprList+=Expr (',' exprList+=Expr)*)?
public Group getGroup_1() { return cGroup_1; }
//exprList+=Expr
public Assignment getExprListAssignment_1_0() { return cExprListAssignment_1_0; }
//Expr
public RuleCall getExprListExprParserRuleCall_1_0_0() { return cExprListExprParserRuleCall_1_0_0; }
//(',' exprList+=Expr)*
public Group getGroup_1_1() { return cGroup_1_1; }
//','
public Keyword getCommaKeyword_1_1_0() { return cCommaKeyword_1_1_0; }
//exprList+=Expr
public Assignment getExprListAssignment_1_1_1() { return cExprListAssignment_1_1_1; }
//Expr
public RuleCall getExprListExprParserRuleCall_1_1_1_0() { return cExprListExprParserRuleCall_1_1_1_0; }
}
public class ExtendedTypeElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.ExtendedType");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Action cTupleTypeAction_0 = (Action)cGroup.eContents().get(0);
private final Keyword cLeftParenthesisKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Assignment cTypeListAssignment_2 = (Assignment)cGroup.eContents().get(2);
private final RuleCall cTypeListTypeParserRuleCall_2_0 = (RuleCall)cTypeListAssignment_2.eContents().get(0);
private final Group cGroup_3 = (Group)cGroup.eContents().get(3);
private final Keyword cCommaKeyword_3_0 = (Keyword)cGroup_3.eContents().get(0);
private final Assignment cTypeListAssignment_3_1 = (Assignment)cGroup_3.eContents().get(1);
private final RuleCall cTypeListTypeParserRuleCall_3_1_0 = (RuleCall)cTypeListAssignment_3_1.eContents().get(0);
private final Keyword cRightParenthesisKeyword_4 = (Keyword)cGroup.eContents().get(4);
/// * This section captures all of the AST objects that we include in the language, but do not
// * allow the user to write. They are used to make transformations to the code and simplify
// * our tasks.
// * / ExtendedType Type:
// {TupleType} '(' typeList+=Type (',' typeList+=Type)* ')'
@Override public ParserRule getRule() { return rule; }
//{TupleType} '(' typeList+=Type (',' typeList+=Type)* ')'
public Group getGroup() { return cGroup; }
//{TupleType}
public Action getTupleTypeAction_0() { return cTupleTypeAction_0; }
//'('
public Keyword getLeftParenthesisKeyword_1() { return cLeftParenthesisKeyword_1; }
//typeList+=Type
public Assignment getTypeListAssignment_2() { return cTypeListAssignment_2; }
//Type
public RuleCall getTypeListTypeParserRuleCall_2_0() { return cTypeListTypeParserRuleCall_2_0; }
//(',' typeList+=Type)*
public Group getGroup_3() { return cGroup_3; }
//','
public Keyword getCommaKeyword_3_0() { return cCommaKeyword_3_0; }
//typeList+=Type
public Assignment getTypeListAssignment_3_1() { return cTypeListAssignment_3_1; }
//Type
public RuleCall getTypeListTypeParserRuleCall_3_1_0() { return cTypeListTypeParserRuleCall_3_1_0; }
//')'
public Keyword getRightParenthesisKeyword_4() { return cRightParenthesisKeyword_4; }
}
public class ExtendedExprElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.ExtendedExpr");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Action cFreshVariableAction_0 = (Action)cGroup.eContents().get(0);
private final Keyword cCommercialAtKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Assignment cValueAssignment_2 = (Assignment)cGroup.eContents().get(2);
private final RuleCall cValueINTTerminalRuleCall_2_0 = (RuleCall)cValueAssignment_2.eContents().get(0);
private final Keyword cCommercialAtKeyword_3 = (Keyword)cGroup.eContents().get(3);
//ExtendedExpr Expr:
// {FreshVariable} '@' value=INT '@'
@Override public ParserRule getRule() { return rule; }
//{FreshVariable} '@' value=INT '@'
public Group getGroup() { return cGroup; }
//{FreshVariable}
public Action getFreshVariableAction_0() { return cFreshVariableAction_0; }
//'@'
public Keyword getCommercialAtKeyword_1() { return cCommercialAtKeyword_1; }
//value=INT
public Assignment getValueAssignment_2() { return cValueAssignment_2; }
//INT
public RuleCall getValueINTTerminalRuleCall_2_0() { return cValueINTTerminalRuleCall_2_0; }
//'@'
public Keyword getCommercialAtKeyword_3() { return cCommercialAtKeyword_3; }
}
private final SpecificationElements pSpecification;
private final DeclarationElements pDeclaration;
private final CommentElements pComment;
private final TerminalRule tSEMANTIC_COMMENT;
private final ImportElements pImport;
private final ExternalFunctionElements pExternalFunction;
private final ExternalProcedureElements pExternalProcedure;
private final LocalFunctionElements pLocalFunction;
private final LocalProcedureElements pLocalProcedure;
private final TypeDeclarationElements pTypeDeclaration;
private final VarBlockElements pVarBlock;
private final EnumTypeDefElements pEnumTypeDef;
private final EnumValueElements pEnumValue;
private final RecordTypeDefElements pRecordTypeDef;
private final ArrayTypeDefElements pArrayTypeDef;
private final AbstractTypeDefElements pAbstractTypeDef;
private final RecordFieldTypeElements pRecordFieldType;
private final ConstantDeclarationElements pConstantDeclaration;
private final GlobalDeclarationElements pGlobalDeclaration;
private final VariableRefElements pVariableRef;
private final InputArgListElements pInputArgList;
private final InputArgElements pInputArg;
private final LocalArgElements pLocalArg;
private final OutputArgListElements pOutputArgList;
private final OutputArgElements pOutputArg;
private final TypeElements pType;
private final AttributeBlockElements pAttributeBlock;
private final AttributeElements pAttribute;
private final PreconditionElements pPrecondition;
private final PostconditionElements pPostcondition;
private final DefineUseRefElements pDefineUseRef;
private final DefineElements pDefine;
private final UsesElements pUses;
private final StatementBlockElements pStatementBlock;
private final StatementElements pStatement;
private final VoidStatementElements pVoidStatement;
private final AssignmentStatementElements pAssignmentStatement;
private final IfThenElseStatementElements pIfThenElseStatement;
private final ElseElements pElse;
private final WhileStatementElements pWhileStatement;
private final ForStatementElements pForStatement;
private final LabelStatementElements pLabelStatement;
private final GotoStatementElements pGotoStatement;
private final EquationBlockElements pEquationBlock;
private final EquationElements pEquation;
private final IdListElements pIdList;
private final ExprElements pExpr;
private final IfThenElseExprElements pIfThenElseExpr;
private final ChoiceExprElements pChoiceExpr;
private final ImpliesExprElements pImpliesExpr;
private final OrExprElements pOrExpr;
private final AndExprElements pAndExpr;
private final RelationalOpElements pRelationalOp;
private final RelationalExprElements pRelationalExpr;
private final PlusExprElements pPlusExpr;
private final MultExprElements pMultExpr;
private final UnaryExprElements pUnaryExpr;
private final AccessExprElements pAccessExpr;
private final FunctionRefElements pFunctionRef;
private final TerminalExprElements pTerminalExpr;
private final ArrayExprElements pArrayExpr;
private final RecordExprElements pRecordExpr;
private final RecordFieldExprElements pRecordFieldExpr;
private final ExprListElements pExprList;
private final TerminalRule tINT;
private final TerminalRule tBOOLEAN;
private final TerminalRule tREAL;
private final TerminalRule tID;
private final TerminalRule tSTRING;
private final TerminalRule tML_COMMENT;
private final TerminalRule tSL_COMMENT;
private final TerminalRule tWS;
private final TerminalRule tANY_OTHER;
private final ExtendedTypeElements pExtendedType;
private final ExtendedExprElements pExtendedExpr;
private final Grammar grammar;
@Inject
public LimpGrammarAccess(GrammarProvider grammarProvider) {
this.grammar = internalFindGrammar(grammarProvider);
this.pSpecification = new SpecificationElements();
this.pDeclaration = new DeclarationElements();
this.pComment = new CommentElements();
this.tSEMANTIC_COMMENT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.SEMANTIC_COMMENT");
this.pImport = new ImportElements();
this.pExternalFunction = new ExternalFunctionElements();
this.pExternalProcedure = new ExternalProcedureElements();
this.pLocalFunction = new LocalFunctionElements();
this.pLocalProcedure = new LocalProcedureElements();
this.pTypeDeclaration = new TypeDeclarationElements();
this.pVarBlock = new VarBlockElements();
this.pEnumTypeDef = new EnumTypeDefElements();
this.pEnumValue = new EnumValueElements();
this.pRecordTypeDef = new RecordTypeDefElements();
this.pArrayTypeDef = new ArrayTypeDefElements();
this.pAbstractTypeDef = new AbstractTypeDefElements();
this.pRecordFieldType = new RecordFieldTypeElements();
this.pConstantDeclaration = new ConstantDeclarationElements();
this.pGlobalDeclaration = new GlobalDeclarationElements();
this.pVariableRef = new VariableRefElements();
this.pInputArgList = new InputArgListElements();
this.pInputArg = new InputArgElements();
this.pLocalArg = new LocalArgElements();
this.pOutputArgList = new OutputArgListElements();
this.pOutputArg = new OutputArgElements();
this.pType = new TypeElements();
this.pAttributeBlock = new AttributeBlockElements();
this.pAttribute = new AttributeElements();
this.pPrecondition = new PreconditionElements();
this.pPostcondition = new PostconditionElements();
this.pDefineUseRef = new DefineUseRefElements();
this.pDefine = new DefineElements();
this.pUses = new UsesElements();
this.pStatementBlock = new StatementBlockElements();
this.pStatement = new StatementElements();
this.pVoidStatement = new VoidStatementElements();
this.pAssignmentStatement = new AssignmentStatementElements();
this.pIfThenElseStatement = new IfThenElseStatementElements();
this.pElse = new ElseElements();
this.pWhileStatement = new WhileStatementElements();
this.pForStatement = new ForStatementElements();
this.pLabelStatement = new LabelStatementElements();
this.pGotoStatement = new GotoStatementElements();
this.pEquationBlock = new EquationBlockElements();
this.pEquation = new EquationElements();
this.pIdList = new IdListElements();
this.pExpr = new ExprElements();
this.pIfThenElseExpr = new IfThenElseExprElements();
this.pChoiceExpr = new ChoiceExprElements();
this.pImpliesExpr = new ImpliesExprElements();
this.pOrExpr = new OrExprElements();
this.pAndExpr = new AndExprElements();
this.pRelationalOp = new RelationalOpElements();
this.pRelationalExpr = new RelationalExprElements();
this.pPlusExpr = new PlusExprElements();
this.pMultExpr = new MultExprElements();
this.pUnaryExpr = new UnaryExprElements();
this.pAccessExpr = new AccessExprElements();
this.pFunctionRef = new FunctionRefElements();
this.pTerminalExpr = new TerminalExprElements();
this.pArrayExpr = new ArrayExprElements();
this.pRecordExpr = new RecordExprElements();
this.pRecordFieldExpr = new RecordFieldExprElements();
this.pExprList = new ExprListElements();
this.tINT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.INT");
this.tBOOLEAN = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.BOOLEAN");
this.tREAL = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.REAL");
this.tID = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.ID");
this.tSTRING = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.STRING");
this.tML_COMMENT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.ML_COMMENT");
this.tSL_COMMENT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.SL_COMMENT");
this.tWS = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.WS");
this.tANY_OTHER = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "com.rockwellcollins.atc.Limp.ANY_OTHER");
this.pExtendedType = new ExtendedTypeElements();
this.pExtendedExpr = new ExtendedExprElements();
}
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
Grammar grammar = grammarProvider.getGrammar(this);
while (grammar != null) {
if ("com.rockwellcollins.atc.Limp".equals(grammar.getName())) {
return grammar;
}
List<Grammar> grammars = grammar.getUsedGrammars();
if (!grammars.isEmpty()) {
grammar = grammars.iterator().next();
} else {
return null;
}
}
return grammar;
}
@Override
public Grammar getGrammar() {
return grammar;
}
//Specification:
// declarations+=Declaration*;
public SpecificationElements getSpecificationAccess() {
return pSpecification;
}
public ParserRule getSpecificationRule() {
return getSpecificationAccess().getRule();
}
//Declaration:
// Import
// | Comment
// | ExternalFunction
// | ExternalProcedure
// | LocalFunction
// | LocalProcedure
// | ConstantDeclaration
// | GlobalDeclaration
// | TypeDeclaration;
public DeclarationElements getDeclarationAccess() {
return pDeclaration;
}
public ParserRule getDeclarationRule() {
return getDeclarationAccess().getRule();
}
//Comment:
// comment=SEMANTIC_COMMENT;
public CommentElements getCommentAccess() {
return pComment;
}
public ParserRule getCommentRule() {
return getCommentAccess().getRule();
}
//terminal SEMANTIC_COMMENT:
// '/#'->'#/';
public TerminalRule getSEMANTIC_COMMENTRule() {
return tSEMANTIC_COMMENT;
}
//Import:
// 'import' importURI=STRING;
public ImportElements getImportAccess() {
return pImport;
}
public ParserRule getImportRule() {
return getImportAccess().getRule();
}
//ExternalFunction:
// 'external' 'function' name=ID '(' inputs=InputArgList ')' 'returns' '(' output=OutputArg ')';
public ExternalFunctionElements getExternalFunctionAccess() {
return pExternalFunction;
}
public ParserRule getExternalFunctionRule() {
return getExternalFunctionAccess().getRule();
}
//ExternalProcedure:
// 'external' 'procedure' name=ID '(' inputs=InputArgList ')' 'returns' '(' outputs=OutputArgList ')'
// attributeBlock=AttributeBlock;
public ExternalProcedureElements getExternalProcedureAccess() {
return pExternalProcedure;
}
public ParserRule getExternalProcedureRule() {
return getExternalProcedureAccess().getRule();
}
//LocalFunction:
// 'function' name=ID '(' inputs=InputArgList ')' 'returns' '(' output=OutputArg ')'
// varBlock=VarBlock 'equations' equationBlock=EquationBlock;
public LocalFunctionElements getLocalFunctionAccess() {
return pLocalFunction;
}
public ParserRule getLocalFunctionRule() {
return getLocalFunctionAccess().getRule();
}
//LocalProcedure:
// 'procedure' name=ID '(' inputs=InputArgList ')' 'returns' '(' outputs=OutputArgList ')'
// varBlock=VarBlock attributeBlock=AttributeBlock 'statements' statementblock=StatementBlock;
public LocalProcedureElements getLocalProcedureAccess() {
return pLocalProcedure;
}
public ParserRule getLocalProcedureRule() {
return getLocalProcedureAccess().getRule();
}
//TypeDeclaration:
// {TypeAlias} 'type' name=ID '=' type=Type | EnumTypeDef
// | RecordTypeDef
// | ArrayTypeDef
// | AbstractTypeDef;
public TypeDeclarationElements getTypeDeclarationAccess() {
return pTypeDeclaration;
}
public ParserRule getTypeDeclarationRule() {
return getTypeDeclarationAccess().getRule();
}
//VarBlock:
// {SomeVarBlock} 'var' '{' locals+=LocalArg* '}'
// | {NoVarBlock};
public VarBlockElements getVarBlockAccess() {
return pVarBlock;
}
public ParserRule getVarBlockRule() {
return getVarBlockAccess().getRule();
}
//EnumTypeDef:
// 'type' 'enum' name=ID '=' '{' enumerations+=EnumValue (',' enumerations+=EnumValue)* '}';
public EnumTypeDefElements getEnumTypeDefAccess() {
return pEnumTypeDef;
}
public ParserRule getEnumTypeDefRule() {
return getEnumTypeDefAccess().getRule();
}
//EnumValue:
// {EnumValue} name=ID;
public EnumValueElements getEnumValueAccess() {
return pEnumValue;
}
public ParserRule getEnumValueRule() {
return getEnumValueAccess().getRule();
}
//RecordTypeDef:
// 'type' 'record' name=ID '=' '{' fields+=RecordFieldType (',' fields+=RecordFieldType)* '}';
public RecordTypeDefElements getRecordTypeDefAccess() {
return pRecordTypeDef;
}
public ParserRule getRecordTypeDefRule() {
return getRecordTypeDefAccess().getRule();
}
//ArrayTypeDef:
// 'type' 'array' name=ID '=' baseType=Type '[' size=INT ']';
public ArrayTypeDefElements getArrayTypeDefAccess() {
return pArrayTypeDef;
}
public ParserRule getArrayTypeDefRule() {
return getArrayTypeDefAccess().getRule();
}
//AbstractTypeDef:
// 'type' 'abstract' name=ID;
public AbstractTypeDefElements getAbstractTypeDefAccess() {
return pAbstractTypeDef;
}
public ParserRule getAbstractTypeDefRule() {
return getAbstractTypeDefAccess().getRule();
}
//RecordFieldType:
// fieldName=ID ':' fieldType=Type;
public RecordFieldTypeElements getRecordFieldTypeAccess() {
return pRecordFieldType;
}
public ParserRule getRecordFieldTypeRule() {
return getRecordFieldTypeAccess().getRule();
}
//ConstantDeclaration:
// 'constant' name=ID ':' type=Type ('=' expr=Expr)?;
public ConstantDeclarationElements getConstantDeclarationAccess() {
return pConstantDeclaration;
}
public ParserRule getConstantDeclarationRule() {
return getConstantDeclarationAccess().getRule();
}
//GlobalDeclaration:
// 'global' name=ID ':' type=Type;
public GlobalDeclarationElements getGlobalDeclarationAccess() {
return pGlobalDeclaration;
}
public ParserRule getGlobalDeclarationRule() {
return getGlobalDeclarationAccess().getRule();
}
//VariableRef:
// InputArg
// | LocalArg
// | OutputArg
// | ConstantDeclaration
// | GlobalDeclaration
// | EnumValue;
public VariableRefElements getVariableRefAccess() {
return pVariableRef;
}
public ParserRule getVariableRefRule() {
return getVariableRefAccess().getRule();
}
//InputArgList:
// {InputArgList} (inputArgs+=InputArg (',' inputArgs+=InputArg)*)?;
public InputArgListElements getInputArgListAccess() {
return pInputArgList;
}
public ParserRule getInputArgListRule() {
return getInputArgListAccess().getRule();
}
//InputArg:
// name=ID ':' type=Type;
public InputArgElements getInputArgAccess() {
return pInputArg;
}
public ParserRule getInputArgRule() {
return getInputArgAccess().getRule();
}
//LocalArg:
// name=ID ':' type=Type ';';
public LocalArgElements getLocalArgAccess() {
return pLocalArg;
}
public ParserRule getLocalArgRule() {
return getLocalArgAccess().getRule();
}
//OutputArgList:
// {OutputArgList} (outputArgs+=OutputArg (',' outputArgs+=OutputArg)*)?;
public OutputArgListElements getOutputArgListAccess() {
return pOutputArgList;
}
public ParserRule getOutputArgListRule() {
return getOutputArgListAccess().getRule();
}
//OutputArg:
// name=ID ':' type=Type;
public OutputArgElements getOutputArgAccess() {
return pOutputArg;
}
public ParserRule getOutputArgRule() {
return getOutputArgAccess().getRule();
}
//Type:
// {VoidType} 'void'
// | {BoolType} 'bool'
// | {IntegerType} 'int'
// | {RealType} 'real'
// | {StringType} 'string'
// | {EnumType} 'enum' enumDef=[EnumTypeDef] | {RecordType} 'record' recordDef=[RecordTypeDef] | {ArrayType} 'array'
// arrayDef=[ArrayTypeDef] | {AbstractType} 'abstract' abstractDef=[AbstractTypeDef] | {NamedType} alias=[TypeAlias];
public TypeElements getTypeAccess() {
return pType;
}
public ParserRule getTypeRule() {
return getTypeAccess().getRule();
}
//AttributeBlock:
// {SomeAttributeBlock} 'attributes' '{' attributeList+=Attribute* '}'
// | {NoAttributeBlock};
public AttributeBlockElements getAttributeBlockAccess() {
return pAttributeBlock;
}
public ParserRule getAttributeBlockRule() {
return getAttributeBlockAccess().getRule();
}
//Attribute:
// Precondition
// | Postcondition
// | Define
// | Uses;
public AttributeElements getAttributeAccess() {
return pAttribute;
}
public ParserRule getAttributeRule() {
return getAttributeAccess().getRule();
}
//Precondition:
// 'precondition' name=ID '=' expr=Expr ';';
public PreconditionElements getPreconditionAccess() {
return pPrecondition;
}
public ParserRule getPreconditionRule() {
return getPreconditionAccess().getRule();
}
//Postcondition:
// 'postcondition' name=ID '=' expr=Expr ';';
public PostconditionElements getPostconditionAccess() {
return pPostcondition;
}
public ParserRule getPostconditionRule() {
return getPostconditionAccess().getRule();
}
//DefineUseRef:
// referenceExpr=Expr;
public DefineUseRefElements getDefineUseRefAccess() {
return pDefineUseRef;
}
public ParserRule getDefineUseRefRule() {
return getDefineUseRefAccess().getRule();
}
//Define:
// 'defines' elements+=DefineUseRef (',' elements+=DefineUseRef)* ';';
public DefineElements getDefineAccess() {
return pDefine;
}
public ParserRule getDefineRule() {
return getDefineAccess().getRule();
}
//Uses:
// 'uses' elements+=DefineUseRef (',' elements+=DefineUseRef)* ';';
public UsesElements getUsesAccess() {
return pUses;
}
public ParserRule getUsesRule() {
return getUsesAccess().getRule();
}
//StatementBlock:
// {StatementBlock} '{' statements+=Statement* '}';
public StatementBlockElements getStatementBlockAccess() {
return pStatementBlock;
}
public ParserRule getStatementBlockRule() {
return getStatementBlockAccess().getRule();
}
//Statement:
// VoidStatement
// | AssignmentStatement
// | IfThenElseStatement
// | WhileStatement
// | ForStatement
// | GotoStatement
// | LabelStatement
// | {BreakStatement} 'break' ';'
// | {ContinueStatement} 'continue' ';'
// | {ReturnStatement} 'return' ';';
public StatementElements getStatementAccess() {
return pStatement;
}
public ParserRule getStatementRule() {
return getStatementAccess().getRule();
}
//VoidStatement:
// expr=Expr ';';
public VoidStatementElements getVoidStatementAccess() {
return pVoidStatement;
}
public ParserRule getVoidStatementRule() {
return getVoidStatementAccess().getRule();
}
//AssignmentStatement:
// ids=IdList '=' rhs=Expr ';';
public AssignmentStatementElements getAssignmentStatementAccess() {
return pAssignmentStatement;
}
public ParserRule getAssignmentStatementRule() {
return getAssignmentStatementAccess().getRule();
}
//IfThenElseStatement:
// 'if' cond=Expr 'then' thenBlock=StatementBlock else=Else;
public IfThenElseStatementElements getIfThenElseStatementAccess() {
return pIfThenElseStatement;
}
public ParserRule getIfThenElseStatementRule() {
return getIfThenElseStatementAccess().getRule();
}
//Else:
// {ElseBlock} 'else' block=StatementBlock | {ElseIf} 'else' ifThenElse=IfThenElseStatement | {NoElse};
public ElseElements getElseAccess() {
return pElse;
}
public ParserRule getElseRule() {
return getElseAccess().getRule();
}
//WhileStatement:
// 'while' cond=Expr block=StatementBlock;
public WhileStatementElements getWhileStatementAccess() {
return pWhileStatement;
}
public ParserRule getWhileStatementRule() {
return getWhileStatementAccess().getRule();
}
//ForStatement:
// 'for' '(' initStatement=AssignmentStatement limitExpr=Expr ';' incrementStatement=AssignmentStatement ')'
// block=StatementBlock;
public ForStatementElements getForStatementAccess() {
return pForStatement;
}
public ParserRule getForStatementRule() {
return getForStatementAccess().getRule();
}
//LabelStatement:
// 'label' name=ID ';';
public LabelStatementElements getLabelStatementAccess() {
return pLabelStatement;
}
public ParserRule getLabelStatementRule() {
return getLabelStatementAccess().getRule();
}
//GotoStatement:
// {GotoStatement} 'goto' label=[LabelStatement] ('when' whenExpr=Expr)? ';';
public GotoStatementElements getGotoStatementAccess() {
return pGotoStatement;
}
public ParserRule getGotoStatementRule() {
return getGotoStatementAccess().getRule();
}
//EquationBlock:
// {EquationBlock} '{' equations+=Equation* '}';
public EquationBlockElements getEquationBlockAccess() {
return pEquationBlock;
}
public ParserRule getEquationBlockRule() {
return getEquationBlockAccess().getRule();
}
//Equation:
// VoidStatement
// | AssignmentStatement;
public EquationElements getEquationAccess() {
return pEquation;
}
public ParserRule getEquationRule() {
return getEquationAccess().getRule();
}
//IdList:
// ids+=[VariableRef] (',' ids+=[VariableRef])*;
public IdListElements getIdListAccess() {
return pIdList;
}
public ParserRule getIdListRule() {
return getIdListAccess().getRule();
}
//Expr:
// IfThenElseExpr;
public ExprElements getExprAccess() {
return pExpr;
}
public ParserRule getExprRule() {
return getExprAccess().getRule();
}
//IfThenElseExpr Expr:
// ChoiceExpr (=> ({IfThenElseExpr.condExpr=current} '?') thenExpr=Expr ':' elseExpr=Expr)?
public IfThenElseExprElements getIfThenElseExprAccess() {
return pIfThenElseExpr;
}
public ParserRule getIfThenElseExprRule() {
return getIfThenElseExprAccess().getRule();
}
//ChoiceExpr Expr:
// {ChoiceExpr} 'choice' '(' first=Expr ',' second=Expr ')' //analysis cannot be run if a spec contains this
// | ImpliesExpr
public ChoiceExprElements getChoiceExprAccess() {
return pChoiceExpr;
}
public ParserRule getChoiceExprRule() {
return getChoiceExprAccess().getRule();
}
//ImpliesExpr Expr:
// OrExpr (=> ({BinaryExpr.left=current} op='=>') right=ImpliesExpr)?
public ImpliesExprElements getImpliesExprAccess() {
return pImpliesExpr;
}
public ParserRule getImpliesExprRule() {
return getImpliesExprAccess().getRule();
}
//OrExpr Expr:
// AndExpr (=> ({BinaryExpr.left=current} op='or') right=AndExpr)*
public OrExprElements getOrExprAccess() {
return pOrExpr;
}
public ParserRule getOrExprRule() {
return getOrExprAccess().getRule();
}
//AndExpr Expr:
// RelationalExpr (=> ({BinaryExpr.left=current} op='and') right=RelationalExpr)*
public AndExprElements getAndExprAccess() {
return pAndExpr;
}
public ParserRule getAndExprRule() {
return getAndExprAccess().getRule();
}
//RelationalOp:
// '<' | '<=' | '>' | '>=' | '==' | '<>';
public RelationalOpElements getRelationalOpAccess() {
return pRelationalOp;
}
public ParserRule getRelationalOpRule() {
return getRelationalOpAccess().getRule();
}
//RelationalExpr Expr:
// PlusExpr (=> ({BinaryExpr.left=current} op=RelationalOp) right=PlusExpr)?
public RelationalExprElements getRelationalExprAccess() {
return pRelationalExpr;
}
public ParserRule getRelationalExprRule() {
return getRelationalExprAccess().getRule();
}
//PlusExpr Expr:
// MultExpr (=> ({BinaryExpr.left=current} op=('+' | '-')) right=MultExpr)*
public PlusExprElements getPlusExprAccess() {
return pPlusExpr;
}
public ParserRule getPlusExprRule() {
return getPlusExprAccess().getRule();
}
//MultExpr Expr:
// UnaryExpr (=> ({BinaryExpr.left=current} op=('*' | '/')) right=UnaryExpr)*
public MultExprElements getMultExprAccess() {
return pMultExpr;
}
public ParserRule getMultExprRule() {
return getMultExprAccess().getRule();
}
//UnaryExpr Expr:
// AccessExpr
// | {UnaryNegationExpr} 'not' expr=UnaryExpr | {UnaryMinusExpr} '-' expr=UnaryExpr
public UnaryExprElements getUnaryExprAccess() {
return pUnaryExpr;
}
public ParserRule getUnaryExprRule() {
return getUnaryExprAccess().getRule();
}
//AccessExpr Expr:
// TerminalExpr (=> ({RecordAccessExpr.record=current} '.') field=ID
// | => ({RecordUpdateExpr.record=current} '{' field=ID ':=') value=Expr '}'
// | => ({ArrayAccessExpr.array=current} '[') index=Expr (=> ({ArrayUpdateExpr.access=current} ':=') value=Expr)? ']')*
public AccessExprElements getAccessExprAccess() {
return pAccessExpr;
}
public ParserRule getAccessExprRule() {
return getAccessExprAccess().getRule();
}
//FunctionRef:
// ExternalFunction
// | ExternalProcedure
// | LocalFunction
// | LocalProcedure;
public FunctionRefElements getFunctionRefAccess() {
return pFunctionRef;
}
public ParserRule getFunctionRefRule() {
return getFunctionRefAccess().getRule();
}
//TerminalExpr Expr:
// '(' Expr ')'
// | {BooleanLiteralExpr} boolVal=BOOLEAN | {IntegerLiteralExpr} intVal=INT | {IntegerWildCardExpr} '*' //analysis cannot be run if this expression is present
// | {RealLiteralExpr} realVal=REAL | {StringLiteralExpr} stringVal=STRING | {InitExpr} 'init' id=[VariableRef] |
// {SecondInit} 'second_init' id=[VariableRef] | ArrayExpr
// | RecordExpr
// | {IdExpr} id=[VariableRef] | {FcnCallExpr} id=[FunctionRef] '(' exprs=ExprList ')'
public TerminalExprElements getTerminalExprAccess() {
return pTerminalExpr;
}
public ParserRule getTerminalExprRule() {
return getTerminalExprAccess().getRule();
}
//ArrayExpr:
// 'array' arrayDefinition=[ArrayTypeDef] '[' exprList+=Expr (',' exprList+=Expr)* ']';
public ArrayExprElements getArrayExprAccess() {
return pArrayExpr;
}
public ParserRule getArrayExprRule() {
return getArrayExprAccess().getRule();
}
//RecordExpr:
// 'record' recordDefinition=[RecordTypeDef] '{' fieldExprList+=RecordFieldExpr (',' fieldExprList+=RecordFieldExpr)*
// '}';
public RecordExprElements getRecordExprAccess() {
return pRecordExpr;
}
public ParserRule getRecordExprRule() {
return getRecordExprAccess().getRule();
}
//RecordFieldExpr:
// fieldName=ID '=' fieldExpr=Expr;
public RecordFieldExprElements getRecordFieldExprAccess() {
return pRecordFieldExpr;
}
public ParserRule getRecordFieldExprRule() {
return getRecordFieldExprAccess().getRule();
}
//ExprList:
// {ExprList} (exprList+=Expr (',' exprList+=Expr)*)?;
public ExprListElements getExprListAccess() {
return pExprList;
}
public ParserRule getExprListRule() {
return getExprListAccess().getRule();
}
//terminal INT returns ecore::EBigInteger:
// '0'..'9'+;
public TerminalRule getINTRule() {
return tINT;
}
//terminal BOOLEAN:
// 'true' | 'false';
public TerminalRule getBOOLEANRule() {
return tBOOLEAN;
}
//terminal REAL:
// INT '.' INT;
public TerminalRule getREALRule() {
return tREAL;
}
//terminal ID:
// '^'? ('a'..'z' | 'A'..'Z' | '_') ('a'..'z' | 'A'..'Z' | '_' | '0'..'9')*;
public TerminalRule getIDRule() {
return tID;
}
//terminal STRING:
// '"' ('\\' . | !('\\' | '"'))* '"' |
// "'" ('\\' . | !('\\' | "'"))* "'";
public TerminalRule getSTRINGRule() {
return tSTRING;
}
//terminal ML_COMMENT:
// '/ *'->'* /';
public TerminalRule getML_COMMENTRule() {
return tML_COMMENT;
}
//terminal SL_COMMENT:
// '//' !('\n' | '\r')* ('\r'? '\n')?;
public TerminalRule getSL_COMMENTRule() {
return tSL_COMMENT;
}
//terminal WS:
// ' ' | '\t' | '\r' | '\n'+;
public TerminalRule getWSRule() {
return tWS;
}
//terminal ANY_OTHER:
// .;
public TerminalRule getANY_OTHERRule() {
return tANY_OTHER;
}
/// * This section captures all of the AST objects that we include in the language, but do not
// * allow the user to write. They are used to make transformations to the code and simplify
// * our tasks.
// * / ExtendedType Type:
// {TupleType} '(' typeList+=Type (',' typeList+=Type)* ')'
public ExtendedTypeElements getExtendedTypeAccess() {
return pExtendedType;
}
public ParserRule getExtendedTypeRule() {
return getExtendedTypeAccess().getRule();
}
//ExtendedExpr Expr:
// {FreshVariable} '@' value=INT '@'
public ExtendedExprElements getExtendedExprAccess() {
return pExtendedExpr;
}
public ParserRule getExtendedExprRule() {
return getExtendedExprAccess().getRule();
}
}
|
package me.leafs.cf.gui;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import me.leafs.cf.ChatFilter;
import me.leafs.cf.config.ChatFilterConfig;
import me.leafs.cf.filters.BaseFilter;
import me.leafs.cf.gui.elements.FilterButton;
import me.leafs.cf.gui.elements.FilterTile;
import me.leafs.cf.utils.ChatFilterGuis;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.gui.ScaledResolution;
import net.minecraft.client.resources.I18n;
import org.lwjgl.input.Mouse;
import org.lwjgl.opengl.GL11;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import static me.leafs.cf.utils.ChatFilterGuis.BTN_H;
@RequiredArgsConstructor
public class GuiFilterList extends GuiScreen {
private final GuiScreen lastScreen;
@Getter private int scroll = 0;
@Getter private boolean scrollingEnabled = false;
private final List<FilterTile> tiles = new ArrayList<>();
@Override
public void initGui() {
tiles.clear();
// simple back button
buttonList.add(new FilterButton(1, 5, 5, BTN_H, BTN_H, "<-"));
// add all the filters to a tile
for (BaseFilter filter : ChatFilter.instance.getConfig().getFilters()) {
tiles.add(new FilterTile(filter, this));
}
}
@Override
public void drawScreen(int mouseX, int mouseY, float partialTicks) {
drawDefaultBackground();
drawCenteredString(fontRendererObj, I18n.format("cf.gui.list.title"), width / 2, height / 3 - 10, 0xffffff);
// draw background
int right = width / 2 + width / 4;
drawRect(width / 4, height / 3 + 10, right, height, ChatFilterGuis.MAIN_COLOR.getRGB());
ScaledResolution res = new ScaledResolution(mc);
int factor = res.getScaleFactor();
GL11.glEnable(GL11.GL_SCISSOR_TEST);
// tile dimensions
int h = 50;
// render each tile with spacing between them
int scrollProg = scroll * 10;
int y = scrollProg;
for (FilterTile tile : tiles) {
tile.renderTile(mouseX, mouseY, width / 4 + 5, height / 3 + 20 + y, right - width / 4 - 10, h);
y += h + 5;
}
// crop the list to be within the bounds
GL11.glScissor(factor * (width / 4), 0, factor * right, factor * height - factor * height / 3 - factor * 10);
GL11.glDisable(GL11.GL_SCISSOR_TEST);
scrollingEnabled = height / 3 + 20 + (y - scrollProg) > height;
if (scrollingEnabled) {
scroll = 0;
}
super.drawScreen(mouseX, mouseY, partialTicks);
}
@Override
public void handleMouseInput() throws IOException {
super.handleMouseInput();
int dWheel = Mouse.getDWheel();
if (dWheel == 0 || !scrollingEnabled) {
return;
}
scroll += dWheel > 1 ? 1 : -1;
}
@Override
protected void mouseClicked(int mouseX, int mouseY, int mouseButton) throws IOException {
super.mouseClicked(mouseX, mouseY, mouseButton);
// click on the tiles
FilterTile deleted = null;
for (FilterTile tile : tiles) {
boolean isDeleted = tile.mouseClick(mouseX, mouseY);
if (!isDeleted) {
continue;
}
deleted = tile;
break;
}
// remove the filter and tile if one was deleted
if (deleted != null) {
ChatFilter cf = ChatFilter.instance;
cf.getConfig().getFilters().remove(deleted.getFilter());
cf.getFilterHandler().remove(deleted.getFilter().getId());
tiles.remove(deleted);
}
}
@Override
protected void actionPerformed(GuiButton button) {
if (button.id == 1) {
mc.displayGuiScreen(lastScreen);
}
}
}
|
package lapechealaqueue.episode1.activities;
import java.io.IOException;
import java.util.List;
import java.util.Vector;
import lapechealaqueue.episode1.Activities;
import lapechealaqueue.episode1.Home;
import lapechealaqueue.episode1.R;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.graphics.drawable.AnimationDrawable;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.os.PowerManager;
import android.util.AttributeSet;
import android.view.KeyEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.view.animation.AccelerateInterpolator;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.view.animation.AnimationSet;
import android.view.animation.DecelerateInterpolator;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
public class Activitie1 extends DragWithFleche {
protected PowerManager.WakeLock mWakeLock;
MediaPlayer mpFaux, mpVrai, mpIncomplet;
AnimationDrawable frameAnimation;
private boolean scalingComplete = false;
Activity act;
AnimationDrawable frameAnimation3;
ImageView obj_1, obj_2, obj_3, obj_4, obj_5;
LinearLayout za1, za2, za3, za4, za5;
LinearLayout zd1, zd2, zd3, zd4, zd5;
ImageView exit, home, oui, non, rep_1, rep_2, rep_3, valider, repeat, vrai,ogre_exit,
incomplet, faux,rep_c1,rep_c2,rep_c3,fille_non,fille_oui,main_fille,fille_fictif;
Boolean _rep_1 = false, _rep_2 = false, _rep_3 = false;
final Context context = this;
AnimationSet animation;
private static final long active = 2000;
private static final int STOP = 0;
private static final int STOP2 = 1;
View layout_activite;
private ImageView popup_suivant, popup_acceuil, popup_quiz;
private boolean testEpisode = false;
private String packageName;
private List<PackageInfo> packs;
View exit2;
View layout;
public void onCreate(Bundle savedInstanceState) {
setContentView(R.layout.activitie1);
act = this;
mpFaux = new MediaPlayer();
mpVrai = new MediaPlayer();
mpIncomplet = new MediaPlayer();
layout_activite = (View) findViewById(R.id.layout_activite);
popup_acceuil = (ImageView) findViewById(R.id.activite);
popup_quiz = (ImageView) findViewById(R.id.quiz);
popup_suivant = (ImageView) findViewById(R.id.suivant);
content_line = (RelativeLayout) findViewById(R.id.content_line);
obj_1 = (ImageView) findViewById(R.id.depart1);
obj_2 = (ImageView) findViewById(R.id.depart2);
obj_3 = (ImageView) findViewById(R.id.depart3);
images = new Vector<View>();
images.add(obj_1);
images.add(obj_2);
images.add(obj_3);
rep_images = new Vector<View>();
rep_images.add(obj_3);
rep_images.add(obj_2);
rep_images.add(obj_1);
image_id = new Vector<Image>();
image_id.add(new Image(R.drawable.boule_depart_ex3_sci_tri1, R.drawable.boule_verte,
R.drawable.boule_rouge));
zd1 = (LinearLayout) findViewById(R.id.zd1);
zd2 = (LinearLayout) findViewById(R.id.zd2);
zd3 = (LinearLayout) findViewById(R.id.zd3);
//ogre_exit= (ImageView) findViewById(R.id.ogre_exit);
zone_depart = new Vector<ViewGroup>();
zone_depart.add(zd1);
zone_depart.add(zd2);
zone_depart.add(zd3);
za1 = (LinearLayout) findViewById(R.id.za1);
za2 = (LinearLayout) findViewById(R.id.za2);
za3 = (LinearLayout) findViewById(R.id.za3);
zone_arrivee = new Vector<ViewGroup>();
zone_arrivee.add(za1);
zone_arrivee.add(za2);
zone_arrivee.add(za3);
exit = (ImageView) findViewById(R.id.exit);
home = (ImageView) findViewById(R.id.home);
oui = (ImageView) findViewById(R.id.btn_oui);
non = (ImageView) findViewById(R.id.btn_non);
exit2 = (View) findViewById(R.id.exit_popup);
//
// fille_non = (ImageView) findViewById(R.id.fille_non);
// fille_oui = (ImageView) findViewById(R.id.fille_oui);
// main_fille = (ImageView) findViewById(R.id.main_fille);
// fille_fictif = (ImageView) findViewById(R.id.fille_fictif);
vrai = (ImageView) findViewById(R.id.vrai);
faux = (ImageView) findViewById(R.id.faux);
incomplet = (ImageView) findViewById(R.id.incomplet);
repeat = (ImageView) findViewById(R.id.repeat);
valider = (ImageView) findViewById(R.id.valider);
vrai = (ImageView) findViewById(R.id.vrai);
faux = (ImageView) findViewById(R.id.faux);
incomplet = (ImageView) findViewById(R.id.incomplet);
Animation fadeIn = new AlphaAnimation(0, 1);
fadeIn.setInterpolator(new DecelerateInterpolator());
fadeIn.setDuration(2000);
super.onCreate(savedInstanceState);
Animation fadeOut = new AlphaAnimation(1, 0);
fadeOut.setInterpolator(new AccelerateInterpolator());
fadeOut.setStartOffset(2500);
fadeOut.setDuration(2000);
animation = new AnimationSet(true);
animation.addAnimation(fadeIn);
animation.addAnimation(fadeOut);
PackageManager pm2 = getPackageManager();
packs = pm2.getInstalledPackages(0);
// ogre_exit.setBackgroundResource(R.drawable.anim_ogre_exit);
// frameAnimation3 = (AnimationDrawable) ogre_exit.getBackground();
// frameAnimation3.setCallback(ogre_exit);
// frameAnimation3.setOneShot(false);
// frameAnimation3.setVisible(false, true);
// ogre_exit.setBackgroundDrawable(frameAnimation3);
//
// ogre_exit.post(new Runnable() {
// public void run() {
// frameAnimation3.start();
// }
// });
testEpisode();
repeat.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
Intent i2 = getIntent();
startActivity(i2);
act.finish();
}
});
valider.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
faux.setBackgroundDrawable(null);
vrai.setBackgroundDrawable(null);
incomplet.setBackgroundDrawable(null);
KillMedia();
switch (verifierReponse()) {
case 0:
// main_fille.setVisibility(View.INVISIBLE);
// fille_non.setVisibility(View.INVISIBLE);
// fille_oui.setVisibility(View.INVISIBLE);
// fille_fictif.setVisibility(View.VISIBLE);
incomplet.setVisibility(1);
incomplet.setBackgroundResource(R.drawable.bulle_incomplet);
incomplet.startAnimation(animation);
incomplet.setVisibility(View.INVISIBLE);
break;
case 1:
// main_fille.setVisibility(View.VISIBLE);
// fille_non.setVisibility(View.VISIBLE);
// fille_oui.setVisibility(View.INVISIBLE);
// fille_fictif.setVisibility(View.INVISIBLE);
//
// Animation scale = AnimationUtils.loadAnimation(Activitie1.this,
// R.anim.anim_main);
// main_fille.startAnimation(scale);
mpFaux = MediaPlayer.create(Activitie1.this, R.raw.faux);
faux.setVisibility(1);
faux.setBackgroundResource(R.drawable.bulle_faux);
faux.startAnimation(animation);
faux.setVisibility(View.INVISIBLE);
mediaFaux();
// Message msg = new Message();
// msg.what = STOP;
// Handler.sendMessageDelayed(msg, active);
break;
case 2:
mpVrai = MediaPlayer.create(Activitie1.this, R.raw.vrai);
mediaVrais();
// main_fille.setBackgroundDrawable(null);
// fille_non.setVisibility(View.INVISIBLE);
// fille_oui.setVisibility(View.VISIBLE);
// fille_fictif.setVisibility(View.INVISIBLE);
//
vrai.setVisibility(1);
vrai.setBackgroundResource(R.drawable.bulle_vrai);
vrai.startAnimation(animation);
vrai.setVisibility(View.INVISIBLE);
// fille_oui.setBackgroundResource(R.drawable.anim_fille);
// frameAnimation = (AnimationDrawable) fille_oui.getBackground();
// frameAnimation.setCallback(fille_oui);
// frameAnimation.setOneShot(false);
// frameAnimation.setVisible(false, true);
// fille_oui.setBackgroundDrawable(frameAnimation);
//
// fille_oui.post(new Runnable() {
// public void run() {
// frameAnimation.start();
// }
// });
//
Message msg = new Message();
msg.what = STOP2;
HandlerActivite.sendMessageDelayed(msg, active);
break;
}
}
});
exit.setOnClickListener(new OnClickListener() {
public void onClick(View arg0) {
exit2.setVisibility(View.VISIBLE);
oui.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
finish();
}
});
non.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
exit2.setVisibility(View.INVISIBLE);
}
});
exit2.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
}
});
}
});
home.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
Intent i2 = new Intent(getApplicationContext(), Home.class);
startActivity(i2);
act.finish();
}
});
final PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
this.mWakeLock = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK,
"My Tag");
this.mWakeLock.acquire();
}
/******************************************/
public boolean onKeyDown(int keyCode, KeyEvent event) {
if ((keyCode == KeyEvent.KEYCODE_BACK)) {
Intent i = new Intent(getApplicationContext(), Activities.class);
startActivity(i);
overridePendingTransition(R.anim.view_transition_in_right,
R.anim.view_transition_out_right);
finish();
}
return super.onKeyDown(keyCode, event);
}
/******************************************/
protected void onRestart() {
super.onRestart();
}
protected void onPause() {
super.onPause();
KillMedia();
finish();
}
public void onDestroy() {
this.mWakeLock.release();
super.onDestroy();
}
// private Handler Handler = new Handler() {
// public void handleMessage(Message msg) {
//
// _rep_1 = false;
// _rep_3 = false;
//
// rep_1.setBackgroundResource(R.drawable.choix1_act1);
// rep_3.setBackgroundResource(R.drawable.choix3_act1);
// super.handleMessage(msg);
// }
//
// };
//
private Handler HandlerActivite = new Handler() {
public void handleMessage(Message msg) {
popupActivite();
super.handleMessage(msg);
}
};
// *********
private void mediaFaux() {
if (mpVrai.isPlaying() || mpFaux.isPlaying() || mpIncomplet.isPlaying()) {
try {
mpVrai.stop();
mpFaux.stop();
mpIncomplet.stop();
mpFaux.prepare();
mpFaux.start();
} catch (IllegalStateException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
} else {
mpFaux.start();
}
}
private void mediaIncomp() {
if (mpVrai.isPlaying() || mpFaux.isPlaying() || mpIncomplet.isPlaying()) {
try {
mpVrai.stop();
mpFaux.stop();
mpIncomplet.stop();
mpIncomplet.prepare();
mpIncomplet.start();
} catch (IllegalStateException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
} else {
mpIncomplet.start();
}
}
private void mediaVrais() {
if (mpVrai.isPlaying() || mpFaux.isPlaying() || mpIncomplet.isPlaying()) {
try {
mpVrai.stop();
mpFaux.stop();
mpIncomplet.stop();
mpVrai.prepare();
mpVrai.start();
} catch (IllegalStateException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
} else {
mpVrai.start();
}
}
private void KillMedia() {
//Handler.removeMessages(STOP);
if (mpVrai.isPlaying() || mpFaux.isPlaying() || mpIncomplet.isPlaying()) {
try {
mpVrai.stop();
mpFaux.stop();
mpIncomplet.stop();
mpVrai.prepare();
mpFaux.prepare();
mpIncomplet.prepare();
} catch (IllegalStateException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
}
// ********
public void popupActivite() {
layout_activite.setVisibility(View.VISIBLE);
if (testEpisode == true) {
popup_suivant.setVisibility(View.VISIBLE);
}
popup_acceuil.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
Intent i2 = new Intent(getApplicationContext(), Home.class);
startActivity(i2);
act.finish();
}
});
popup_quiz.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
Intent i2 = new Intent(getApplicationContext(), Activities.class);
startActivity(i2);
act.finish();
}
});
popup_suivant.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
Intent i2 = new Intent(getApplicationContext(), Activitie2.class);
startActivity(i2);
act.finish();
}
});
// bg_popup_activite.setOnClickListener(new OnClickListener() {
// public void onClick(View v) {
//
// layout_activite.setVisibility(View.INVISIBLE);
//
// }
// });
//
layout_activite.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
// layout_activite.setVisibility(View.INVISIBLE);
}
});
}
// *****************
public void onWindowFocusChanged(boolean hasFocus) {
if (!scalingComplete) // only do this once
{
scaleContents(findViewById(R.id.contents),
findViewById(R.id.container));
scalingComplete = true;
}
super.onWindowFocusChanged(hasFocus);
}
/**
* Called when the views have been created. We override this in order to
* scale the UI, which we can't do before this.
*/
@Override
public View onCreateView(String name, Context context, AttributeSet attrs) {
View view = super.onCreateView(name, context, attrs);
return view;
}
/**
* Scales the contents of the given view so that it completely fills the
* given container on one axis (that is, we're scaling isotropically).
*
* @param rootView
* The view that contains the interface elements
* @param container
* The view into which the interface will be scaled
*/
private void scaleContents(View rootView, View container) {
// Compute the scaling ratio. Note that there are all kinds of games you
// could
// play here - you could, for example, allow the aspect ratio to be
// distorted
// by a certain percentage, or you could scale to fill the *larger*
// dimension
// of the container view (useful if, for example, the container view can
// scroll).
float xScale = (float) container.getWidth() / rootView.getWidth();
float yScale = (float) container.getHeight() / rootView.getHeight();
float scale = Math.min(xScale, yScale);
// Scale our contents
scaleViewAndChildren(rootView, scale);
}
/**
* Scale the given view, its contents, and all of its children by the given
* factor.
*
* @param root
* The root view of the UI subtree to be scaled
* @param scale
* The scaling factor
*/
public static void scaleViewAndChildren(View root, float scale) {
// Retrieve the view's layout information
ViewGroup.LayoutParams layoutParams = root.getLayoutParams();
// Scale the view itself
if (layoutParams.width != ViewGroup.LayoutParams.FILL_PARENT
&& layoutParams.width != ViewGroup.LayoutParams.WRAP_CONTENT) {
layoutParams.width *= scale;
}
if (layoutParams.height != ViewGroup.LayoutParams.FILL_PARENT
&& layoutParams.height != ViewGroup.LayoutParams.WRAP_CONTENT) {
layoutParams.height *= scale;
}
// If this view has margins, scale those too
if (layoutParams instanceof ViewGroup.MarginLayoutParams) {
ViewGroup.MarginLayoutParams marginParams = (ViewGroup.MarginLayoutParams) layoutParams;
marginParams.leftMargin *= scale;
marginParams.rightMargin *= scale;
marginParams.topMargin *= scale;
marginParams.bottomMargin *= scale;
}
root.setLayoutParams(layoutParams);
root.setPadding((int) (root.getPaddingLeft() * scale),
(int) (root.getPaddingTop() * scale),
(int) (root.getPaddingRight() * scale),
(int) (root.getPaddingBottom() * scale));
if (root instanceof TextView) {
TextView textView = (TextView) root;
textView.setTextSize(textView.getTextSize() * scale);
}
// If the root view is a ViewGroup, scale all of its children
// recursively
if (root instanceof ViewGroup) {
ViewGroup groupView = (ViewGroup) root;
for (int cnt = 0; cnt < groupView.getChildCount(); ++cnt)
scaleViewAndChildren(groupView.getChildAt(cnt), scale);
}
}
public void testEpisode() {
for (int i = 0; i < packs.size(); i++) {
PackageInfo p = packs.get(i);
packageName = p.packageName;
if (packageName.equals("lapechealaqueue.episode2")) {
testEpisode = true;
}
}
}
}
|
package br.com.luvva.challenge.test.utils;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
/**
* @author Amsterdam Luís
*/
public class JavaUtils
{
private JavaUtils ()
{
}
/**
* Reads the contents of a file in the resources folder.
*
* @param resource the relative path of the resource.
* @return the String with the contents of the file.
* @throws IOException if the file could not be accessed.
*/
public static String getResourceAsString (String resource) throws IOException
{
InputStream is = getResourceAsInputStream(resource);
StringBuilder sb = new StringBuilder();
try (BufferedReader br = new BufferedReader(new InputStreamReader(is, "UTF-8")))
{
for (int c = br.read(); c != -1; c = br.read())
{
sb.append((char) c);
}
}
return sb.toString();
}
/**
* Reads the contents of a file in the resources folder, returning its InputStream.
*
* @param resource the relative path of the resource.
* @return the InputStream with the contents of the file.
* @throws IOException if the file could not be accessed.
*/
public static InputStream getResourceAsInputStream (String resource) throws IOException
{
return JavaUtils.class.getResourceAsStream("/" + resource);
}
}
|
package org.sonar.plugins.profiler;
import org.sonar.api.web.AbstractRubyTemplate;
import org.sonar.api.web.Widget;
/**
* @author Evgeny Mandrikov
*/
public class ProfilerWidget extends AbstractRubyTemplate implements Widget {
public String getId() {
return "profiler-widget";
}
public String getTitle() {
return "Profiler widget";
}
@Override
protected String getTemplatePath() {
return "/org/sonar/plugins/profiler/profilerWidget.erb";
}
}
|
package com.base.crm.revisit.record.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.base.crm.revisit.record.dao.CustRevisitRecordMapper;
import com.base.crm.revisit.record.entity.CustRevisitRecord;
import com.base.crm.revisit.record.service.CustRevisitRecordService;
@Service
public class CustRevisitRecordServiceImpl implements CustRevisitRecordService {
@Autowired
private CustRevisitRecordMapper custRevisitRecordMapper;
@Override
public int deleteByPrimaryKey(Long returnVisit) {
return custRevisitRecordMapper.deleteByPrimaryKey(returnVisit);
}
@Override
public int insertSelective(CustRevisitRecord record) {
return custRevisitRecordMapper.insertSelective(record);
}
@Override
public CustRevisitRecord selectByPrimaryKey(Long returnVisit) {
return custRevisitRecordMapper.selectByPrimaryKey(returnVisit);
}
@Override
public int updateByPrimaryKeySelective(CustRevisitRecord record) {
return custRevisitRecordMapper.updateByPrimaryKeySelective(record);
}
@Override
public Long selectPageTotalCount(CustRevisitRecord revisit) {
return custRevisitRecordMapper.selectPageTotalCount(revisit);
}
@Override
public List<CustRevisitRecord> selectPageByObjectForList(CustRevisitRecord revisit) {
return custRevisitRecordMapper.selectPageByObjectForList(revisit);
}
}
|
package pro.eddiecache.kits.paxos.messages;
public class Abort implements SpecialMessage
{
private static final long serialVersionUID = 1L;
public final long viewNo;
public final long seqNo;
public Abort(long viewNo, long seqNo)
{
this.viewNo = viewNo;
this.seqNo = seqNo;
}
@Override
public MessageType getMessageType()
{
return MessageType.ABORT;
}
}
|
/*
* Copyright 2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.gradle.swiftpm.internal;
import org.gradle.swiftpm.Package;
import java.io.Serializable;
import java.util.List;
import java.util.Set;
public class DefaultPackage implements Package, Serializable {
private final Set<AbstractProduct> products;
private final List<Dependency> dependencies;
public DefaultPackage(Set<AbstractProduct> products, List<Dependency> dependencies) {
this.products = products;
this.dependencies = dependencies;
}
public List<Dependency> getDependencies() {
return dependencies;
}
@Override
public Set<AbstractProduct> getProducts() {
return products;
}
}
|
public class Worksite3 {
public static void main(String[] args) {
Worker alex = new Worker();
Tradesperson barbara = new Tradesperson();
Carpenter carol = new Carpenter();
//alex.doWoodwork(); //can't inherit from a subclass
//barbara.doWoodwork(); //can't inherit from a subclass
carol.doWoodwork(); //doWoodwork is part of Carpenter
}
}
|
/*
* Copyright (C) 2011-2013 GUIGUI Simon, fyhertz@gmail.com
*
* This file is part of Spydroid (http://code.google.com/p/spydroid-ipcamera/)
*
* Spydroid is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This source code is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this source code; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package net.majorkernelpanic.spydroid.ui;
import net.majorkernelpanic.http.TinyHttpServer;
import net.majorkernelpanic.spydroid.R;
import net.majorkernelpanic.spydroid.SpydroidApplication;
import net.majorkernelpanic.spydroid.api.CustomHttpServer;
import net.majorkernelpanic.spydroid.api.CustomRtspServer;
import net.majorkernelpanic.streaming.SessionBuilder;
import net.majorkernelpanic.streaming.gl.SurfaceView;
import net.majorkernelpanic.streaming.rtsp.RtspServer;
import android.app.AlertDialog;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.ComponentName;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.ServiceConnection;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.os.IBinder;
import android.os.PowerManager;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.app.NotificationCompat;
import android.support.v4.view.MenuItemCompat;
import android.support.v4.view.ViewPager;
import android.util.Log;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.SurfaceHolder;
import android.widget.LinearLayout;
import android.widget.Toast;
/**
* Spydroid basically launches an RTSP server and an HTTP server,
* clients can then connect to them and start/stop audio/video streams on the phone.
*/
public class SpydroidActivity extends FragmentActivity {
static final public String TAG = "SpydroidActivity";
public final int HANDSET = 0x01;
public final int TABLET = 0x02;
// We assume that the device is a phone
public int device = HANDSET;
private ViewPager mViewPager;
private PowerManager.WakeLock mWakeLock;
private SectionsPagerAdapter mAdapter;
private SurfaceView mSurfaceView;
private SpydroidApplication mApplication;
private CustomHttpServer mHttpServer;
private RtspServer mRtspServer;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mApplication = (SpydroidApplication) getApplication();
setContentView(R.layout.spydroid);
if (findViewById(R.id.handset_pager) != null) {
Log.i(TAG, "spydroid panpan test, in onCreate, Handset.\n");
// Handset detected !
mAdapter = new SectionsPagerAdapter(getSupportFragmentManager());
mViewPager = (ViewPager) findViewById(R.id.handset_pager);
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
mSurfaceView = (SurfaceView)findViewById(R.id.handset_camera_view);
SessionBuilder.getInstance().setSurfaceView(mSurfaceView);
SessionBuilder.getInstance().setPreviewOrientation(90);
} else {
Log.i(TAG, "spydroid panpan test, in onCreate, TABLET.\n");
// Tablet detected !
device = TABLET;
mAdapter = new SectionsPagerAdapter(getSupportFragmentManager());
mViewPager = (ViewPager) findViewById(R.id.tablet_pager);
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
SessionBuilder.getInstance().setPreviewOrientation(0);
}
mViewPager.setAdapter(mAdapter);
// Remove the ads if this is the donate version of the app.
if (mApplication.DONATE_VERSION) {
((LinearLayout)findViewById(R.id.adcontainer)).removeAllViews();
}
// Prevents the phone from going to sleep mode
PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
mWakeLock = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "net.majorkernelpanic.spydroid.wakelock");
// Starts the service of the HTTP server
this.startService(new Intent(this,CustomHttpServer.class));
// Starts the service of the RTSP server
this.startService(new Intent(this,CustomRtspServer.class));
}
public void onStart() {
super.onStart();
// Lock screen
mWakeLock.acquire();
// Did the user disabled the notification ?
if (mApplication.notificationEnabled) {
Intent notificationIntent = new Intent(this, SpydroidActivity.class);
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, notificationIntent, PendingIntent.FLAG_CANCEL_CURRENT);
NotificationCompat.Builder builder = new NotificationCompat.Builder(this);
Notification notification = builder.setContentIntent(pendingIntent)
.setWhen(System.currentTimeMillis())
.setTicker(getText(R.string.notification_title))
.setSmallIcon(R.drawable.icon)
.setContentTitle(getText(R.string.notification_title))
.setContentText(getText(R.string.notification_content)).build();
notification.flags |= Notification.FLAG_ONGOING_EVENT;
((NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE)).notify(0,notification);
} else {
removeNotification();
}
bindService(new Intent(this,CustomHttpServer.class), mHttpServiceConnection, Context.BIND_AUTO_CREATE);
bindService(new Intent(this,CustomRtspServer.class), mRtspServiceConnection, Context.BIND_AUTO_CREATE);
}
@Override
public void onStop() {
super.onStop();
// A WakeLock should only be released when isHeld() is true !
if (mWakeLock.isHeld()) mWakeLock.release();
if (mHttpServer != null) mHttpServer.removeCallbackListener(mHttpCallbackListener);
unbindService(mHttpServiceConnection);
if (mRtspServer != null) mRtspServer.removeCallbackListener(mRtspCallbackListener);
unbindService(mRtspServiceConnection);
}
@Override
public void onResume() {
super.onResume();
mApplication.applicationForeground = true;
}
@Override
public void onPause() {
super.onPause();
mApplication.applicationForeground = false;
}
@Override
public void onDestroy() {
Log.d(TAG,"SpydroidActivity destroyed");
super.onDestroy();
}
@Override
public void onBackPressed() {
Intent setIntent = new Intent(Intent.ACTION_MAIN);
setIntent.addCategory(Intent.CATEGORY_HOME);
setIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(setIntent);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.menu, menu);
MenuItemCompat.setShowAsAction(menu.findItem(R.id.quit), 1);
MenuItemCompat.setShowAsAction(menu.findItem(R.id.options), 1);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
Intent intent;
switch (item.getItemId()) {
case R.id.options:
// Starts QualityListActivity where user can change the streaming quality
intent = new Intent(this.getBaseContext(),OptionsActivity.class);
startActivityForResult(intent, 0);
return true;
case R.id.quit:
quitSpydroid();
return true;
default:
return super.onOptionsItemSelected(item);
}
}
private void quitSpydroid() {
// Removes notification
if (mApplication.notificationEnabled) removeNotification();
// Kills HTTP server
this.stopService(new Intent(this,CustomHttpServer.class));
// Kills RTSP server
this.stopService(new Intent(this,CustomRtspServer.class));
// Returns to home menu
finish();
}
private ServiceConnection mRtspServiceConnection = new ServiceConnection() {
@Override
public void onServiceConnected(ComponentName name, IBinder service) {
mRtspServer = (CustomRtspServer) ((RtspServer.LocalBinder)service).getService();
mRtspServer.addCallbackListener(mRtspCallbackListener);
mRtspServer.start();
}
@Override
public void onServiceDisconnected(ComponentName name) {}
};
private RtspServer.CallbackListener mRtspCallbackListener = new RtspServer.CallbackListener() {
@Override
public void onError(RtspServer server, Exception e, int error) {
// We alert the user that the port is already used by another app.
if (error == RtspServer.ERROR_BIND_FAILED) {
new AlertDialog.Builder(SpydroidActivity.this)
.setTitle(R.string.port_used)
.setMessage(getString(R.string.bind_failed, "RTSP"))
.setPositiveButton("OK", new DialogInterface.OnClickListener() {
public void onClick(final DialogInterface dialog, final int id) {
startActivityForResult(new Intent(SpydroidActivity.this, OptionsActivity.class),0);
}
})
.show();
}
}
@Override
public void onMessage(RtspServer server, int message) {
if (message==RtspServer.MESSAGE_STREAMING_STARTED) {
if (mAdapter != null && mAdapter.getHandsetFragment() != null)
mAdapter.getHandsetFragment().update();
} else if (message==RtspServer.MESSAGE_STREAMING_STOPPED) {
if (mAdapter != null && mAdapter.getHandsetFragment() != null)
mAdapter.getHandsetFragment().update();
}
}
};
private ServiceConnection mHttpServiceConnection = new ServiceConnection() {
@Override
public void onServiceConnected(ComponentName name, IBinder service) {
mHttpServer = (CustomHttpServer) ((TinyHttpServer.LocalBinder)service).getService();
mHttpServer.addCallbackListener(mHttpCallbackListener);
mHttpServer.start();
}
@Override
public void onServiceDisconnected(ComponentName name) {}
};
private TinyHttpServer.CallbackListener mHttpCallbackListener = new TinyHttpServer.CallbackListener() {
@Override
public void onError(TinyHttpServer server, Exception e, int error) {
// We alert the user that the port is already used by another app.
if (error == TinyHttpServer.ERROR_HTTP_BIND_FAILED ||
error == TinyHttpServer.ERROR_HTTPS_BIND_FAILED) {
String str = error==TinyHttpServer.ERROR_HTTP_BIND_FAILED?"HTTP":"HTTPS";
new AlertDialog.Builder(SpydroidActivity.this)
.setTitle(R.string.port_used)
.setMessage(getString(R.string.bind_failed, str))
.setPositiveButton("OK", new DialogInterface.OnClickListener() {
public void onClick(final DialogInterface dialog, final int id) {
startActivityForResult(new Intent(SpydroidActivity.this, OptionsActivity.class),0);
}
})
.show();
}
}
@Override
public void onMessage(TinyHttpServer server, int message) {
if (message==CustomHttpServer.MESSAGE_STREAMING_STARTED) {
if (mAdapter != null && mAdapter.getHandsetFragment() != null)
mAdapter.getHandsetFragment().update();
if (mAdapter != null && mAdapter.getPreviewFragment() != null)
mAdapter.getPreviewFragment().update();
} else if (message==CustomHttpServer.MESSAGE_STREAMING_STOPPED) {
if (mAdapter != null && mAdapter.getHandsetFragment() != null)
mAdapter.getHandsetFragment().update();
if (mAdapter != null && mAdapter.getPreviewFragment() != null)
mAdapter.getPreviewFragment().update();
}
}
};
private void removeNotification() {
((NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE)).cancel(0);
}
public void log(String s) {
Toast.makeText(getApplicationContext(), s, Toast.LENGTH_SHORT).show();
}
class SectionsPagerAdapter extends FragmentPagerAdapter {
public SectionsPagerAdapter(FragmentManager fm) {
super(fm);
}
@Override
public Fragment getItem(int i) {
if (device == HANDSET) {
switch (i) {
case 0: return new HandsetFragment();
case 1: return new PreviewFragment();
case 2: return new AboutFragment();
}
} else {
switch (i) {
case 0: return new TabletFragment();
case 1: return new AboutFragment();
}
}
return null;
}
@Override
public int getCount() {
return device==HANDSET ? 3 : 2;
}
public HandsetFragment getHandsetFragment() {
if (device == HANDSET) {
return (HandsetFragment) getSupportFragmentManager().findFragmentByTag("android:switcher:"+R.id.handset_pager+":0");
} else {
return (HandsetFragment) getSupportFragmentManager().findFragmentById(R.id.handset);
}
}
public PreviewFragment getPreviewFragment() {
if (device == HANDSET) {
return (PreviewFragment) getSupportFragmentManager().findFragmentByTag("android:switcher:"+R.id.handset_pager+":1");
} else {
return (PreviewFragment) getSupportFragmentManager().findFragmentById(R.id.preview);
}
}
@Override
public CharSequence getPageTitle(int position) {
if (device == HANDSET) {
switch (position) {
case 0: return getString(R.string.page0);
case 1: return getString(R.string.page1);
case 2: return getString(R.string.page2);
}
} else {
switch (position) {
case 0: return getString(R.string.page0);
case 1: return getString(R.string.page2);
}
}
return null;
}
}
}
|
import java.util.*;
import java.lang.*;
class GFG {
// extended Euclidean Algorithm
public static int gcdExtended(int a, int b, int x, int y) {
// Base Case
if (a == 0)
{
x = 0;
y = 1;
return b;
}
int x1=1, y1=1; // To store results of recursive call
int gcd = gcdExtended(b%a, a, x1, y1);
// Update x and y using results of recursive
// call
x = y1 - (b/a) * x1;
y = x1;
return gcd;
}
public static void main(String[] args) {
int x=1, y=1;
int a = 35, b = 15;
int g = gcdExtended(a, b, x, y);
System.out.print("gcd(" + a + " , " + b+ ") = " + g);
}
}
|
package ru.otus.spring.barsegyan.dto.rest.base;
import com.fasterxml.jackson.annotation.JsonInclude;
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ApiResponse<T> {
private final T data;
private final ApiError error;
private ApiResponse(T data, ApiError error) {
this.data = data;
this.error = error;
}
public static <T> ApiResponse<T> ok() {
return new ApiResponse<>(null, null);
}
public static <T> ApiResponse<T> ok(T data) {
return new ApiResponse<>(data, null);
}
public static <T> ApiResponse<T> error(ApiError error) {
return new ApiResponse<>(null, error);
}
public Object getError() {
return error;
}
public T getData() {
return data;
}
}
|
package week2.day2;
import java.util.ArrayList;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import io.github.bonigarcia.wdm.WebDriverManager;
public class Ass1part6Webtable {
public static void main(String[] args) {
// TODO Auto-generated method stub
WebDriverManager.chromedriver().setup();
ChromeDriver driver = new ChromeDriver();
driver.manage().window().maximize();
driver.get("http://leafground.com/pages/table.html");
List<WebElement> rows = driver.findElements(By.xpath("//table[@id='table_id']//tr"));
System.out.println(" NUMBER OF ROWS: " +rows.size());
List<WebElement> cols = driver.findElements(By.xpath("//table[@id='table_id']//tr[2]//td"));
System.out.println(" NUMBER OF COLS: " +cols.size());
String progress = driver.findElement(By.xpath("//table[@id='table_id']//tr[3]//td[2]")).getText();
System.out.println(" PROGRESS VALUE OF Learn to Interact with Elements: " +progress);
int small=0;
for(int i=2; i<=rows.size(); i++)
{
String percent2 = driver.findElement(By.xpath("//table[@id='table_id']//tr["+ i +"]//td[2]")).getText();
String rempersign = percent2.replace("%", "");
if(i==2)
{
small = Integer.parseInt(rempersign);
}
else
{
if(small > Integer.parseInt(rempersign)) {
small=Integer.parseInt(rempersign);}
}
System.out.println(rempersign);
}
System.out.println(small);
}
}
|
import java.io.*;
public class PomocnikGry {
public String pobierzDaneWejsciowe(String komunikat) {
String wierszWej = null;
System.out.print(komunikat + " ");
try {
BufferedReader sw = new BufferedReader(
new InputStreamReader(System.in));
wierszWej = sw.readLine();
if (wierszWej.length() == 0) return null;
} catch (IOException e) {
System.out.println("IOException: " + e);
}
return wierszWej;
}
}
class Statek{
int[] polozenieStat;
int iloscRuchow;
public void ustawPolozenie(int[] ppol){
polozenieStat = ppol;
}
public String sprawdz(String stringPole){
int strzalInt = Integer.parseInt(stringPole);
String wynik = "pudlo";
for(int pole: polozenieStat){
if(strzalInt == pole){
wynik = "trafiony";
break;
}
}
if(iloscRuchow == polozenieStat.length){
wynik = "zatopiony";
}
return wynik;
}
}
class PrzebiegGry{
public static void main(String[] args){
int liczbaRuchow = 0;
PomocnikGry pomocnik = new PomocnikGry();
Statek statek = new Statek();
int liczbaLosowa = (int)(Math.random()*8);
int[] polozenieStatku = {liczbaLosowa, liczbaLosowa+1, liczbaLosowa+2};
statek.ustawPolozenie(polozenieStatku);
boolean czyIstnieje = true;
while(czyIstnieje == true){
String strzal = pomocnik.pobierzDaneWejsciowe("Podaj liczbę");
String wynik = statek.sprawdz(strzal);
liczbaRuchow++;
if(wynik == "zatopiony"){
czyIstnieje = false;
System.out.println("Liczba ruchow: " + liczbaRuchow);
}
}
}
}
|
package firstDayTask4;
/**
*位哲武
* 2019/3/10
*/
//创建一个精灵类,实现接口CanMove和CanSing
public class Spirit implements CanMove ,CanSing{
// 实现CanMove方法
public void move() {
System.out.println("可移动");
}
// 实现CanMove方法
public void sing(){
System.out.println("可唱歌");
}
public static void main(String[] args) {
// 通过子类创建接口对象
Spirit spirit = new Spirit();
System.out.println("精灵可以做的事有:");
// 子类调用CanMove和CanSing两个接口被实现的所有方法
spirit.move();
spirit.sing();
}
}
|
package com.smxknife.security.java.core;
import java.io.File;
import java.io.IOException;
import java.security.AccessController;
import java.security.PrivilegedAction;
/**
* @author smxknife
* 2019-08-14
*/
public class PrivilegedFileUtil {
public static boolean canRead(String fileName) {
// TODO 没加任何异常
File file = new File(fileName);
return file.canRead();
}
public static void makeFile(String fileName) {
File file = new File(fileName);
try {
file.createNewFile();
} catch (IOException e) {
e.printStackTrace();
}
}
public static void doPrivilegedAction(final String fileName) {
AccessController.doPrivileged(new PrivilegedAction<String>() {
@Override
public String run() {
makeFile(fileName);
return null;
}
});
}
}
|
package edu.nyu.server;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.StringWriter;
import java.net.HttpURLConnection;
import java.net.ProtocolException;
import java.net.URL;
import java.util.Arrays;
import java.util.Map;
import java.util.Set;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.io.IOUtils;
import com.google.appengine.labs.repackaged.org.json.JSONArray;
import com.google.appengine.labs.repackaged.org.json.JSONException;
import com.google.appengine.labs.repackaged.org.json.JSONObject;
import edu.nyu.server.util.JSONUtil;
public class GoogleCallbackServlet extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
Map<String, String[]> map = req.getParameterMap();
resp.setContentType("text/plain");
/**
* authorization code from Google
*/
String authCode = null;
for (String key : map.keySet()) {
if (key.equals("error") && map.get(key)[0].equals("access_denied")) {
resp.getWriter().println("Error: access_denied");
return;
}
if (key.equals("code")) {
authCode = map.get(key)[0];
}
}
// resp.getWriter().println(authCode);
String urlParameters = "code=" + authCode + "&client_id="
+ Constants.CLIENTID + "&client_secret="
+ Constants.CLIENTSECRET + "&redirect_uri=" + Constants.APPURI
+ "&grant_type=" + "authorization_code";
URL url = new URL("https://accounts.google.com/o/oauth2/token");
String postReqResp = processPost(urlParameters, url);
// resp.getWriter().println(postReqResp);
JSONObject jsonOb = null;
String accToken = null;
try {
jsonOb = new JSONObject(postReqResp);
accToken = (String) jsonOb.get("access_token");
} catch (JSONException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
urlParameters = "access_token=" + accToken;
// resp.getWriter().println("access_token: " + accToken);
url = new URL("https://www.googleapis.com/plus/v1/people/me?"
+ urlParameters);
String getReqResp = processGet(url);
resp.getWriter().println(getReqResp);
jsonOb = null;
String email = null;
String familyName = null;
String givenName = null;
try {
jsonOb = new JSONObject(getReqResp);
JSONArray emailList = jsonOb.getJSONArray("emails");
for (int i = 0; i < emailList.length(); i++) {
JSONObject emailInfo = emailList.getJSONObject(i);
if (emailInfo.getString("type").equals("account")) {
email = emailInfo.getString("value");
break;
}
}
JSONObject names = (JSONObject) jsonOb.get("name");
familyName = names.getString("familyName");
givenName = names.getString("givenName");
} catch (JSONException e) {
e.printStackTrace();
}
resp.getWriter().println(email);
resp.getWriter().println(familyName);
resp.getWriter().println(givenName);
}
private String processPost(String parameters, URL url) throws IOException {
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setDoOutput(true);
conn.setDoInput(true);
conn.setInstanceFollowRedirects(false);
conn.setRequestMethod("POST");
conn.setRequestProperty("Content-Type",
"application/x-www-form-urlencoded");
conn.setRequestProperty("charset", "utf-8");
conn.setRequestProperty("Content-Length",
"" + Integer.toString(parameters.getBytes().length));
conn.setUseCaches(false);
DataOutputStream wr = new DataOutputStream(conn.getOutputStream());
wr.writeBytes(parameters);
wr.flush();
wr.close();
InputStream in = conn.getInputStream();
StringWriter writer = new StringWriter();
IOUtils.copy(in, writer, "UTF-8");
String theString = writer.toString();
conn.disconnect();
return theString;
}
private String processGet(URL url) throws IOException {
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setDoOutput(true);
conn.setDoInput(true);
conn.setInstanceFollowRedirects(false);
conn.setRequestMethod("GET");
conn.setRequestProperty("Content-Type",
"application/x-www-form-urlencoded");
conn.setRequestProperty("charset", "utf-8");
conn.setUseCaches(false);
InputStream in = conn.getInputStream();
StringWriter writer = new StringWriter();
IOUtils.copy(in, writer, "UTF-8");
String theString = writer.toString();
conn.disconnect();
return theString;
}
}
|
package it.polimi.ingsw.GC_21.fx;
import java.io.IOException;
import it.polimi.ingsw.GC_21.CLIENT.ChooseActionMessage;
import it.polimi.ingsw.GC_21.CLIENT.Connections;
import it.polimi.ingsw.GC_21.CLIENT.GameOverMessage;
import it.polimi.ingsw.GC_21.CLIENT.MessageToClient;
public class MessThread extends Thread{
private Connections client;
private FXMLGameController gameController;
public MessThread(Connections client, FXMLGameController gameController) {
this.client = client;
this.gameController = gameController;
}
@Override
public void run() {
try {
this.receiveMess();
} catch (ClassNotFoundException | IOException e) {
e.printStackTrace();
}
}
public void receiveMess() throws ClassNotFoundException, IOException {
while(true) {
System.out.println("attendo un nuovo messaggio dal thread!");
MessageToClient messageToClient = client.getReceivedMessage();
System.out.println(messageToClient.toString());
if (messageToClient instanceof ChooseActionMessage){
((ChooseActionMessage) messageToClient).setClient(client);
}
messageToClient.executeGUI(gameController);
if(messageToClient instanceof GameOverMessage){
break;
}
}
}
}
|
/*
* UniTime 3.4 - 3.5 (University Timetabling Application)
* Copyright (C) 2012 - 2013, UniTime LLC, and individual contributors
* as indicated by the @authors tag.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
package org.unitime.timetable.security.permissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.unitime.timetable.model.DepartmentStatusType;
import org.unitime.timetable.model.Exam;
import org.unitime.timetable.model.ExamType;
import org.unitime.timetable.model.Session;
import org.unitime.timetable.model.SubjectArea;
import org.unitime.timetable.security.UserContext;
import org.unitime.timetable.security.rights.Right;
/**
* @author Tomas Muller
*/
public class ExaminationTimetablingPermissions {
@PermissionForRight(Right.ExaminationTimetabling)
public static class ExaminationTimetabling implements Permission<Session> {
@Autowired PermissionSession permissionSession;
@Override
public boolean check(UserContext user, Session source) {
return permissionSession.check(user, source, DepartmentStatusType.Status.ExamTimetable) &&
(Exam.hasFinalExams(source.getUniqueId()) || Exam.hasMidtermExams(source.getUniqueId()));
}
@Override
public Class<Session> type() { return Session.class; }
}
@PermissionForRight(Right.ExaminationSolver)
public static class ExaminationSolver extends ExaminationTimetabling {}
@PermissionForRight(Right.ExaminationSolutionExportXml)
public static class ExaminationSolutionExportXml extends ExaminationSolver {}
@PermissionForRight(Right.ExaminationTimetable)
public static class ExaminationTimetable extends ExaminationTimetabling {}
@PermissionForRight(Right.AssignedExaminations)
public static class AssignedExaminations extends ExaminationTimetabling {}
@PermissionForRight(Right.NotAssignedExaminations)
public static class NotAssignedExaminations extends ExaminationTimetabling {}
@PermissionForRight(Right.ExaminationAssignmentChanges)
public static class ExaminationAssignmentChanges extends ExaminationTimetabling {}
@PermissionForRight(Right.ExaminationConflictStatistics)
public static class ExaminationConflictStatistics extends ExaminationTimetabling {}
@PermissionForRight(Right.ExaminationSolverLog)
public static class ExaminationSolverLog extends ExaminationTimetabling {}
@PermissionForRight(Right.ExaminationReports)
public static class ExaminationReports extends ExaminationTimetabling {}
@PermissionForRight(Right.ExaminationPdfReports)
public static class ExaminationPdfReports implements Permission<Session> {
@Autowired PermissionSession permissionSession;
@Override
public boolean check(UserContext user, Session source) {
if (SubjectArea.getUserSubjectAreas(user, false).isEmpty()) return false;
if (ExamType.findAllUsed(source.getUniqueId()).isEmpty()) return false;
return permissionSession.check(user, source);
}
@Override
public Class<Session> type() { return Session.class; }
}
}
|
package com.tencent.mm.plugin.appbrand.appcache;
import android.widget.Toast;
import com.tencent.mm.sdk.platformtools.ad;
class j$4 implements Runnable {
final /* synthetic */ j ffE;
final /* synthetic */ String ffJ;
j$4(j jVar, String str) {
this.ffE = jVar;
this.ffJ = str;
}
public final void run() {
Toast.makeText(ad.getContext(), this.ffJ, 1).show();
this.ffE.quit();
}
}
|
package mobileos.usna.edu;
import android.widget.ImageView;
import java.io.Serializable;
/**
* Author: MIDN Hitoshi Oue
* Date: April 24, 2019
* Description: this is the class responsible for storing island information from the
* database. this class is designed to take in information such as
* island name, population, history, languages, images, etc. a custom object
*/
public class IslandInfo implements Serializable {
//below are all the needed UIs and global variables
private String country;
private String greeting;
private String history;
private String flag;
private String map;
private int population;
private String languages;
private String facts;
private String culture;
private String pic1;
private String pic2;
private String pic3;
/**
* a constructor to easily inialize an IslandInfo object
* @param country
* @param greeting
* @param history
* @param flag
* @param map
* @param population
* @param languages
* @param facts
* @param culture
* @param pic1
* @param pic2
* @param pic3
*/
public IslandInfo(String country, String greeting, String history, String flag, String map, int population, String languages, String facts, String culture, String pic1, String pic2, String pic3) {
this.country = country;
this.greeting = greeting;
this.history = history;
this.flag = flag;
this.map = map;
this.population = population;
this.languages = languages;
this.facts = facts;
this.culture = culture;
this.pic1 = pic1;
this.pic2 = pic2;
this.pic3 = pic3;
}
/**
* BELOW ARE ALL GETTERS AND SETTERS FOR THE CLASS
* @return
*/
public String getCountry() {
return country;
}
public String getGreeting() {
return greeting;
}
public String getHistory() {
return history;
}
public String getFlag() {
return flag;
}
public String getMap() {
return map;
}
public int getPopulation() {
return population;
}
public String getLanguages() {
return languages;
}
public String getFacts() {
return facts;
}
public String getCulture() {
return culture;
}
public String getPic1() {
return pic1;
}
public String getPic2() {
return pic2;
}
public String getPic3() {
return pic3;
}
}
|
/*
题目
生产者(Productor)将产品交给店员(Clerk),而消费者(Customer)从店员处取走产品,
店员一次只能持有固定数量的产品(比如:20),如果生产者试图生产更多的产品,店员会
叫生产者停一下,如果店中有空位放产品了再通知生产者继续生产;如果店中没有产品了,
店员会告诉消费者等一下,如果店中有产品了再通知消费者来取走产品。
分析
是不是有多线程?
有,生产者+消费者+店员
有没有共享数据?
有:店员(产品数量)--》店员不能作为线程
共享数据都干什么:产品加减
是否有线程通信?
有,店员通知生产者停产+通知消费者没有产品等待
-->共享数据类中需要加有通知
*/
package day15;
class Clerk { // 店员
static int product = 0;
public synchronized void addProduct() {
while(true) {
if(product < 20) {
notify();
product++;
System.out.println(Thread.currentThread().getName() + "生产了第" + product + "件产品。");
try {
Thread.currentThread().sleep(100);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
} else {
try {
wait();
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
}
public synchronized void consumeProduct() {
while(true) {
if(product > 0) {
notify();
System.out.println(Thread.currentThread().getName() + "消费了第" + product + "件产品。");
product--;
try {
Thread.currentThread().sleep(100);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
} else {
try {
wait();
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
}
}
class Customer implements Runnable { // 消费者
Clerk clerk;
public Customer(Clerk clerk) {
this.clerk = clerk;
}
public void run() {
clerk.consumeProduct();
}
}
class Productor implements Runnable{ // 生产者
Clerk clerk;
public Productor(Clerk clerk) {
this.clerk = clerk;
}
public void run() {
clerk.addProduct();
}
}
public class TestProductorComsume {
public static void main(String[] args) {
Clerk clerk = new Clerk();
Customer c = new Customer(clerk);
Productor p = new Productor(clerk);
Thread t1 = new Thread(c);
Thread t2 = new Thread(p);
t1.setName("消费者");
t2.setName("生产者");
t1.start();
t2.start();
}
}
|
package duke.task;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
/**
* This class represents a deadline, a task with a deadline.
*/
public class Deadline extends Task {
private LocalDateTime deadline;
/**
* Constructor for Deadline, which takes in a task name and a deadline.
*
* @param taskName name of task.
* @param deadline deadline of the task.
*/
public Deadline(String taskName, LocalDateTime deadline) {
super(taskName);
this.deadline = deadline;
}
/**
* Gives the type of task.
*
* @return D for Deadline
*/
@Override
public String getType() {
return "D";
}
/**
* Gives save-friendly information.
*
* @return save-friendly information.
*/
@Override
public String getSaveInfo() {
return super.getSaveInfo() + "| "
+ this.deadline.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm"));
}
/**
* Overriden toString method.
*
* @return string representation of the task.
*/
@Override
public String toString() {
return "[D]" + super.toString(this.deadline, "by ");
}
}
|
package com.linda.framework.rpc.nio;
import com.google.common.base.Objects;
import com.linda.framework.rpc.RpcObject;
import com.linda.framework.rpc.exception.RpcException;
import com.linda.framework.rpc.net.AbstractRpcConnector;
import org.apache.log4j.Logger;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.*;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;
public class SimpleRpcNioSelector extends AbstractRpcNioSelector {
private Selector selector;
private boolean stop = false;
private boolean started = false;
private ConcurrentHashMap<SocketChannel, AbstractRpcNioConnector> connectorCache;
private List<AbstractRpcNioConnector> connectors;
private ConcurrentHashMap<ServerSocketChannel, AbstractRpcNioAcceptor> acceptorCache;
private List<AbstractRpcNioAcceptor> acceptors;
private static final int READ_OP = SelectionKey.OP_READ;
private static final int READ_WRITE_OP = SelectionKey.OP_READ | SelectionKey.OP_WRITE;
private LinkedList<Runnable> selectTasks = new LinkedList<Runnable>();
private AbstractRpcNioSelector delegageSelector;
private Logger logger = Logger.getLogger(SimpleRpcNioSelector.class);
public SimpleRpcNioSelector() {
super();
try {
selector = Selector.open();
connectorCache = new ConcurrentHashMap<SocketChannel, AbstractRpcNioConnector>();
connectors = new CopyOnWriteArrayList<AbstractRpcNioConnector>();
acceptorCache = new ConcurrentHashMap<ServerSocketChannel, AbstractRpcNioAcceptor>();
acceptors = new CopyOnWriteArrayList<AbstractRpcNioAcceptor>();
} catch (IOException e) {
throw new RpcException(e);
}
}
@Override
public void register(final AbstractRpcNioAcceptor acceptor) {
final ServerSocketChannel channel = acceptor.getServerSocketChannel();
this.addSelectTask(new Runnable() {
@Override
public void run() {
try {
channel.register(selector, SelectionKey.OP_ACCEPT);
} catch (Exception e) {
acceptor.handleNetException(e);
}
}
});
this.notifySend(null);
acceptorCache.put(acceptor.getServerSocketChannel(), acceptor);
acceptors.add(acceptor);
}
@Override
public void unRegister(AbstractRpcNioAcceptor acceptor) {
ServerSocketChannel channel = acceptor.getServerSocketChannel();
acceptorCache.remove(channel);
acceptors.remove(acceptor);
}
@Override
public void register(final AbstractRpcNioConnector connector) {
this.addSelectTask(new Runnable() {
@Override
public void run() {
try {
SelectionKey selectionKey = connector.getChannel().register(selector, READ_OP);
SimpleRpcNioSelector.this.initNewSocketChannel(connector.getChannel(), connector, selectionKey);
} catch (Exception e) {
connector.handleNetException(e);
}
}
});
this.notifySend(null);
}
@Override
public void unRegister(AbstractRpcNioConnector connector) {
connectorCache.remove(connector.getChannel());
connectors.remove(connector);
}
private void initNewSocketChannel(SocketChannel channel, AbstractRpcNioConnector connector,
SelectionKey selectionKey) {
if (connector.getAcceptor() != null) {
connector.getAcceptor().addConnectorListeners(connector);
}
connector.setSelectionKey(selectionKey);
connectorCache.put(channel, connector);
connectors.add(connector);
}
@Override
public synchronized void startService() {
if (!started) {
new SelectionThread().start();
started = true;
}
}
@Override
public void stopService() {
this.stop = true;
}
private boolean doAccept(SelectionKey selectionKey) {
ServerSocketChannel server = (ServerSocketChannel) selectionKey.channel();
AbstractRpcNioAcceptor acceptor = acceptorCache.get(server);
try {
SocketChannel client = server.accept();
if (client != null) {
client.configureBlocking(false);
if (delegageSelector != null) {
AbstractRpcNioConnector connector = new AbstractRpcNioConnector(client, delegageSelector);
connector.setAcceptor(acceptor);
connector.setExecutorService(acceptor.getExecutorService());
connector.setExecutorSharable(true);
delegageSelector.register(connector);
connector.startService();
} else {
AbstractRpcNioConnector connector = new AbstractRpcNioConnector(client, this);
connector.setAcceptor(acceptor);
connector.setExecutorService(acceptor.getExecutorService());
connector.setExecutorSharable(true);
this.register(connector);
connector.startService();
}
return true;
}
} catch (Exception e) {
this.handSelectionKeyException(selectionKey, e);
}
return false;
}
private void fireRpc(AbstractRpcNioConnector connector, RpcObject rpc) {
rpc.setHost(connector.getRemoteHost());
rpc.setPort(connector.getRemotePort());
rpc.setRpcContext(connector.getRpcContext());
connector.fireCall(rpc);
}
private boolean doRead(SelectionKey selectionKey) {
boolean result = false;
SocketChannel client = (SocketChannel) selectionKey.channel();
AbstractRpcNioConnector connector = connectorCache.get(client);
if (connector != null) {
try {
RpcNioBuffer connectorReadBuf = connector.getRpcNioReadBuffer();
ByteBuffer channelReadBuf = connector.getChannelReadBuffer();
while (!stop) {
int read = 0;
while ((read = client.read(channelReadBuf)) > 0) {
channelReadBuf.flip();
byte[] readBytes = new byte[read];
channelReadBuf.get(readBytes);
connectorReadBuf.write(readBytes);
channelReadBuf.clear();
while (connectorReadBuf.hasRpcObject()) {
RpcObject rpc = connectorReadBuf.readRpcObject();
this.fireRpc(connector, rpc);
}
}
if (read < 1) {
if (read < 0) {
this.handSelectionKeyException(selectionKey, new RpcException());
}
break;
}
}
} catch (Exception e) {
this.handSelectionKeyException(selectionKey, e);
}
}
return result;
}
private boolean doWrite(SelectionKey selectionKey) {
boolean result = false;
SocketChannel channel = (SocketChannel) selectionKey.channel();
AbstractRpcNioConnector connector = connectorCache.get(channel);
if (connector.isNeedToSend()) {
try {
RpcNioBuffer connectorWriteBuf = connector.getRpcNioWriteBuffer();
ByteBuffer channelWriteBuf = connector.getChannelWriteBuffer();
while (connector.isNeedToSend()) {
RpcObject rpc = connector.getToSend();
connectorWriteBuf.writeRpcObject(rpc);
channelWriteBuf.put(connectorWriteBuf.readBytes());
channelWriteBuf.flip();
int wantWrite = channelWriteBuf.limit() - channelWriteBuf.position();
int write = 0;
while (write < wantWrite) {
write += channel.write(channelWriteBuf);
}
channelWriteBuf.clear();
result = true;
}
if (!connector.isNeedToSend()) {
selectionKey.interestOps(READ_OP);
}
} catch (Exception e) {
this.handSelectionKeyException(selectionKey, e);
}
}
return result;
}
private void logState() {
int acceptorLen = acceptors.size();
int connectorLen = connectors.size();
logger.info("acceptors:" + acceptorLen + " connectors:" + connectorLen);
}
private void handSelectionKeyException(final SelectionKey selectionKey, Exception e) {
SelectableChannel channel = selectionKey.channel();
if (channel instanceof ServerSocketChannel) {
AbstractRpcNioAcceptor acceptor = acceptorCache.get(channel);
if (acceptor != null) {
logger.error("acceptor " + acceptor.getHost() + ":" + acceptor.getPort() + " selection error " +
e.getClass() + " " + e.getMessage() + " start to shutdown");
this.fireNetListeners(acceptor, e);
acceptor.stopService();
}
} else {
AbstractRpcNioConnector connector = connectorCache.get(channel);
if (connector != null) {
logger.error("connector " + connector.getHost() + ":" + connector.getPort() + " selection error " +
e.getClass() + " " + e.getMessage() + " start to shutdown");
this.fireNetListeners(connector, e);
connector.stopService();
}
}
this.logState();
}
private boolean doDispatchSelectionKey(SelectionKey selectionKey) {
boolean result = false;
try {
if (selectionKey.isAcceptable()) {
result = doAccept(selectionKey);
}
if (selectionKey.isReadable()) {
result = doRead(selectionKey);
}
if (selectionKey.isWritable()) {
result = doWrite(selectionKey);
}
} catch (Exception e) {
this.handSelectionKeyException(selectionKey, e);
}
return result;
}
private class SelectionThread extends Thread {
@Override
public void run() {
logger.info("select thread has started :" + Thread.currentThread().getId());
while (!stop) {
if (SimpleRpcNioSelector.this.hasTask()) {
SimpleRpcNioSelector.this.runSelectTasks();
}
boolean needSend = checkSend();
try {
if (needSend) {
selector.selectNow();
} else {
selector.select();
}
} catch (IOException e) {
SimpleRpcNioSelector.this.handleNetException(e);
}
Set<SelectionKey> selectionKeys = selector.selectedKeys();
for (SelectionKey selectionKey : selectionKeys) {
doDispatchSelectionKey(selectionKey);
}
}
}
}
private boolean checkSend() {
boolean needSend = false;
for (AbstractRpcNioConnector connector : connectors) {
if (connector.isNeedToSend()) {
SelectionKey selectionKey = connector.getChannel().keyFor(selector);
selectionKey.interestOps(READ_WRITE_OP);
needSend = true;
}
}
return needSend;
}
@Override
public void notifySend(AbstractRpcConnector connector) {
selector.wakeup();
}
private void addSelectTask(Runnable task) {
selectTasks.offer(task);
}
private boolean hasTask() {
Runnable peek = selectTasks.peek();
return peek != null;
}
private void runSelectTasks() {
Runnable peek = selectTasks.peek();
while (peek != null) {
peek = selectTasks.pop();
peek.run();
peek = selectTasks.peek();
}
}
public void setDelegageSelector(AbstractRpcNioSelector delegageSelector) {
this.delegageSelector = delegageSelector;
}
@Override
public void handleNetException(Exception e) {
logger.error("selector exception:" + e.getMessage());
}
@Override
public boolean equals(Object o) {
if (this == o) { return true; }
if (!(o instanceof SimpleRpcNioSelector)) { return false; }
if (!super.equals(o)) { return false; }
SimpleRpcNioSelector that = (SimpleRpcNioSelector) o;
return stop == that.stop &&
started == that.started &&
Objects.equal(selector, that.selector) &&
Objects.equal(connectorCache, that.connectorCache) &&
Objects.equal(connectors, that.connectors) &&
Objects.equal(acceptorCache, that.acceptorCache) &&
Objects.equal(acceptors, that.acceptors) &&
Objects.equal(selectTasks, that.selectTasks) &&
Objects.equal(delegageSelector, that.delegageSelector) &&
Objects.equal(logger, that.logger);
}
@Override
public int hashCode() {
return Objects.hashCode(super.hashCode(), selector, stop, started, connectorCache, connectors, acceptorCache,
acceptors, selectTasks, delegageSelector, logger);
}
}
|
package com.koreait.dao;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import com.koreait.dto.BoardDto;
import com.koreait.mybatis.config.DBService;
public class BDao {
// Field
private SqlSessionFactory factory = null;
// Singleton
private BDao() {
factory = DBService.getFactory();
}
private static BDao dao = new BDao();
public static BDao getInstance() {
return dao;
}
// Method
public List<BoardDto> getBoardList(Map<String, Integer> map) {
SqlSession sqlSession = factory.openSession();
List<BoardDto> list = sqlSession.selectList("select_board_by_map", map);
sqlSession.close();
return list;
}
public int getTotalRecord() {
SqlSession sqlSession = factory.openSession();
int result = sqlSession.selectOne("select_total_record");
sqlSession.close();
return result;
}
public int getInsertBoard(BoardDto bDto) {
SqlSession sqlSession = factory.openSession(false);
int result = sqlSession.insert("insert_board", bDto);
if(result>0) {
sqlSession.commit();
}
sqlSession.close();
return result;
}
public BoardDto getBoardBybIdx(int bIdx) {
SqlSession sqlSession = factory.openSession();
BoardDto bDto = sqlSession.selectOne("select_board_by_bIdx",bIdx);
sqlSession.close();
return bDto;
}
public int getDeleteBoard(BoardDto bDto) {
SqlSession sqlSession = factory.openSession(false);
int result = sqlSession.update("update_board_for_delete", bDto);
if(result>0) {
sqlSession.commit();
}
sqlSession.close();
return result;
}
}
|
package com.tencent.mm.plugin.remittance.ui;
import com.tencent.mm.plugin.remittance.model.a;
import com.tencent.mm.protocal.c.xb;
import com.tencent.mm.sdk.platformtools.x;
import com.tencent.mm.ui.widget.picker.d.b;
class RemittanceBusiUI$8 implements b {
final /* synthetic */ RemittanceBusiUI mBt;
RemittanceBusiUI$8(RemittanceBusiUI remittanceBusiUI) {
this.mBt = remittanceBusiUI;
}
public final void hq(boolean z) {
if (z) {
xb xbVar = RemittanceBusiUI.z(this.mBt).myH;
String str = "MicroMsg.RemittanceBusiUI";
String str2 = "onFavorSelected %s ";
Object[] objArr = new Object[1];
objArr[0] = xbVar == null ? "" : a.a(xbVar);
x.i(str, str2, objArr);
RemittanceBusiUI.A(this.mBt);
}
}
}
|
package com.beiyelin.monitor.service;
import com.beiyelin.common.service.MessageService;
import com.beiyelin.monitor.entity.LoginTracker;
import org.junit.Assert;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.annotation.Rollback;
import java.util.List;
public class LoginTrackerServiceTest extends AbstractServiceTest {
@Autowired
protected LoginTrackerService loginTrackerService;
@Autowired
MessageService messageService;
@Test
public void testMessageService(){
System.out.println(messageService.getMessage("param.is.null"));
System.out.println(messageService.getMessage("LoginTracker.saved"));
System.out.println(messageService.getMessage("LoginTracker.notnull"));
System.out.println(messageService.getMessage("LoginTracker.notNull"));
}
@Test
@Rollback(false)//默认是true
public void createLoginTracker(){
System.out.println("开始调用createLoginTracker");
LoginTracker loginTracker = generateLoginTracker();
LoginTracker savedEntity = loginTrackerService.create(loginTracker);
LoginTracker loadedEntity = loginTrackerService.findById(savedEntity.getId());
List<LoginTracker> items = loginTrackerService.findAll();
Assert.assertEquals(loginTracker.getId(), savedEntity.getId());
Assert.assertNotNull(loadedEntity);
if(items == null){
System.out.println("没有找到保存的数据");
}else {
System.out.println(items);
}
}
public void saveLoginTracker(){
LoginTracker loginTracker = generateLoginTracker();
}
private LoginTracker generateLoginTracker(){
LoginTracker loginTracker = new LoginTracker();
loginTracker.setBrand("Lenovo");
loginTracker.setBrowser("Chrome");
loginTracker.setIpAddress("localhost");
loginTracker.setModel("win10");
loginTracker.setOperatingSystem("win10");
loginTracker.setScreenSize("1960*1280");
loginTracker.setUserId("test");
loginTracker.setRemarks("测试数据");
return loginTracker;
}
}
|
package com.zcc.contactapp.server.controller;
import com.zcc.contactapp.server.dao.ContactInfo;
import com.zcc.contactapp.server.db.hibernate.JpaContactorRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
* Created by cc on 2019/8/26.
*/
@RestController
@RequestMapping("/jpa")
public class JpaController {
@Autowired
private JpaContactorRepository jpaContactorRepository = null;
@RequestMapping("/getContactor")
@ResponseBody
public ContactInfo getContactor(Long id) {
ContactInfo contactInfo = jpaContactorRepository.findById(id).get();
return contactInfo;
}
@RequestMapping("/getbyname")
@ResponseBody
public List<ContactInfo> getForName(String name) {
return jpaContactorRepository.findContacts(name, "");
}
}
|
package com.tencent.xweb.x5;
import android.content.Context;
import android.webkit.ValueCallback;
import com.tencent.smtt.sdk.JsContext;
import com.tencent.xweb.c.g;
import com.tencent.xweb.d;
import java.net.URL;
import java.nio.ByteBuffer;
import org.xwalk.core.Log;
public final class h implements g {
d gex;
private Context mContext;
private JsContext vDG;
private a vDH;
public h(Context context) {
this.mContext = context;
Log.i("MicroMsg.X5V8JsRuntime", "create X5V8JsRuntime");
}
public final void init(int i) {
this.vDG = new JsContext(this.mContext);
this.vDH = new a();
this.vDG.addJavascriptInterface(this.vDH, "nativeBufferCompat");
this.vDG.evaluateJavascript("function getNativeBufferId() { if (nativeBufferCompat) { return nativeBufferCompat.getNativeBufferId(); } return -1;}function setNativeBuffer(id, bytes) { if (nativeBufferCompat) { return nativeBufferCompat.setNativeBuffer(id, bytes); }}function getNativeBuffer(id) { if (nativeBufferCompat) { return nativeBufferCompat.getNativeBuffer(id); }}", new a.d(new 1(this)));
this.vDG.setExceptionHandler(new 2(this));
}
public final void pause() {
this.vDG.virtualMachine().onPause();
}
public final void resume() {
this.vDG.virtualMachine().onResume();
}
public final boolean CY() {
return true;
}
public final void cleanup() {
this.vDG.destroy();
this.vDH.geu.clear();
}
public final void evaluateJavascript(String str, ValueCallback<String> valueCallback) {
this.vDG.evaluateJavascript(str, new a.d(valueCallback));
}
public final void evaluateJavascript(String str, ValueCallback<String> valueCallback, URL url) {
Log.i("MicroMsg.X5V8JsRuntime", String.format("evaluateJavascriptWithURL(%s)", new Object[]{url}));
this.vDG.evaluateJavascript(str, new a.d(valueCallback), url);
}
public final void addJavascriptInterface(Object obj, String str) {
this.vDG.addJavascriptInterface(obj, str);
}
public final int getNativeBufferId() {
return this.vDH.getNativeBufferId();
}
public final void setNativeBuffer(int i, ByteBuffer byteBuffer) {
byte[] bArr;
a aVar = this.vDH;
if (byteBuffer == null) {
bArr = new byte[0];
} else if (byteBuffer.isDirect()) {
int position = byteBuffer.position();
byteBuffer.position(0);
bArr = new byte[byteBuffer.remaining()];
byteBuffer.get(bArr);
byteBuffer.position(position);
} else {
bArr = byteBuffer.array();
}
aVar.setNativeBuffer(i, bArr);
}
public final ByteBuffer getNativeBuffer(int i) {
byte[] nativeBuffer = this.vDH.getNativeBuffer(i);
if (nativeBuffer == null || nativeBuffer.length <= 0) {
return null;
}
return ByteBuffer.wrap(nativeBuffer);
}
public final boolean cIG() {
return true;
}
public final void setJsExceptionHandler(d dVar) {
this.gex = dVar;
}
}
|
package agents.anac.y2014.kGA_gent.library_genetic;
import java.util.List;
/*
* 世代更新インターフェース
* 実装ã�™ã‚‹ã�¹ã��ã�¯ï¼Œé�ºä¼�å�リストをå�—ã�‘å�–りã€�次世代ã�®é�ºä¼�å�リストを返å�´ã�™ã‚‹
*
* é�ºä¼�å�æ›´æ–°ã�®çµ‚了判æ–
*/
public interface GenerationChange {
List<Gene> Generation(List<Gene> list);
/*
* åˆ�期é�ºä¼�å�リストã�®ç”Ÿæˆ�
*/
List<Gene> StartGeneration(Gene gene);
List<Gene> StartGeneration();
boolean End(List<Gene> list);
}
|
package com.cyriii.entity;
import lombok.Data;
import lombok.experimental.Accessors;
/**
* 用户信息
*/
@Data
@Accessors(chain = true) // 开启链式调用
public class SysUser {
/**
* 用户id
*/
private String Id;
/**
* 用户昵称
*/
private String nickName;
/**
* 用户名
*/
private String userName;
/**
* 密码
*/
private String pwd;
/**
* 性别: 0女 1男
*/
private Integer sex;
/**
* 联系电话
*/
private String telNumber;
/**
* 联系地址
*/
private String address;
/**
* 头像地址
*/
private String headUrl;
}
|
package com.game.snakesAndLadder;
public class Player {
private int position;
private Board board;
private int turn = 0;
public Player() {
position = 1;
}
public void rollDice() {
if(turn == 10)
throw new IllegalStateException("Player turns have exhausted!");
int diceNumber = board.getDice().roll();
board.diceRolled(diceNumber);
turn++;
}
public void moveByPosition(int moveBy) {
this.position += moveBy;
}
public int getPosition() {
return this.position;
}
public void setBoard(Board board) {
this.board = board;
}
}
|
package com.tencent.mm.plugin.emoji.ui.v2;
import android.view.MenuItem;
import android.view.MenuItem.OnMenuItemClickListener;
import com.tencent.mm.R;
import com.tencent.rtmp.TXLiveConstants;
class EmojiStoreV2SingleProductUI$9 implements OnMenuItemClickListener {
final /* synthetic */ EmojiStoreV2SingleProductUI irx;
EmojiStoreV2SingleProductUI$9(EmojiStoreV2SingleProductUI emojiStoreV2SingleProductUI) {
this.irx = emojiStoreV2SingleProductUI;
}
public final boolean onMenuItemClick(MenuItem menuItem) {
if (EmojiStoreV2SingleProductUI.f(this.irx) == null || EmojiStoreV2SingleProductUI.f(this.irx).getVisibility() != 0) {
this.irx.finish();
} else {
EmojiStoreV2SingleProductUI.f(this.irx).setVisibility(8);
this.irx.showOptionMenu(TXLiveConstants.PUSH_EVT_CONNECT_SUCC, EmojiStoreV2SingleProductUI.g(this.irx));
this.irx.setMMTitle(R.l.emoji_store_product_title);
}
return false;
}
}
|
package com.cnk.travelogix.core.flightview.fnbclient.dto;
import org.codehaus.jackson.annotate.JsonAutoDetect;
import org.codehaus.jackson.annotate.JsonAutoDetect.Visibility;
import org.codehaus.jackson.annotate.JsonIgnore;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonProperty;
/**
*
*/
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonAutoDetect(fieldVisibility = Visibility.ANY, getterVisibility = Visibility.NONE, setterVisibility = Visibility.NONE)
public class FlightRegisterResponse {
@JsonProperty("RegistrationRequest")
protected RegistrationRequest registrationRequest;
@JsonProperty("FlightIdentifiers")
protected FlightIdentifiers[] flightIdentifiers;
@JsonProperty("Success")
protected String success;
@JsonProperty("Error")
protected String error;
/**
* @return the registrationRequest
*/
@JsonIgnore
public RegistrationRequest getRegistrationRequest() {
return registrationRequest;
}
/**
* @param registrationRequest
* the registrationRequest to set
*/
@JsonIgnore
public void setRegistrationRequest(RegistrationRequest registrationRequest) {
this.registrationRequest = registrationRequest;
}
/**
* @return the flightIdentifiers
*/
@JsonIgnore
public FlightIdentifiers[] getFlightIdentifiers() {
return flightIdentifiers;
}
/**
* @param flightIdentifiers
* the flightIdentifiers to set
*/
@JsonIgnore
public void setFlightIdentifiers(FlightIdentifiers[] flightIdentifiers) {
this.flightIdentifiers = flightIdentifiers;
}
/**
* @return the success
*/
@JsonIgnore
public String getSuccess() {
return success;
}
/**
* @param success
* the success to set
*/
@JsonIgnore
public void setSuccess(String success) {
success = success;
}
/**
* @return the error
*/
@JsonIgnore
public String getError() {
return error;
}
/**
* @param error
* the error to set
*/
@JsonIgnore
public void setError(String error) {
error = error;
}
}
|
/*
* #%L
* Over-the-air deployment webapp
* %%
* Copyright (C) 2012 SAP AG
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
package com.sap.prd.mobile.ios.ota.webapp;
import static com.sap.prd.mobile.ios.ota.lib.LibUtils.encode;
import static com.sap.prd.mobile.ios.ota.webapp.OtaHtmlServiceTest.TEST_BUNDLEIDENTIFIER;
import static com.sap.prd.mobile.ios.ota.webapp.OtaHtmlServiceTest.TEST_BUNDLEVERSION;
import static com.sap.prd.mobile.ios.ota.webapp.OtaHtmlServiceTest.TEST_IPA_LINK;
import static com.sap.prd.mobile.ios.ota.webapp.OtaHtmlServiceTest.TEST_REFERER;
import static com.sap.prd.mobile.ios.ota.webapp.OtaHtmlServiceTest.TEST_TITLE;
import static com.sap.prd.mobile.ios.ota.webapp.TestUtils.assertContains;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.junit.Test;
import com.sap.prd.mobile.ios.ota.lib.OtaPlistGenerator;
import com.sap.prd.mobile.ios.ota.webapp.OtaPlistService;
public class OtaPlistServiceTest
{
private final static String STRING_TAG_START = "<string>";
private final static String STRING_TAG_END = "</string>";
@Test
public void testWithURLParameters() throws ServletException, IOException
{
OtaPlistService service = new OtaPlistService();
StringWriter writer = new StringWriter();
HttpServletRequest request = mock(HttpServletRequest.class);
Map<String, String[]> paramsDummy = new HashMap<String, String[]>();
paramsDummy.put("x", null);
when(request.getParameterMap()).thenReturn(paramsDummy); //size is checked in service
when(request.getParameter(OtaPlistGenerator.REFERER)).thenReturn(TEST_REFERER);
when(request.getParameter(OtaPlistGenerator.TITLE)).thenReturn(TEST_TITLE);
when(request.getParameter(OtaPlistGenerator.BUNDLE_IDENTIFIER)).thenReturn(TEST_BUNDLEIDENTIFIER);
when(request.getParameter(OtaPlistGenerator.BUNDLE_VERSION)).thenReturn(TEST_BUNDLEVERSION);
HttpServletResponse response = mock(HttpServletResponse.class);
when(response.getWriter()).thenReturn(new PrintWriter(writer));
service.doGet(request, response);
String result = writer.getBuffer().toString();
assertContains(STRING_TAG_START + TEST_TITLE + STRING_TAG_END, result);
assertContains(STRING_TAG_START + TEST_BUNDLEVERSION + STRING_TAG_END, result);
assertContains(STRING_TAG_START + TEST_BUNDLEIDENTIFIER + STRING_TAG_END, result);
assertContains(STRING_TAG_START + TEST_IPA_LINK + STRING_TAG_END, result);
}
@Test
public void testWithSlashSeparatedParameters() throws ServletException, IOException
{
OtaPlistService service = new OtaPlistService();
StringWriter writer = new StringWriter();
HttpServletRequest request = mock(HttpServletRequest.class);
StringBuilder sb = new StringBuilder();
sb.append("/abc/").append(OtaPlistService.SERVICE_NAME).append("/");
sb.append(encode(OtaPlistGenerator.REFERER + "=" + TEST_REFERER)).append("/");
sb.append(encode(OtaPlistGenerator.TITLE + "=" + TEST_TITLE)).append("/");
sb.append(encode(OtaPlistGenerator.BUNDLE_IDENTIFIER + "=" + TEST_BUNDLEIDENTIFIER)).append("/");
sb.append(encode(OtaPlistGenerator.BUNDLE_VERSION + "=" + TEST_BUNDLEVERSION));
when(request.getRequestURI()).thenReturn(sb.toString());
HttpServletResponse response = mock(HttpServletResponse.class);
when(response.getWriter()).thenReturn(new PrintWriter(writer));
service.doGet(request, response);
String result = writer.getBuffer().toString();
assertContains(STRING_TAG_START + TEST_TITLE + STRING_TAG_END, result);
assertContains(STRING_TAG_START + TEST_BUNDLEVERSION + STRING_TAG_END, result);
assertContains(STRING_TAG_START + TEST_BUNDLEIDENTIFIER + STRING_TAG_END, result);
assertContains(STRING_TAG_START + TEST_IPA_LINK + STRING_TAG_END, result);
}
}
|
package org.newdawn.slick.tests;
import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.BasicGame;
import org.newdawn.slick.Game;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.command.BasicCommand;
import org.newdawn.slick.command.Command;
import org.newdawn.slick.command.Control;
import org.newdawn.slick.command.ControllerButtonControl;
import org.newdawn.slick.command.ControllerDirectionControl;
import org.newdawn.slick.command.InputProvider;
import org.newdawn.slick.command.InputProviderListener;
import org.newdawn.slick.command.KeyControl;
import org.newdawn.slick.command.MouseButtonControl;
public class InputProviderTest extends BasicGame implements InputProviderListener {
private Command attack = (Command)new BasicCommand("attack");
private Command jump = (Command)new BasicCommand("jump");
private Command run = (Command)new BasicCommand("run");
private InputProvider provider;
private String message = "";
public InputProviderTest() {
super("InputProvider Test");
}
public void init(GameContainer container) throws SlickException {
this.provider = new InputProvider(container.getInput());
this.provider.addListener(this);
this.provider.bindCommand((Control)new KeyControl(203), this.run);
this.provider.bindCommand((Control)new KeyControl(30), this.run);
this.provider.bindCommand((Control)new ControllerDirectionControl(0, ControllerDirectionControl.LEFT), this.run);
this.provider.bindCommand((Control)new KeyControl(200), this.jump);
this.provider.bindCommand((Control)new KeyControl(17), this.jump);
this.provider.bindCommand((Control)new ControllerDirectionControl(0, ControllerDirectionControl.UP), this.jump);
this.provider.bindCommand((Control)new KeyControl(57), this.attack);
this.provider.bindCommand((Control)new MouseButtonControl(0), this.attack);
this.provider.bindCommand((Control)new ControllerButtonControl(0, 1), this.attack);
}
public void render(GameContainer container, Graphics g) {
g.drawString("Press A, W, Left, Up, space, mouse button 1,and gamepad controls", 10.0F, 50.0F);
g.drawString(this.message, 100.0F, 150.0F);
}
public void update(GameContainer container, int delta) {}
public void controlPressed(Command command) {
this.message = "Pressed: " + command;
}
public void controlReleased(Command command) {
this.message = "Released: " + command;
}
public static void main(String[] argv) {
try {
AppGameContainer container = new AppGameContainer((Game)new InputProviderTest());
container.setDisplayMode(800, 600, false);
container.start();
} catch (SlickException e) {
e.printStackTrace();
}
}
}
/* Location: C:\Users\BSV\AppData\Local\Temp\Rar$DRa6216.20396\Preview\Preview.jar!\org\newdawn\slick\tests\InputProviderTest.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 1.1.3
*/
|
package com.app.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.stereotype.Service;
import com.app.model.User;
import com.app.repo.UserRepo;
import com.app.service.IUserService;
@Service
public class UserServiceImpl implements IUserService {
@Autowired
private UserRepo repo;
@Autowired
private BCryptPasswordEncoder bcrypt;
@Override
public String saveUser(User user) {
String pwd=bcrypt.encode(user.getUserPwd());
user.setUserPwd(pwd);
repo.save(user);
return "saves";
}
}
|
package inheritance.overloading;
public class MyMath {
double x,y;
public MyMath(double x, double y) {
this.x = x;
this.y = y;
}
public double multiply() {
return x*y;
}
public static double multiply(double a, double b) {
return a*b;
//return x*y; //비정적 필드 x와 y를 정적메소드 내부에서 사용할수없다.
//return this.x * this.y; // this와 super 는 정적메소드내부에서 사용할수없다.
}
public static void main(String[] args) {
MyMath math = new MyMath(3.4,6.7);
System.out.println(math.multiply());
System.out.println(MyMath.multiply(3.4,6.7));
//System.out.println(math.multiply(3.4,6.7)); 정적메소드인 multiply메소드를
//참조변수 math 를 이용해서 참조하는데 MyMath.로 참조하는이유는?
}
}
|
package mypackage1;
public class ClaseDep
{
String codigo;
String descr;
String idcompra;
String fecha;
String total;
String nomcli;
String apecli;
String nomobr;
String nomemp;
String apeemp;
public ClaseDep()
{
}
public String getCodigo()
{
return codigo;
}
public void setCodigo(String newCodigo)
{
codigo = newCodigo;
}
public String getDescr()
{
return descr;
}
public void setDescr(String newDescr)
{
descr = newDescr;
}
public String getIdcompra()
{
return idcompra;
}
public void setIdcompra(String newIdcompra)
{
idcompra = newIdcompra;
}
public String getFecha()
{
return fecha;
}
public void setFecha(String newFecha)
{
fecha = newFecha;
}
public String getTotal()
{
return total;
}
public void setTotal(String newTotal)
{
total = newTotal;
}
public String getNomcli()
{
return nomcli;
}
public void setNomcli(String newNomcli)
{
nomcli = newNomcli;
}
public String getApecli()
{
return apecli;
}
public void setApecli(String newApecli)
{
apecli = newApecli;
}
public String getNomobr()
{
return nomobr;
}
public void setNomobr(String newNomobr)
{
nomobr = newNomobr;
}
public String getNomemp()
{
return nomemp;
}
public void setNomemp(String newNomemp)
{
nomemp = newNomemp;
}
public String getApeemp()
{
return apeemp;
}
public void setApeemp(String newApeemp)
{
apeemp = newApeemp;
}
}
|
package com.bowlong.sql;
public enum CacheModel {
NO_CACHE, // 不缓存
FULL_CACHE, // 全缓存
HOT_CACHE, // 热缓存 (未使用)
FULL_MEMORY, // 全内存
STATIC_CACHE // 静态缓存(数据不增长)
}
|
import javax.json.JsonObject;
import java.io.IOException;
import java.io.PrintStream;
import java.net.ConnectException;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.SocketTimeoutException;
import java.util.*;
/**
* This system works to validate a set of ad bidding servers which can be both faulty and accurate.
* The system sends ad requests to the servers to determine if a bid should be made on an ad placement.
*/
public class Client {
Scanner din;
PrintStream pout;
Map<String, String> responses = new HashMap<>();
List<InetSocketAddress> serverList;
int serverIndex;
InetSocketAddress server;
Socket tcpserver;
/**
*
* @param serverList List of servers with hostnames and ports organized by proximity to client
*/
public Client(List<InetSocketAddress> serverList){
this.serverList = serverList;
this.serverList = serverList;
this.serverIndex = 0;
this.server = this.serverList.get(serverIndex);
MsgHandler.debug("Client node initialized to " + this.server.toString());
initializeResponseSet();
}
/**
* Sends request to node using TCP
*
* @param request request to send to the node
*/
private ArrayList<String> tcpRequest(JsonObject request){
String retstring = "[]";
try {
retstring = makeTCPRequest(request);
} catch (Exception e) {
System.err.println("Server aborted:" + e);
}
// System.out.println("Received from Server:" + retstring);
return Utils.interpretStringAsList(retstring);
}
private void initializeResponseSet (){
responses.put("NoResponse", "No node response.");
responses.put("FALSE", "Do not use network.");
responses.put("TRUE", "Use network.");
responses.put("UNDECIDED", "Consensus could not be reached.");
}
/**
* Interprets primary node responses and outputs relevant information to user
* Response is composed of the following values:
* 0: "True/False", Should we bid on the ad?
*
* @param response response to interpret
*/
public String getResponse(ArrayList<String> response){
String result;
if (response.get(0).equals("done")){
result = responses.get("NoResponse");
} else {
String bid = response.get(0);
result = responses.get(bid);
if (result == null) {
result = "Invalid response.";
}
}
return result;
}
/**
* validateNetwork <network> – .
* Initiate a request through the coordinator to node pool
*
* @param network the network for which to make the request
* **/
public ArrayList<String> validateNetwork(String network) {
String request = "validateNetwork," + network;
JsonObject payload = MsgHandler.buildPayload(MessageType.CLIENT_REQUEST, request, Constants.COORDINATOR_ID, Constants.CLIENT_ID);
MsgHandler.debug("Attempting to validate network " + network + ".");
return sendRequest(payload);
}
/**
* Send the request to the node using TCP protocol
*
* @param request the request string formatted for node
*/
private ArrayList<String> sendRequest(JsonObject request){
ArrayList<String>response;
response = tcpRequest(request);
MsgHandler.debug(getResponse(response));
return response;
}
/**
* Access a new TCP socket
*
* @throws IOException
*/
public void getSocket() throws IOException {
while (true) {
try {
this.tcpserver = new Socket();
tcpserver.connect(server, Constants.CONNECTION_TIMEOUT);
din = new Scanner(tcpserver.getInputStream());
pout = new PrintStream(tcpserver.getOutputStream());
} catch (SocketTimeoutException | ConnectException e) {
updateServer();
continue;
}
break;
}
}
/**
* Make a TCP request using a new socket
*
* @param request The request string formatted for the node
* @return the response from the node
* @throws IOException
*/
public String makeTCPRequest(JsonObject request)
throws IOException {
getSocket();
pout.println(request.toString());
pout.flush();
String retValue = din.nextLine();
tcpserver.close();
return retValue;
}
public void updateServer(){
serverIndex = (serverIndex + 1) % serverList.size();
server = serverList.get(serverIndex);
System.out.println("Attempting access to node at " + server.toString());
}
public static void main (String[] args) {
InputReader reader = new InputReader();
ArrayList<Integer> serverConfig = reader.inputNodeConfig();
int startPort = serverConfig.get(0);
List<InetSocketAddress> coordinatorAddressList = Utils.createServerList(startPort, 1);
Client client = new Client(coordinatorAddressList);
reader.waitForClientCommands(client);
}
}
|
package com.example.amosh.newsfeedguardian;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Parcelable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.nio.charset.Charset;
import java.util.List;
public class MainActivity extends AppCompatActivity {
static final String SEARCH_RESULTS = "newFeedsResults";
FeedAdapter adapter;
ListView listView;
TextView NoDataFound;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
NoDataFound = (TextView) findViewById(R.id.empty_view);
adapter = new FeedAdapter(this, -1);
listView = (ListView) findViewById(R.id.list);
listView.setAdapter(adapter);
listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {
Feed currentFeed = adapter.getItem(position);
Uri feedUri = Uri.parse(currentFeed.getmUrl());
// Create a new intent to view the earthquake URI
Intent websiteIntent = new Intent(Intent.ACTION_VIEW, feedUri);
// Send the intent to launch a new activity
startActivity(websiteIntent);
}
});
if (savedInstanceState != null) {
Feed[] feeds = (Feed[]) savedInstanceState.getParcelableArray(SEARCH_RESULTS);
adapter.addAll(feeds);
}
if (isInternetConnectionAvailable()) {
FeedAsyncTask task = new FeedAsyncTask();
task.execute();
} else {
Toast.makeText(MainActivity.this, R.string.no_internet_connection,
Toast.LENGTH_SHORT).show();
}
}
private boolean isInternetConnectionAvailable() {
ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo activeNetwork = cm.getActiveNetworkInfo();
if (null == activeNetwork)
return false;
return activeNetwork.isConnectedOrConnecting();
}
private void updateUi(List<Feed> feeds) {
if (feeds.isEmpty()) {
NoDataFound.setVisibility(View.VISIBLE);
} else {
NoDataFound.setVisibility(View.GONE);
}
adapter.clear();
adapter.addAll(feeds);
}
private String getUrlForHttpRequest() {
final String baseUrl = "https://content.guardianapis.com/search?api-key=test";
return baseUrl;
}
@Override
public void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
Feed[] feeds = new Feed[adapter.getCount()];
for (int i = 0; i < feeds.length; i++) {
feeds[i] = adapter.getItem(i);
}
outState.putParcelableArray(SEARCH_RESULTS,feeds);
}
private class FeedAsyncTask extends AsyncTask<URL, Void, List<Feed>> {
LinearLayout linlaHeaderProgress = (LinearLayout) findViewById(R.id.linlaHeaderProgress);
@Override
protected void onPreExecute() {
// SHOW THE SPINNER WHILE LOADING FEEDS
linlaHeaderProgress.setVisibility(View.VISIBLE);
listView.setVisibility(View.GONE);
}
@Override
protected List<Feed> doInBackground(URL... urls) {
URL url = createURL(getUrlForHttpRequest());
String jsonResponse = "";
try {
jsonResponse = makeHttpRequest(url);
} catch (IOException e) {
e.printStackTrace();
}
List<Feed> feeds = parseJson(jsonResponse);
return feeds;
}
@Override
protected void onPostExecute(List<Feed> feeds) {
if (feeds == null) {
return;
}
updateUi(feeds);
linlaHeaderProgress.setVisibility(View.GONE);
listView.setVisibility(View.VISIBLE);
}
private URL createURL(String stringUrl) {
try {
return new URL(stringUrl);
} catch (MalformedURLException e) {
e.printStackTrace();
return null;
}
}
private String makeHttpRequest(URL url) throws IOException {
String jsonResponse = "";
if (url == null) {
return jsonResponse;
}
HttpURLConnection urlConnection = null;
InputStream inputStream = null;
try {
urlConnection = (HttpURLConnection) url.openConnection();
urlConnection.setRequestMethod("GET");
urlConnection.setReadTimeout(10000 /* milliseconds */);
urlConnection.setConnectTimeout(15000 /* milliseconds */);
urlConnection.connect();
if (urlConnection.getResponseCode() == 200) {
inputStream = urlConnection.getInputStream();
jsonResponse = readFromStream(inputStream);
} else {
Log.e("MainActivity", "Error response code: " + urlConnection.getResponseCode());
}
} catch (IOException e) {
e.printStackTrace();
} finally {
if (urlConnection != null) {
urlConnection.disconnect();
}
if (inputStream != null) {
inputStream.close();
}
}
return jsonResponse;
}
private String readFromStream(InputStream inputStream) throws IOException {
StringBuilder output = new StringBuilder();
if (inputStream != null) {
InputStreamReader inputStreamReader = new InputStreamReader(inputStream, Charset.forName("UTF-8"));
BufferedReader reader = new BufferedReader(inputStreamReader);
String line = reader.readLine();
while (line != null) {
output.append(line);
line = reader.readLine();
}
}
return output.toString();
}
private List<Feed> parseJson(String json) {
if (json == null) {
return null;
}
List<Feed> feeds = QueryUtils.extractFeeds(json);
return feeds;
}
}
}
|
package com.bingo.code.example.design.command.macros;
/**
* ��������������
*/
public class PorkCommand implements Command {
private CookApi cookApi = null;
public void setCookApi(CookApi cookApi) {
this.cookApi = cookApi;
}
public void execute() {
this.cookApi.cook("�������");
}
}
|
package commonproductcore;
import java.util.*;
import java.io.Serializable;
import de.hybris.platform.util.*;
import de.hybris.platform.core.*;
import de.hybris.platform.jalo.JaloBusinessException;
import de.hybris.platform.jalo.type.*;
import de.hybris.platform.persistence.type.*;
import de.hybris.platform.persistence.enumeration.*;
import de.hybris.platform.persistence.property.PersistenceManager;
import de.hybris.platform.persistence.*;
/**
* Generated by hybris Platform.
*/
@SuppressWarnings({"cast","unused","boxing","null", "PMD"})
public class GeneratedTypeInitializer extends AbstractTypeInitializer
{
/**
* Generated by hybris Platform.
*/
public GeneratedTypeInitializer( ManagerEJB manager, Map params )
{
super( manager, params );
}
/**
* Generated by hybris Platform.
*/
@Override
protected void performRemoveObjects( ManagerEJB manager, Map params ) throws JaloBusinessException
{
// no-op by now
}
/**
* Generated by hybris Platform.
*/
@Override
protected final void performCreateTypes( final ManagerEJB manager, Map params ) throws JaloBusinessException
{
// performCreateTypes
createItemType(
"Affiliation",
"AbstractCommonMasterType",
com.cnk.travelogix.product.common.core.jalo.Affiliation.class,
null,
false,
null,
false
);
createItemType(
"Interest",
"AbstractCommonMasterType",
com.cnk.travelogix.product.common.core.jalo.Interest.class,
null,
false,
null,
false
);
createItemType(
"TravelogixRuleType",
"AbstractCommonMasterType",
com.cnk.travelogix.product.common.core.jalo.TravelogixRuleType.class,
null,
false,
null,
false
);
createItemType(
"DeactivationConfig",
"GenericItem",
com.cnk.travelogix.product.common.core.jalo.DeactivationConfig.class,
"de.hybris.platform.persistence.commonproductcore_DeactivationConfig",
false,
null,
false
);
createItemType(
"DescriptionDetails",
"GenericItem",
com.cnk.travelogix.product.common.core.jalo.DescriptionDetails.class,
"de.hybris.platform.persistence.commonproductcore_DescriptionDetails",
false,
null,
false
);
createItemType(
"HealthAndSafety",
"GenericItem",
com.cnk.travelogix.product.common.core.jalo.HealthAndSafety.class,
"de.hybris.platform.persistence.commonproductcore_HealthAndSafety",
false,
null,
false
);
createItemType(
"PlaceDescription",
"GenericItem",
com.cnk.travelogix.product.common.core.jalo.PlaceDescription.class,
"de.hybris.platform.persistence.commonproductcore_PlaceDescription",
false,
null,
false
);
createItemType(
"NameOfPlace",
"AbstractCommonMasterType",
com.cnk.travelogix.product.common.core.jalo.NameOfPlace.class,
"de.hybris.platform.persistence.commonproductcore_NameOfPlace",
false,
null,
false
);
createItemType(
"Route",
"GenericItem",
com.cnk.travelogix.product.common.core.jalo.Route.class,
"de.hybris.platform.persistence.commonproductcore_Route",
false,
null,
false
);
createItemType(
"Ancillary",
"Product",
com.cnk.travelogix.product.common.core.jalo.Ancillary.class,
"de.hybris.platform.persistence.commonproductcore_Ancillary",
false,
null,
false
);
createItemType(
"Facility",
"GenericItem",
com.cnk.travelogix.product.common.core.jalo.Facility.class,
"de.hybris.platform.persistence.commonproductcore_Facility",
false,
null,
false
);
createItemType(
"Brochure",
"GenericItem",
com.cnk.travelogix.product.common.core.jalo.Brochure.class,
"de.hybris.platform.persistence.commonproductcore_Brochure",
false,
null,
false
);
createItemType(
"ProductUpdate",
"DescriptionDetails",
com.cnk.travelogix.product.common.core.jalo.ProductUpdate.class,
"de.hybris.platform.persistence.commonproductcore_ProductUpdate",
false,
null,
false
);
createItemType(
"CombinationProduct",
"Product",
com.cnk.travelogix.product.common.core.jalo.CombinationProduct.class,
null,
false,
null,
false
);
createItemType(
"PriceRetention",
"GenericItem",
com.cnk.travelogix.product.common.core.jalo.PriceRetention.class,
"de.hybris.platform.persistence.commonproductcore_PriceRetention",
false,
null,
false
);
createItemType(
"AbstractPriceRetention",
"GenericItem",
com.cnk.travelogix.product.common.core.jalo.AbstractPriceRetention.class,
"de.hybris.platform.persistence.commonproductcore_AbstractPriceRetention",
false,
null,
true
);
createItemType(
"Individual",
"AbstractPriceRetention",
com.cnk.travelogix.product.common.core.jalo.Individual.class,
null,
false,
null,
false
);
createItemType(
"Combo",
"AbstractPriceRetention",
com.cnk.travelogix.product.common.core.jalo.Combo.class,
null,
false,
null,
false
);
createItemType(
"ProductDefinition",
"GenericItem",
com.cnk.travelogix.product.common.core.jalo.ProductDefinition.class,
"de.hybris.platform.persistence.commonproductcore_ProductDefinition",
false,
null,
false
);
createItemType(
"AttachedProduct",
"GenericItem",
com.cnk.travelogix.product.common.core.jalo.AttachedProduct.class,
"de.hybris.platform.persistence.commonproductcore_AttachedProduct",
false,
null,
false
);
createItemType(
"PointOfSale",
"GenericItem",
com.cnk.travelogix.product.common.core.jalo.PointOfSale.class,
"de.hybris.platform.persistence.commonproductcore_PointOfSale",
false,
null,
false
);
createItemType(
"RuleInfo",
"GenericItem",
com.cnk.travelogix.product.common.core.jalo.RuleInfo.class,
"de.hybris.platform.persistence.commonproductcore_RuleInfo",
false,
null,
false
);
createItemType(
"AbstractVisaDetails",
"GenericItem",
com.cnk.travelogix.product.common.core.jalo.AbstractVisaDetails.class,
"de.hybris.platform.persistence.commonproductcore_AbstractVisaDetails",
false,
null,
false
);
createItemType(
"AbstractDayWiseItinerary",
"GenericItem",
com.cnk.travelogix.product.common.core.jalo.AbstractDayWiseItinerary.class,
"de.hybris.platform.persistence.commonproductcore_AbstractDayWiseItinerary",
false,
null,
false
);
createItemType(
"FileName",
"AbstractCommonMasterType",
com.cnk.travelogix.product.common.core.jalo.FileName.class,
null,
false,
null,
false
);
createItemType(
"AccommodationBrand",
"GenericItem",
com.cnk.travelogix.product.common.core.jalo.AccommodationBrand.class,
"de.hybris.platform.persistence.commonproductcore_AccommodationBrand",
false,
null,
false
);
createItemType(
"AccommodationChain",
"GenericItem",
com.cnk.travelogix.product.common.core.jalo.AccommodationChain.class,
"de.hybris.platform.persistence.commonproductcore_AccommodationChain",
false,
null,
false
);
createItemType(
"Accommodation",
"Product",
com.cnk.travelogix.product.common.core.jalo.Accommodation.class,
null,
false,
null,
false
);
createItemType(
"ActualPrices",
"GenericItem",
com.cnk.travelogix.product.common.core.jalo.ActualPrices.class,
"de.hybris.platform.persistence.commonproductcore_ActualPrices",
false,
null,
false
);
createRelationType(
"ProductTOMarketDeactivationConfig",
null,
true
);
createRelationType(
"PriceRetentionToIndividualRetentions",
null,
true
);
createRelationType(
"CombinationProductToProductDefinitions",
null,
true
);
createRelationType(
"CombinationProductToPointOfSale",
"de.hybris.platform.persistence.link.commonproductcore_CombinationProductToPointOfSale",
false
);
createRelationType(
"ProductDefinitionToAttachedProducts",
"de.hybris.platform.persistence.link.commonproductcore_ProductDefinitionToAttachedProducts",
false
);
createRelationType(
"ProductToshortDescriptions",
null,
true
);
createRelationType(
"ProductTolongDescriptions",
null,
true
);
createRelationType(
"ProductToProductUpdate",
null,
true
);
createRelationType(
"StaffInformationToEContactInfos",
null,
true
);
createEnumerationType(
"VehicleCategory",
null
);
createEnumerationType(
"Theme",
null
);
createEnumerationType(
"VisaType",
null
);
createEnumerationType(
"Rating",
null
);
createEnumerationType(
"ActivationStatus",
null
);
createEnumerationType(
"PlaceCategory",
null
);
createEnumerationType(
"ModeOfTransport",
null
);
createEnumerationType(
"FacilityCategory",
null
);
createEnumerationType(
"RetentionFactor",
null
);
createEnumerationType(
"UpdateType",
null
);
createEnumerationType(
"DescriptionType",
null
);
createEnumerationType(
"ResortType",
null
);
createEnumerationType(
"HealthAndSafetyCategory",
null
);
createEnumerationType(
"FacilityType",
null
);
createEnumerationType(
"EntryType",
null
);
createCollectionType(
"Countries",
"Country",
CollectionType.COLLECTION
);
createCollectionType(
"Cities",
"City",
CollectionType.COLLECTION
);
createCollectionType(
"HashTagCollection",
"HashTag",
CollectionType.COLLECTION
);
}
/**
* Generated by hybris Platform.
*/
@Override
protected final void performModifyTypes( final ManagerEJB manager, Map params ) throws JaloBusinessException
{
// performModifyTypes
single_createattr_Product_commonProductID();
single_createattr_Product_financeControlId();
single_createattr_Product_reason();
single_createattr_Product_active();
single_createattr_Product_lockedBy();
single_createattr_Product_copiedFrom();
single_createattr_Product_displayName();
single_createattr_Product_interest();
single_createattr_Product_usp();
single_createattr_Product_highlights();
single_createattr_Product_sellingTips();
single_createattr_Product_workFlowStatus();
single_createattr_Product_isProductSharable();
single_createattr_DeactivationConfig_companyMarket();
single_createattr_DeactivationConfig_validityStartDate();
single_createattr_DeactivationConfig_validityEndDate();
single_createattr_DeactivationConfig_status();
single_createattr_DeactivationConfig_reason();
single_createattr_DescriptionDetails_description();
single_createattr_DescriptionDetails_fromToDate();
single_createattr_DescriptionDetails_source();
single_createattr_HealthAndSafety_healthAndSafetyCategory();
single_createattr_HealthAndSafety_healthAndSafetyName();
single_createattr_HealthAndSafety_remarks();
single_createattr_HealthAndSafety_value();
single_createattr_HealthAndSafety_lastUpdate();
single_createattr_PlaceDescription_placeOfCategory();
single_createattr_PlaceDescription_placeName();
single_createattr_PlaceDescription_distanceFromProperty();
single_createattr_PlaceDescription_distanceUnit();
single_createattr_PlaceDescription_description();
single_createattr_Route_from();
single_createattr_Route_nameOfPlace();
single_createattr_Route_modeOfTransport();
single_createattr_Route_transportType();
single_createattr_Route_distanceFromProperty();
single_createattr_Route_approximateDuration();
single_createattr_Route_description();
single_createattr_Route_drivingDirection();
single_createattr_Route_validFromTO();
single_createattr_Route_distanceUnit();
single_createattr_Ancillary_ancillaryType();
single_createattr_Facility_facilityName();
single_createattr_Facility_facilityCategory();
single_createattr_Facility_facilityType();
single_createattr_Facility_description();
single_createattr_Facility_dateRange();
single_createattr_Brochure_code();
single_createattr_Brochure_name();
single_createattr_Brochure_media();
single_createattr_ProductUpdate_updateType();
single_createattr_ProductUpdate_descriptionType();
single_createattr_ProductUpdate_sendToCustomer();
single_createattr_ProductUpdate_showOnVoucher();
single_createattr_ProductUpdate_modeOfCommunication();
single_createattr_CombinationProduct_comboFailDueToSingleProduct();
single_createattr_CombinationProduct_singleProductCancellation();
single_createattr_CombinationProduct_priceRetention();
single_createattr_CombinationProduct_entity();
single_createattr_CombinationProduct_companyMarket();
single_createattr_PriceRetention_includeStandardCommission();
single_createattr_PriceRetention_isCombo();
single_createattr_PriceRetention_comboRetention();
single_createattr_AbstractPriceRetention_retentionFactor();
single_createattr_AbstractPriceRetention_value();
single_createattr_Individual_category();
single_createattr_ProductDefinition_attachId();
single_createattr_ProductDefinition_category();
single_createattr_AttachedProduct_include();
single_createattr_AttachedProduct_product();
single_createattr_PointOfSale_pointOfSale();
single_createattr_RuleInfo_ruleType();
single_createattr_RuleInfo_description();
single_createattr_AbstractVisaDetails_productCategory();
single_createattr_AbstractVisaDetails_ProductCategorySubType();
single_createattr_AbstractVisaDetails_country();
single_createattr_AbstractVisaDetails_duration();
single_createattr_AbstractVisaDetails_entryType();
single_createattr_AbstractVisaDetails_purposeOfTravel();
single_createattr_AbstractVisaDetails_passportIssedIn();
single_createattr_AbstractVisaDetails_whereAreYouLocated();
single_createattr_AbstractVisaDetails_citizenShip();
single_createattr_AbstractDayWiseItinerary_city();
single_createattr_AbstractDayWiseItinerary_sequenceNumber();
single_createattr_AbstractDayWiseItinerary_productCategory();
single_createattr_AbstractDayWiseItinerary_ProductCategorySubType();
single_createattr_AbstractDayWiseItinerary_day();
single_createattr_AbstractDayWiseItinerary_standardPrice();
single_createattr_AbstractDayWiseItinerary_deluxePrice();
single_createattr_AbstractDayWiseItinerary_superiorPrice();
single_createattr_AbstractDayWiseItinerary_itineraryBrief();
single_createattr_AbstractDayWiseItinerary_itineraryDetails();
single_createattr_Media_roomCategory();
single_createattr_Media_validFromTO();
single_createattr_Media_name();
single_createattr_Media_fileName();
single_createattr_AccommodationBrand_code();
single_createattr_AccommodationBrand_name();
single_createattr_AccommodationChain_code();
single_createattr_AccommodationChain_name();
single_createattr_AccommodationChain_displayName();
single_createattr_AccommodationChain_address();
single_createattr_AccommodationChain_description();
single_createattr_AccommodationChain_email();
single_createattr_AccommodationChain_url();
single_createattr_Accommodation_chain();
single_createattr_Accommodation_brand();
single_createattr_Accommodation_affiliation();
single_createattr_Accommodation_address();
single_createattr_Accommodation_hotelRating();
single_createattr_Accommodation_companyRating();
single_createattr_Accommodation_ratingDate();
single_createattr_Accommodation_totalFloors();
single_createattr_Accommodation_totalRooms();
single_createattr_Accommodation_recommendedFor();
single_createattr_Accommodation_checkinTime();
single_createattr_Accommodation_checkoutTime();
single_createattr_Accommodation_internalRemark();
single_createattr_Accommodation_hashTags();
single_createattr_Accommodation_companyRecommended();
single_createattr_Accommodation_mysteryProduct();
single_createattr_Accommodation_resortType();
single_createattr_ActualPrices_onlineFrom();
single_createattr_ActualPrices_offlineFrom();
createRelationAttributes(
"ProductTOMarketDeactivationConfig",
false,
"product",
"Product",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
false,
false,
CollectionType.COLLECTION,
"marketDeactivationConfig",
"DeactivationConfig",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.PARTOF_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
true,
false,
CollectionType.COLLECTION
);
createRelationAttributes(
"PriceRetentionToIndividualRetentions",
false,
"priceRetention",
"PriceRetention",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
false,
false,
CollectionType.COLLECTION,
"individualRetentions",
"Individual",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
true,
false,
CollectionType.COLLECTION
);
createRelationAttributes(
"CombinationProductToProductDefinitions",
false,
"combinationProduct",
"CombinationProduct",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
false,
false,
CollectionType.COLLECTION,
"products",
"ProductDefinition",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
true,
false,
CollectionType.COLLECTION
);
createRelationAttributes(
"CombinationProductToPointOfSale",
false,
"combinationProduct",
"CombinationProduct",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
true,
false,
CollectionType.COLLECTION,
"pointOfSale",
"PointOfSale",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
true,
false,
CollectionType.COLLECTION
);
createRelationAttributes(
"ProductDefinitionToAttachedProducts",
false,
"productDefinition",
"ProductDefinition",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
true,
false,
CollectionType.COLLECTION,
"attachedProducts",
"AttachedProduct",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
true,
false,
CollectionType.COLLECTION
);
createRelationAttributes(
"ProductToshortDescriptions",
false,
"productShortDescription",
"Product",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
false,
false,
CollectionType.COLLECTION,
"shortDescriptions",
"DescriptionDetails",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.PARTOF_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
true,
false,
CollectionType.COLLECTION
);
createRelationAttributes(
"ProductTolongDescriptions",
false,
"productLongDescription",
"Product",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
false,
false,
CollectionType.COLLECTION,
"longDescriptions",
"DescriptionDetails",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.PARTOF_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
true,
false,
CollectionType.COLLECTION
);
createRelationAttributes(
"ProductToProductUpdate",
false,
"product",
"Product",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
false,
false,
CollectionType.COLLECTION,
"productUpdates",
"ProductUpdate",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.PARTOF_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
true,
false,
CollectionType.COLLECTION
);
createRelationAttributes(
"StaffInformationToEContactInfos",
false,
"staffInformation",
"StaffInformation",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
false,
false,
CollectionType.COLLECTION,
"eContactInfos",
"EContactInfo",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.PARTOF_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
true,
false,
CollectionType.COLLECTION
);
}
public void single_createattr_Product_commonProductID() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Product",
"commonProductID",
null,
"java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.INITIAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Product_financeControlId() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Product",
"financeControlId",
null,
"java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Product_reason() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Product",
"reason",
null,
"java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Product_active() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Product",
"active",
null,
"java.lang.Boolean",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Product_lockedBy() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Product",
"lockedBy",
null,
"Employee",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Product_copiedFrom() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Product",
"copiedFrom",
null,
"java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Product_displayName() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Product",
"displayName",
null,
"localized:java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Product_interest() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Product",
"interest",
null,
"Interest",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Product_usp() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Product",
"usp",
null,
"java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Product_highlights() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Product",
"highlights",
null,
"java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Product_sellingTips() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Product",
"sellingTips",
null,
"java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Product_workFlowStatus() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Product",
"workFlowStatus",
null,
"ApprovalWorkFlowStatus",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Product_isProductSharable() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Product",
"isProductSharable",
null,
"java.lang.Boolean",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_DeactivationConfig_companyMarket() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"DeactivationConfig",
"companyMarket",
null,
"Market",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.INITIAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_DeactivationConfig_validityStartDate() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"DeactivationConfig",
"validityStartDate",
null,
"java.util.Date",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_DeactivationConfig_validityEndDate() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"DeactivationConfig",
"validityEndDate",
null,
"java.util.Date",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_DeactivationConfig_status() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"DeactivationConfig",
"status",
null,
"java.lang.Boolean",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_DeactivationConfig_reason() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"DeactivationConfig",
"reason",
null,
"java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_DescriptionDetails_description() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"DescriptionDetails",
"description",
null,
"localized:java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_DescriptionDetails_fromToDate() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"DescriptionDetails",
"fromToDate",
null,
"de.hybris.platform.util.StandardDateRange",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_DescriptionDetails_source() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"DescriptionDetails",
"source",
null,
"java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_HealthAndSafety_healthAndSafetyCategory() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"HealthAndSafety",
"healthAndSafetyCategory",
null,
"HealthAndSafetyCategory",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_HealthAndSafety_healthAndSafetyName() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"HealthAndSafety",
"healthAndSafetyName",
null,
"java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_HealthAndSafety_remarks() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"HealthAndSafety",
"remarks",
null,
"java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_HealthAndSafety_value() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"HealthAndSafety",
"value",
null,
"java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_HealthAndSafety_lastUpdate() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"HealthAndSafety",
"lastUpdate",
null,
"java.util.Date",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_PlaceDescription_placeOfCategory() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"PlaceDescription",
"placeOfCategory",
null,
"PlaceCategory",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_PlaceDescription_placeName() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"PlaceDescription",
"placeName",
null,
"java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_PlaceDescription_distanceFromProperty() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"PlaceDescription",
"distanceFromProperty",
null,
"java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_PlaceDescription_distanceUnit() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"PlaceDescription",
"distanceUnit",
null,
"DistanceUnit",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_PlaceDescription_description() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"PlaceDescription",
"description",
null,
"localized:java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Route_from() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Route",
"from",
null,
"Location",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Route_nameOfPlace() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Route",
"nameOfPlace",
null,
"NameOfPlace",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Route_modeOfTransport() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Route",
"modeOfTransport",
null,
"ModeOfTransport",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Route_transportType() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Route",
"transportType",
null,
"ProductCategorySubType",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Route_distanceFromProperty() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Route",
"distanceFromProperty",
null,
"java.lang.Double",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Route_approximateDuration() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Route",
"approximateDuration",
null,
"java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Route_description() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Route",
"description",
null,
"localized:java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Route_drivingDirection() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Route",
"drivingDirection",
null,
"java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Route_validFromTO() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Route",
"validFromTO",
null,
"de.hybris.platform.util.StandardDateRange",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Route_distanceUnit() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Route",
"distanceUnit",
null,
"DistanceUnit",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Ancillary_ancillaryType() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Ancillary",
"ancillaryType",
null,
"AncillaryType",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Facility_facilityName() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Facility",
"facilityName",
null,
"localized:java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Facility_facilityCategory() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Facility",
"facilityCategory",
null,
"FacilityCategory",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Facility_facilityType() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Facility",
"facilityType",
null,
"FacilityType",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Facility_description() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Facility",
"description",
null,
"localized:java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Facility_dateRange() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Facility",
"dateRange",
null,
"de.hybris.platform.util.StandardDateRange",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Brochure_code() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Brochure",
"code",
null,
"java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Brochure_name() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Brochure",
"name",
null,
"localized:java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Brochure_media() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Brochure",
"media",
null,
"localized:Media",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_ProductUpdate_updateType() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"ProductUpdate",
"updateType",
null,
"UpdateType",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_ProductUpdate_descriptionType() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"ProductUpdate",
"descriptionType",
null,
"DescriptionType",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_ProductUpdate_sendToCustomer() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"ProductUpdate",
"sendToCustomer",
null,
"java.lang.Boolean",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_ProductUpdate_showOnVoucher() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"ProductUpdate",
"showOnVoucher",
null,
"java.lang.Boolean",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_ProductUpdate_modeOfCommunication() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"ProductUpdate",
"modeOfCommunication",
null,
"CommunicationMedium",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_CombinationProduct_comboFailDueToSingleProduct() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"CombinationProduct",
"comboFailDueToSingleProduct",
null,
"java.lang.Boolean",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_CombinationProduct_singleProductCancellation() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"CombinationProduct",
"singleProductCancellation",
null,
"java.lang.Boolean",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_CombinationProduct_priceRetention() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"CombinationProduct",
"priceRetention",
null,
"PriceRetention",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_CombinationProduct_entity() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"CombinationProduct",
"entity",
null,
"Principal",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_CombinationProduct_companyMarket() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"CombinationProduct",
"companyMarket",
null,
"Market",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_PriceRetention_includeStandardCommission() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"PriceRetention",
"includeStandardCommission",
null,
"java.lang.Boolean",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_PriceRetention_isCombo() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"PriceRetention",
"isCombo",
null,
"java.lang.Boolean",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_PriceRetention_comboRetention() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"PriceRetention",
"comboRetention",
null,
"Combo",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_AbstractPriceRetention_retentionFactor() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"AbstractPriceRetention",
"retentionFactor",
null,
"RetentionFactor",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_AbstractPriceRetention_value() throws JaloBusinessException
{
Map sqlColumnDefinitions = new HashMap();
sqlColumnDefinitions.put(
de.hybris.platform.persistence.property.PersistenceManager.NO_DATABASE,
"java.math.BigDecimal"
);
createPropertyAttribute(
"AbstractPriceRetention",
"value",
null,
"java.math.BigDecimal",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Individual_category() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Individual",
"category",
null,
"ProductCategorySubType",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_ProductDefinition_attachId() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"ProductDefinition",
"attachId",
null,
"java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_ProductDefinition_category() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"ProductDefinition",
"category",
null,
"ProductCategorySubType",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_AttachedProduct_include() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"AttachedProduct",
"include",
null,
"java.lang.Boolean",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_AttachedProduct_product() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"AttachedProduct",
"product",
null,
"Product",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_PointOfSale_pointOfSale() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"PointOfSale",
"pointOfSale",
null,
"PointOfServiceTypeEnum",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_RuleInfo_ruleType() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"RuleInfo",
"ruleType",
null,
"TravelogixRuleType",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_RuleInfo_description() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"RuleInfo",
"description",
null,
"java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_AbstractVisaDetails_productCategory() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"AbstractVisaDetails",
"productCategory",
null,
"Category",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_AbstractVisaDetails_ProductCategorySubType() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"AbstractVisaDetails",
"ProductCategorySubType",
null,
"ProductCategorySubType",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_AbstractVisaDetails_country() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"AbstractVisaDetails",
"country",
null,
"Country",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_AbstractVisaDetails_duration() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"AbstractVisaDetails",
"duration",
null,
"java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_AbstractVisaDetails_entryType() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"AbstractVisaDetails",
"entryType",
null,
"EntryType",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_AbstractVisaDetails_purposeOfTravel() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"AbstractVisaDetails",
"purposeOfTravel",
null,
"VisaType",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_AbstractVisaDetails_passportIssedIn() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"AbstractVisaDetails",
"passportIssedIn",
null,
"Country",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_AbstractVisaDetails_whereAreYouLocated() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"AbstractVisaDetails",
"whereAreYouLocated",
null,
"Country",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_AbstractVisaDetails_citizenShip() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"AbstractVisaDetails",
"citizenShip",
null,
"Country",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_AbstractDayWiseItinerary_city() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"AbstractDayWiseItinerary",
"city",
null,
"City",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_AbstractDayWiseItinerary_sequenceNumber() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"AbstractDayWiseItinerary",
"sequenceNumber",
null,
"java.lang.Integer",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_AbstractDayWiseItinerary_productCategory() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"AbstractDayWiseItinerary",
"productCategory",
null,
"Category",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_AbstractDayWiseItinerary_ProductCategorySubType() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"AbstractDayWiseItinerary",
"ProductCategorySubType",
null,
"ProductCategorySubType",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_AbstractDayWiseItinerary_day() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"AbstractDayWiseItinerary",
"day",
null,
"java.lang.Integer",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_AbstractDayWiseItinerary_standardPrice() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"AbstractDayWiseItinerary",
"standardPrice",
null,
"PriceRow",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_AbstractDayWiseItinerary_deluxePrice() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"AbstractDayWiseItinerary",
"deluxePrice",
null,
"PriceRow",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_AbstractDayWiseItinerary_superiorPrice() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"AbstractDayWiseItinerary",
"superiorPrice",
null,
"PriceRow",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_AbstractDayWiseItinerary_itineraryBrief() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"AbstractDayWiseItinerary",
"itineraryBrief",
null,
"java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_AbstractDayWiseItinerary_itineraryDetails() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"AbstractDayWiseItinerary",
"itineraryDetails",
null,
"java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Media_roomCategory() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Media",
"roomCategory",
null,
"RoomCategory",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Media_validFromTO() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Media",
"validFromTO",
null,
"de.hybris.platform.util.StandardDateRange",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Media_name() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Media",
"name",
null,
"localized:java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Media_fileName() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Media",
"fileName",
null,
"FileName",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_AccommodationBrand_code() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"AccommodationBrand",
"code",
null,
"java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_AccommodationBrand_name() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"AccommodationBrand",
"name",
null,
"localized:java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_AccommodationChain_code() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"AccommodationChain",
"code",
null,
"java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_AccommodationChain_name() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"AccommodationChain",
"name",
null,
"java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_AccommodationChain_displayName() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"AccommodationChain",
"displayName",
null,
"localized:java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_AccommodationChain_address() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"AccommodationChain",
"address",
null,
"java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_AccommodationChain_description() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"AccommodationChain",
"description",
null,
"localized:java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_AccommodationChain_email() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"AccommodationChain",
"email",
null,
"java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_AccommodationChain_url() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"AccommodationChain",
"url",
null,
"java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Accommodation_chain() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Accommodation",
"chain",
null,
"AccommodationChain",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Accommodation_brand() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Accommodation",
"brand",
null,
"AccommodationBrand",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Accommodation_affiliation() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Accommodation",
"affiliation",
null,
"Affiliation",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Accommodation_address() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Accommodation",
"address",
null,
"Address",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Accommodation_hotelRating() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Accommodation",
"hotelRating",
null,
"Rating",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Accommodation_companyRating() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Accommodation",
"companyRating",
null,
"Rating",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Accommodation_ratingDate() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Accommodation",
"ratingDate",
null,
"java.util.Date",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Accommodation_totalFloors() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Accommodation",
"totalFloors",
null,
"java.lang.Integer",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Accommodation_totalRooms() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Accommodation",
"totalRooms",
null,
"java.lang.Integer",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Accommodation_recommendedFor() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Accommodation",
"recommendedFor",
null,
"RecommondationType",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Accommodation_checkinTime() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Accommodation",
"checkinTime",
null,
"java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Accommodation_checkoutTime() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Accommodation",
"checkoutTime",
null,
"java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Accommodation_internalRemark() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Accommodation",
"internalRemark",
null,
"java.lang.String",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Accommodation_hashTags() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Accommodation",
"hashTags",
null,
"HashTagCollection",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Accommodation_companyRecommended() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Accommodation",
"companyRecommended",
null,
"java.lang.Boolean",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Accommodation_mysteryProduct() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Accommodation",
"mysteryProduct",
null,
"java.lang.Boolean",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_Accommodation_resortType() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"Accommodation",
"resortType",
null,
"ResortType",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_ActualPrices_onlineFrom() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"ActualPrices",
"onlineFrom",
null,
"java.util.Date",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
public void single_createattr_ActualPrices_offlineFrom() throws JaloBusinessException
{
Map sqlColumnDefinitions = null;
createPropertyAttribute(
"ActualPrices",
"offlineFrom",
null,
"java.util.Date",
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
null,
sqlColumnDefinitions
);
}
/**
* Generated by hybris Platform.
*/
@Override
protected final void performCreateObjects( final ManagerEJB manager, Map params ) throws JaloBusinessException
{
// performCreateObjects
createEnumerationValues(
"VehicleCategory",
true,
Arrays.asList( new String[] {
"MINI",
"ECONOMY",
"COMPACT",
"INTERMEDIATE",
"STANDARD",
"FULLSIZE",
"PREMIUM",
"LUXARY",
"SPECIAL",
"OVERSIZE"
} )
);
createEnumerationValues(
"Theme",
true,
Arrays.asList( new String[] {
"BUDGET",
"LUXURY",
"PVT_TOURS",
"FAMILY",
"THEME_WATER_PARK",
"ADVENTURE",
"TREKKING",
"WALKING",
"BIKING",
"HIKING",
"SPA_RELAXATION",
"NATURE_WILDLIFE",
"SHOPPING",
"GOURMET",
"BANQUET",
"GOLF",
"SPORTS",
"SKI",
"WATER_SPORTS",
"SHOW_LIVE_ENT",
"NIGHT_LIFE",
"WATER_EXP"
} )
);
createEnumerationValues(
"VisaType",
true,
Arrays.asList( new String[] {
"BUSINESS",
"CONFERENCE",
"EMPLOYMENTR",
"FAMIL_REUNION",
"HONEYMOON",
"LONG_STAY",
"MEDICAL_TREATMENT",
"SEAMEN",
"SHORT_STAY",
"STUDIES",
"TOURISM",
"TRANSIT",
"WORK"
} )
);
createEnumerationValues(
"Rating",
true,
Arrays.asList( new String[] {
"ONE",
"TWO",
"THREE",
"FOUR",
"FIVE",
"SIX",
"SEVEN",
"STANDARD",
"SUPERIOR",
"DELUXE",
"LUXARY",
"BOUTIQUE"
} )
);
createEnumerationValues(
"ActivationStatus",
false,
Arrays.asList( new String[] {
"ACTIVE",
"IN_ACTIVE"
} )
);
createEnumerationValues(
"PlaceCategory",
true,
Arrays.asList( new String[] {
"Museum",
"Hospital",
"Restaurant",
"Embassy",
"Entertainment",
"Convention_Center",
"Activity"
} )
);
createEnumerationValues(
"ModeOfTransport",
true,
Arrays.asList( new String[] {
"ROAD",
"AIR",
"WATER",
"RAIL"
} )
);
createEnumerationValues(
"FacilityCategory",
true,
Arrays.asList( new String[] {
"RECREATIONAL",
"RESTRAURAT_AND_BAR",
"SPA_AND_RELAXATION",
"ACTIVITIES"
} )
);
createEnumerationValues(
"RetentionFactor",
true,
Arrays.asList( new String[] {
"AMOUNT",
"PERCENTAGE"
} )
);
createEnumerationValues(
"PointOfServiceTypeEnum",
true,
Arrays.asList( new String[] {
"WEBSITE",
"WHITELABEL",
"XML",
"ASP",
"CALLCENTRE",
"BRANCH",
"MOBILE",
"ALL"
} )
);
createEnumerationValues(
"UpdateType",
true,
Arrays.asList( new String[] {
"Renovation",
"Destination",
"Facilities",
"Amenities"
} )
);
createEnumerationValues(
"DescriptionType",
true,
Arrays.asList( new String[] {
"External",
"Internal",
"Both"
} )
);
createEnumerationValues(
"ResortType",
true,
Arrays.asList( new String[] {
} )
);
createEnumerationValues(
"HealthAndSafetyCategory",
true,
Arrays.asList( new String[] {
"DOCUMENTED_SAFETY_PROCEDURES_AND_PROTOCOLS",
"ENGINEERING_SERVICES_SYSTEMS_AND_PROCEDURES",
"GUEST_AND_OCCUPATIONAL_SAFETY_COMMITTEE",
"EMERGENCY_PLANNING_AND_PREPAREDNESS",
"TRAINING_LIFE_AND_GENERAL_SAFETY",
"BOILER_PLANT_AND_WATER_SYSTEMS",
"HEATING_VENTILATION_AND_AIR_CONDITIONING_HVAC",
"CHILLERS_AND_REFRIGERATION_SYSTEMS",
"POWER_SUPPLY_AND_DISTRIBUTION_AND_ENERGY_MANAGEMENT",
"ELECTRICAL_SAFETY",
"INCIDENT_RESPONSE_MANAGEMENT_RECORDING_AND_INVESTIGATIONS",
"WASTE_AND_ENVIRONMENTAL_MANAGEMENT_SYSTEMS_FACILITIES",
"INSURANCES",
"RISK_MANAGEMENT_IN_PURCHASING_AND_RECEIVING",
"SPORTING_FACILITIES_AND_SERVICES",
"SECURITY_OPERATIONS_AND_SYSTEMS",
"CLOSED_CIRCUIT_TV_AND_ALARM_SYSTEMS",
"HOUSEKEEPING_AND_CLEANING_OPERATIONS",
"LAUNDRY_OPERATIONS_AND_FACILITIES",
"LOADING_DOCK_RECEIVING_OPERATIONS",
"LIFTS_ESCALATORS_AND_WALKWAYS",
"FOOD_AND_BEVERAGE_SERVICES_KITCHEN_OPERATIONS",
"FIRE_SAFETY_SYSTEMS_PROCEDURES_AND_EQUIPMENT",
"VALET_AND_OTHER_PARKING",
"SWIMMING_POOLS_BEACHFRONTS_AND_SPAS",
"CHILDRENS_FACILITIES_AND_CHILD_MINDING",
"FITNESS_AND_HEALTH_CENTRES",
"LUGGAGE_HANDLING_AND_STORAGE_FACILITIES",
"GARDENS_TERRACES_AND_GROUNDS",
"GUEST_ROOMS_AND_FLOOR_SAFETY",
"MANAGEMENT_AND_LEADERSHIP"
} )
);
createEnumerationValues(
"FacilityType",
true,
Arrays.asList( new String[] {
"SWIMMING_POOL",
"CONTINENTAL_RESTAURANT",
"INDIAN_RESTAURANT",
"BADMINTON_COURT",
"GAME_ZONE"
} )
);
createEnumerationValues(
"EntryType",
false,
Arrays.asList( new String[] {
"Single_Entry",
"Double_Entry",
"Multiple_Entry",
"Re_Entry",
"Transit"
} )
);
createEnumerationValues(
"ProductReferenceTypeEnum",
false,
Arrays.asList( new String[] {
"PAID",
"COMPLEMENTARY"
} )
);
single_setRelAttributeProperties_ProductTOMarketDeactivationConfig_source();
single_setRelAttributeProperties_PriceRetentionToIndividualRetentions_source();
single_setRelAttributeProperties_CombinationProductToProductDefinitions_source();
single_setRelAttributeProperties_CombinationProductToPointOfSale_source();
single_setRelAttributeProperties_ProductDefinitionToAttachedProducts_source();
single_setRelAttributeProperties_ProductToshortDescriptions_source();
single_setRelAttributeProperties_ProductTolongDescriptions_source();
single_setRelAttributeProperties_ProductToProductUpdate_source();
single_setRelAttributeProperties_StaffInformationToEContactInfos_source();
single_setRelAttributeProperties_ProductTOMarketDeactivationConfig_target();
single_setRelAttributeProperties_PriceRetentionToIndividualRetentions_target();
single_setRelAttributeProperties_CombinationProductToProductDefinitions_target();
single_setRelAttributeProperties_CombinationProductToPointOfSale_target();
single_setRelAttributeProperties_ProductDefinitionToAttachedProducts_target();
single_setRelAttributeProperties_ProductToshortDescriptions_target();
single_setRelAttributeProperties_ProductTolongDescriptions_target();
single_setRelAttributeProperties_ProductToProductUpdate_target();
single_setRelAttributeProperties_StaffInformationToEContactInfos_target();
connectRelation(
"ProductTOMarketDeactivationConfig",
false,
"product",
"Product",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
"marketDeactivationConfig",
"DeactivationConfig",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.PARTOF_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
true,
false
);
connectRelation(
"PriceRetentionToIndividualRetentions",
false,
"priceRetention",
"PriceRetention",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
"individualRetentions",
"Individual",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
true,
true
);
connectRelation(
"CombinationProductToProductDefinitions",
false,
"combinationProduct",
"CombinationProduct",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
"products",
"ProductDefinition",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
true,
true
);
connectRelation(
"CombinationProductToPointOfSale",
false,
"combinationProduct",
"CombinationProduct",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
"pointOfSale",
"PointOfSale",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
true,
true
);
connectRelation(
"ProductDefinitionToAttachedProducts",
false,
"productDefinition",
"ProductDefinition",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
"attachedProducts",
"AttachedProduct",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
true,
true
);
connectRelation(
"ProductToshortDescriptions",
false,
"productShortDescription",
"Product",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
"shortDescriptions",
"DescriptionDetails",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.PARTOF_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
true,
false
);
connectRelation(
"ProductTolongDescriptions",
false,
"productLongDescription",
"Product",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
"longDescriptions",
"DescriptionDetails",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.PARTOF_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
true,
false
);
connectRelation(
"ProductToProductUpdate",
false,
"product",
"Product",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
"productUpdates",
"ProductUpdate",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.PARTOF_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
true,
false
);
connectRelation(
"StaffInformationToEContactInfos",
false,
"staffInformation",
"StaffInformation",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
"eContactInfos",
"EContactInfo",
true,
de.hybris.platform.jalo.type.AttributeDescriptor.READ_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.WRITE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.OPTIONAL_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.PARTOF_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.REMOVE_FLAG|de.hybris.platform.jalo.type.AttributeDescriptor.SEARCH_FLAG,
true,
false
);
{
Map customPropsMap = new HashMap();
setItemTypeProperties(
"Affiliation",
false,
true,
true,
null,
customPropsMap
);
}
{
Map customPropsMap = new HashMap();
setItemTypeProperties(
"Interest",
false,
true,
true,
null,
customPropsMap
);
}
{
Map customPropsMap = new HashMap();
setItemTypeProperties(
"TravelogixRuleType",
false,
true,
true,
null,
customPropsMap
);
}
{
Map customPropsMap = new HashMap();
changeMetaType(
"Product",
null,
customPropsMap
);
}
single_setAttributeProperties_Product_commonProductID();
single_setAttributeProperties_Product_financeControlId();
single_setAttributeProperties_Product_reason();
single_setAttributeProperties_Product_active();
single_setAttributeProperties_Product_lockedBy();
single_setAttributeProperties_Product_copiedFrom();
single_setAttributeProperties_Product_displayName();
single_setAttributeProperties_Product_interest();
single_setAttributeProperties_Product_usp();
single_setAttributeProperties_Product_highlights();
single_setAttributeProperties_Product_sellingTips();
single_setAttributeProperties_Product_workFlowStatus();
single_setAttributeProperties_Product_isProductSharable();
{
Map customPropsMap = new HashMap();
setItemTypeProperties(
"DeactivationConfig",
false,
true,
true,
null,
customPropsMap
);
}
single_setAttributeProperties_DeactivationConfig_companyMarket();
single_setAttributeProperties_DeactivationConfig_validityStartDate();
single_setAttributeProperties_DeactivationConfig_validityEndDate();
single_setAttributeProperties_DeactivationConfig_status();
single_setAttributeProperties_DeactivationConfig_reason();
{
Map customPropsMap = new HashMap();
setItemTypeProperties(
"DescriptionDetails",
false,
true,
true,
null,
customPropsMap
);
}
single_setAttributeProperties_DescriptionDetails_description();
single_setAttributeProperties_DescriptionDetails_fromToDate();
single_setAttributeProperties_DescriptionDetails_source();
{
Map customPropsMap = new HashMap();
setItemTypeProperties(
"HealthAndSafety",
false,
true,
true,
null,
customPropsMap
);
}
single_setAttributeProperties_HealthAndSafety_healthAndSafetyCategory();
single_setAttributeProperties_HealthAndSafety_healthAndSafetyName();
single_setAttributeProperties_HealthAndSafety_remarks();
single_setAttributeProperties_HealthAndSafety_value();
single_setAttributeProperties_HealthAndSafety_lastUpdate();
{
Map customPropsMap = new HashMap();
setItemTypeProperties(
"PlaceDescription",
false,
true,
true,
null,
customPropsMap
);
}
single_setAttributeProperties_PlaceDescription_placeOfCategory();
single_setAttributeProperties_PlaceDescription_placeName();
single_setAttributeProperties_PlaceDescription_distanceFromProperty();
single_setAttributeProperties_PlaceDescription_distanceUnit();
single_setAttributeProperties_PlaceDescription_description();
{
Map customPropsMap = new HashMap();
setItemTypeProperties(
"NameOfPlace",
false,
true,
true,
null,
customPropsMap
);
}
{
Map customPropsMap = new HashMap();
setItemTypeProperties(
"Route",
false,
true,
true,
null,
customPropsMap
);
}
single_setAttributeProperties_Route_from();
single_setAttributeProperties_Route_nameOfPlace();
single_setAttributeProperties_Route_modeOfTransport();
single_setAttributeProperties_Route_transportType();
single_setAttributeProperties_Route_distanceFromProperty();
single_setAttributeProperties_Route_approximateDuration();
single_setAttributeProperties_Route_description();
single_setAttributeProperties_Route_drivingDirection();
single_setAttributeProperties_Route_validFromTO();
single_setAttributeProperties_Route_distanceUnit();
{
Map customPropsMap = new HashMap();
setItemTypeProperties(
"Ancillary",
false,
true,
true,
null,
customPropsMap
);
}
single_setAttributeProperties_Ancillary_ancillaryType();
{
Map customPropsMap = new HashMap();
setItemTypeProperties(
"Facility",
false,
true,
true,
null,
customPropsMap
);
}
single_setAttributeProperties_Facility_facilityName();
single_setAttributeProperties_Facility_facilityCategory();
single_setAttributeProperties_Facility_facilityType();
single_setAttributeProperties_Facility_description();
single_setAttributeProperties_Facility_dateRange();
{
Map customPropsMap = new HashMap();
setItemTypeProperties(
"Brochure",
false,
true,
true,
null,
customPropsMap
);
}
single_setAttributeProperties_Brochure_code();
single_setAttributeProperties_Brochure_name();
single_setAttributeProperties_Brochure_media();
{
Map customPropsMap = new HashMap();
setItemTypeProperties(
"ProductUpdate",
false,
true,
true,
null,
customPropsMap
);
}
single_setAttributeProperties_ProductUpdate_updateType();
single_setAttributeProperties_ProductUpdate_descriptionType();
single_setAttributeProperties_ProductUpdate_sendToCustomer();
single_setAttributeProperties_ProductUpdate_showOnVoucher();
single_setAttributeProperties_ProductUpdate_modeOfCommunication();
{
Map customPropsMap = new HashMap();
setItemTypeProperties(
"CombinationProduct",
false,
true,
true,
null,
customPropsMap
);
}
single_setAttributeProperties_CombinationProduct_comboFailDueToSingleProduct();
single_setAttributeProperties_CombinationProduct_singleProductCancellation();
single_setAttributeProperties_CombinationProduct_priceRetention();
single_setAttributeProperties_CombinationProduct_entity();
single_setAttributeProperties_CombinationProduct_companyMarket();
{
Map customPropsMap = new HashMap();
setItemTypeProperties(
"PriceRetention",
false,
true,
true,
null,
customPropsMap
);
}
single_setAttributeProperties_PriceRetention_includeStandardCommission();
single_setAttributeProperties_PriceRetention_isCombo();
single_setAttributeProperties_PriceRetention_comboRetention();
{
Map customPropsMap = new HashMap();
setItemTypeProperties(
"AbstractPriceRetention",
false,
true,
true,
null,
customPropsMap
);
}
single_setAttributeProperties_AbstractPriceRetention_retentionFactor();
single_setAttributeProperties_AbstractPriceRetention_value();
{
Map customPropsMap = new HashMap();
setItemTypeProperties(
"Individual",
false,
true,
true,
null,
customPropsMap
);
}
single_setAttributeProperties_Individual_category();
{
Map customPropsMap = new HashMap();
setItemTypeProperties(
"Combo",
false,
true,
true,
null,
customPropsMap
);
}
{
Map customPropsMap = new HashMap();
setItemTypeProperties(
"ProductDefinition",
false,
true,
true,
null,
customPropsMap
);
}
single_setAttributeProperties_ProductDefinition_attachId();
single_setAttributeProperties_ProductDefinition_category();
{
Map customPropsMap = new HashMap();
setItemTypeProperties(
"AttachedProduct",
false,
true,
true,
null,
customPropsMap
);
}
single_setAttributeProperties_AttachedProduct_include();
single_setAttributeProperties_AttachedProduct_product();
{
Map customPropsMap = new HashMap();
setItemTypeProperties(
"PointOfSale",
false,
true,
true,
null,
customPropsMap
);
}
single_setAttributeProperties_PointOfSale_pointOfSale();
{
Map customPropsMap = new HashMap();
setItemTypeProperties(
"RuleInfo",
false,
true,
true,
null,
customPropsMap
);
}
single_setAttributeProperties_RuleInfo_ruleType();
single_setAttributeProperties_RuleInfo_description();
{
Map customPropsMap = new HashMap();
setItemTypeProperties(
"AbstractVisaDetails",
false,
true,
true,
null,
customPropsMap
);
}
single_setAttributeProperties_AbstractVisaDetails_productCategory();
single_setAttributeProperties_AbstractVisaDetails_ProductCategorySubType();
single_setAttributeProperties_AbstractVisaDetails_country();
single_setAttributeProperties_AbstractVisaDetails_duration();
single_setAttributeProperties_AbstractVisaDetails_entryType();
single_setAttributeProperties_AbstractVisaDetails_purposeOfTravel();
single_setAttributeProperties_AbstractVisaDetails_passportIssedIn();
single_setAttributeProperties_AbstractVisaDetails_whereAreYouLocated();
single_setAttributeProperties_AbstractVisaDetails_citizenShip();
{
Map customPropsMap = new HashMap();
setItemTypeProperties(
"AbstractDayWiseItinerary",
false,
true,
true,
null,
customPropsMap
);
}
single_setAttributeProperties_AbstractDayWiseItinerary_city();
single_setAttributeProperties_AbstractDayWiseItinerary_sequenceNumber();
single_setAttributeProperties_AbstractDayWiseItinerary_productCategory();
single_setAttributeProperties_AbstractDayWiseItinerary_ProductCategorySubType();
single_setAttributeProperties_AbstractDayWiseItinerary_day();
single_setAttributeProperties_AbstractDayWiseItinerary_standardPrice();
single_setAttributeProperties_AbstractDayWiseItinerary_deluxePrice();
single_setAttributeProperties_AbstractDayWiseItinerary_superiorPrice();
single_setAttributeProperties_AbstractDayWiseItinerary_itineraryBrief();
single_setAttributeProperties_AbstractDayWiseItinerary_itineraryDetails();
{
Map customPropsMap = new HashMap();
setItemTypeProperties(
"FileName",
false,
true,
true,
null,
customPropsMap
);
}
{
Map customPropsMap = new HashMap();
changeMetaType(
"Media",
null,
customPropsMap
);
}
single_setAttributeProperties_Media_roomCategory();
single_setAttributeProperties_Media_validFromTO();
single_setAttributeProperties_Media_name();
single_setAttributeProperties_Media_fileName();
{
Map customPropsMap = new HashMap();
setItemTypeProperties(
"AccommodationBrand",
false,
true,
true,
null,
customPropsMap
);
}
single_setAttributeProperties_AccommodationBrand_code();
single_setAttributeProperties_AccommodationBrand_name();
{
Map customPropsMap = new HashMap();
setItemTypeProperties(
"AccommodationChain",
false,
true,
true,
null,
customPropsMap
);
}
single_setAttributeProperties_AccommodationChain_code();
single_setAttributeProperties_AccommodationChain_name();
single_setAttributeProperties_AccommodationChain_displayName();
single_setAttributeProperties_AccommodationChain_address();
single_setAttributeProperties_AccommodationChain_description();
single_setAttributeProperties_AccommodationChain_email();
single_setAttributeProperties_AccommodationChain_url();
{
Map customPropsMap = new HashMap();
setItemTypeProperties(
"Accommodation",
false,
true,
true,
null,
customPropsMap
);
}
single_setAttributeProperties_Accommodation_chain();
single_setAttributeProperties_Accommodation_brand();
single_setAttributeProperties_Accommodation_affiliation();
single_setAttributeProperties_Accommodation_address();
single_setAttributeProperties_Accommodation_hotelRating();
single_setAttributeProperties_Accommodation_companyRating();
single_setAttributeProperties_Accommodation_ratingDate();
single_setAttributeProperties_Accommodation_totalFloors();
single_setAttributeProperties_Accommodation_totalRooms();
single_setAttributeProperties_Accommodation_recommendedFor();
single_setAttributeProperties_Accommodation_checkinTime();
single_setAttributeProperties_Accommodation_checkoutTime();
single_setAttributeProperties_Accommodation_internalRemark();
single_setAttributeProperties_Accommodation_hashTags();
single_setAttributeProperties_Accommodation_companyRecommended();
single_setAttributeProperties_Accommodation_mysteryProduct();
single_setAttributeProperties_Accommodation_resortType();
{
Map customPropsMap = new HashMap();
setItemTypeProperties(
"ActualPrices",
false,
true,
true,
null,
customPropsMap
);
}
single_setAttributeProperties_ActualPrices_onlineFrom();
single_setAttributeProperties_ActualPrices_offlineFrom();
setDefaultProperties(
"Countries",
true,
true,
null
);
setDefaultProperties(
"Cities",
true,
true,
null
);
setDefaultProperties(
"HashTagCollection",
true,
true,
null
);
setDefaultProperties(
"VehicleCategory",
true,
true,
null
);
setDefaultProperties(
"Theme",
true,
true,
null
);
setDefaultProperties(
"VisaType",
true,
true,
null
);
setDefaultProperties(
"Rating",
true,
true,
null
);
setDefaultProperties(
"ActivationStatus",
true,
true,
null
);
setDefaultProperties(
"PlaceCategory",
true,
true,
null
);
setDefaultProperties(
"ModeOfTransport",
true,
true,
null
);
setDefaultProperties(
"FacilityCategory",
true,
true,
null
);
setDefaultProperties(
"RetentionFactor",
true,
true,
null
);
changeMetaType(
"PointOfServiceTypeEnum",
null,
null
);
setDefaultProperties(
"UpdateType",
true,
true,
null
);
setDefaultProperties(
"DescriptionType",
true,
true,
null
);
setDefaultProperties(
"ResortType",
true,
true,
null
);
setDefaultProperties(
"HealthAndSafetyCategory",
true,
true,
null
);
setDefaultProperties(
"FacilityType",
true,
true,
null
);
setDefaultProperties(
"EntryType",
true,
true,
null
);
changeMetaType(
"ProductReferenceTypeEnum",
null,
null
);
}
public void single_setAttributeProperties_Product_commonProductID() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Product",
"commonProductID",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Product_financeControlId() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Product",
"financeControlId",
true,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Product_reason() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Product",
"reason",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Product_active() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Product",
"active",
false,
Boolean.FALSE,
"Boolean.FALSE",
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Product_lockedBy() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Product",
"lockedBy",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Product_copiedFrom() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Product",
"copiedFrom",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Product_displayName() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Product",
"displayName",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Product_interest() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Product",
"interest",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Product_usp() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Product",
"usp",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Product_highlights() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Product",
"highlights",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Product_sellingTips() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Product",
"sellingTips",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Product_workFlowStatus() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Product",
"workFlowStatus",
false,
em().getEnumerationValue("WorkFlowStatus","DRAFT"),
"em().getEnumerationValue(\"WorkFlowStatus\",\"DRAFT\")",
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Product_isProductSharable() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Product",
"isProductSharable",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_DeactivationConfig_companyMarket() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"DeactivationConfig",
"companyMarket",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_DeactivationConfig_validityStartDate() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"DeactivationConfig",
"validityStartDate",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_DeactivationConfig_validityEndDate() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"DeactivationConfig",
"validityEndDate",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_DeactivationConfig_status() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"DeactivationConfig",
"status",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_DeactivationConfig_reason() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"DeactivationConfig",
"reason",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_DescriptionDetails_description() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"DescriptionDetails",
"description",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_DescriptionDetails_fromToDate() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"DescriptionDetails",
"fromToDate",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_DescriptionDetails_source() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"DescriptionDetails",
"source",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_HealthAndSafety_healthAndSafetyCategory() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"HealthAndSafety",
"healthAndSafetyCategory",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_HealthAndSafety_healthAndSafetyName() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"HealthAndSafety",
"healthAndSafetyName",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_HealthAndSafety_remarks() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"HealthAndSafety",
"remarks",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_HealthAndSafety_value() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"HealthAndSafety",
"value",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_HealthAndSafety_lastUpdate() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"HealthAndSafety",
"lastUpdate",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_PlaceDescription_placeOfCategory() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"PlaceDescription",
"placeOfCategory",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_PlaceDescription_placeName() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"PlaceDescription",
"placeName",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_PlaceDescription_distanceFromProperty() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"PlaceDescription",
"distanceFromProperty",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_PlaceDescription_distanceUnit() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"PlaceDescription",
"distanceUnit",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_PlaceDescription_description() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"PlaceDescription",
"description",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Route_from() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Route",
"from",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Route_nameOfPlace() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Route",
"nameOfPlace",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Route_modeOfTransport() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Route",
"modeOfTransport",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Route_transportType() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Route",
"transportType",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Route_distanceFromProperty() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Route",
"distanceFromProperty",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Route_approximateDuration() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Route",
"approximateDuration",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Route_description() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Route",
"description",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Route_drivingDirection() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Route",
"drivingDirection",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Route_validFromTO() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Route",
"validFromTO",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Route_distanceUnit() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Route",
"distanceUnit",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Ancillary_ancillaryType() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Ancillary",
"ancillaryType",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Facility_facilityName() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Facility",
"facilityName",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Facility_facilityCategory() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Facility",
"facilityCategory",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Facility_facilityType() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Facility",
"facilityType",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Facility_description() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Facility",
"description",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Facility_dateRange() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Facility",
"dateRange",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Brochure_code() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Brochure",
"code",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Brochure_name() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Brochure",
"name",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Brochure_media() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Brochure",
"media",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_ProductUpdate_updateType() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"ProductUpdate",
"updateType",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_ProductUpdate_descriptionType() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"ProductUpdate",
"descriptionType",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_ProductUpdate_sendToCustomer() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"ProductUpdate",
"sendToCustomer",
false,
Boolean.FALSE,
"Boolean.FALSE",
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_ProductUpdate_showOnVoucher() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"ProductUpdate",
"showOnVoucher",
false,
Boolean.FALSE,
"Boolean.FALSE",
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_ProductUpdate_modeOfCommunication() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"ProductUpdate",
"modeOfCommunication",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_CombinationProduct_comboFailDueToSingleProduct() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"CombinationProduct",
"comboFailDueToSingleProduct",
false,
Boolean.FALSE,
"Boolean.FALSE",
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_CombinationProduct_singleProductCancellation() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"CombinationProduct",
"singleProductCancellation",
false,
Boolean.FALSE,
"Boolean.FALSE",
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_CombinationProduct_priceRetention() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"CombinationProduct",
"priceRetention",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_CombinationProduct_entity() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"CombinationProduct",
"entity",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_CombinationProduct_companyMarket() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"CombinationProduct",
"companyMarket",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_PriceRetention_includeStandardCommission() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"PriceRetention",
"includeStandardCommission",
false,
Boolean.FALSE,
"Boolean.FALSE",
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_PriceRetention_isCombo() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"PriceRetention",
"isCombo",
false,
Boolean.TRUE,
"Boolean.TRUE",
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_PriceRetention_comboRetention() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"PriceRetention",
"comboRetention",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_AbstractPriceRetention_retentionFactor() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"AbstractPriceRetention",
"retentionFactor",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_AbstractPriceRetention_value() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"AbstractPriceRetention",
"value",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Individual_category() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Individual",
"category",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_ProductDefinition_attachId() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"ProductDefinition",
"attachId",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_ProductDefinition_category() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"ProductDefinition",
"category",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_AttachedProduct_include() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"AttachedProduct",
"include",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_AttachedProduct_product() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"AttachedProduct",
"product",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_PointOfSale_pointOfSale() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"PointOfSale",
"pointOfSale",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_RuleInfo_ruleType() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"RuleInfo",
"ruleType",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_RuleInfo_description() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"RuleInfo",
"description",
true,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_AbstractVisaDetails_productCategory() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"AbstractVisaDetails",
"productCategory",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_AbstractVisaDetails_ProductCategorySubType() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"AbstractVisaDetails",
"ProductCategorySubType",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_AbstractVisaDetails_country() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"AbstractVisaDetails",
"country",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_AbstractVisaDetails_duration() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"AbstractVisaDetails",
"duration",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_AbstractVisaDetails_entryType() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"AbstractVisaDetails",
"entryType",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_AbstractVisaDetails_purposeOfTravel() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"AbstractVisaDetails",
"purposeOfTravel",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_AbstractVisaDetails_passportIssedIn() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"AbstractVisaDetails",
"passportIssedIn",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_AbstractVisaDetails_whereAreYouLocated() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"AbstractVisaDetails",
"whereAreYouLocated",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_AbstractVisaDetails_citizenShip() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"AbstractVisaDetails",
"citizenShip",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_AbstractDayWiseItinerary_city() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"AbstractDayWiseItinerary",
"city",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_AbstractDayWiseItinerary_sequenceNumber() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"AbstractDayWiseItinerary",
"sequenceNumber",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_AbstractDayWiseItinerary_productCategory() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"AbstractDayWiseItinerary",
"productCategory",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_AbstractDayWiseItinerary_ProductCategorySubType() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"AbstractDayWiseItinerary",
"ProductCategorySubType",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_AbstractDayWiseItinerary_day() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"AbstractDayWiseItinerary",
"day",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_AbstractDayWiseItinerary_standardPrice() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"AbstractDayWiseItinerary",
"standardPrice",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_AbstractDayWiseItinerary_deluxePrice() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"AbstractDayWiseItinerary",
"deluxePrice",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_AbstractDayWiseItinerary_superiorPrice() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"AbstractDayWiseItinerary",
"superiorPrice",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_AbstractDayWiseItinerary_itineraryBrief() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"AbstractDayWiseItinerary",
"itineraryBrief",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_AbstractDayWiseItinerary_itineraryDetails() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"AbstractDayWiseItinerary",
"itineraryDetails",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Media_roomCategory() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Media",
"roomCategory",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Media_validFromTO() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Media",
"validFromTO",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Media_name() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Media",
"name",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Media_fileName() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Media",
"fileName",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_AccommodationBrand_code() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"AccommodationBrand",
"code",
true,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_AccommodationBrand_name() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"AccommodationBrand",
"name",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_AccommodationChain_code() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"AccommodationChain",
"code",
true,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_AccommodationChain_name() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"AccommodationChain",
"name",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_AccommodationChain_displayName() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"AccommodationChain",
"displayName",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_AccommodationChain_address() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"AccommodationChain",
"address",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_AccommodationChain_description() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"AccommodationChain",
"description",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_AccommodationChain_email() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"AccommodationChain",
"email",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_AccommodationChain_url() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"AccommodationChain",
"url",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Accommodation_chain() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Accommodation",
"chain",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Accommodation_brand() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Accommodation",
"brand",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Accommodation_affiliation() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Accommodation",
"affiliation",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Accommodation_address() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Accommodation",
"address",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Accommodation_hotelRating() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Accommodation",
"hotelRating",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Accommodation_companyRating() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Accommodation",
"companyRating",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Accommodation_ratingDate() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Accommodation",
"ratingDate",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Accommodation_totalFloors() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Accommodation",
"totalFloors",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Accommodation_totalRooms() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Accommodation",
"totalRooms",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Accommodation_recommendedFor() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Accommodation",
"recommendedFor",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Accommodation_checkinTime() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Accommodation",
"checkinTime",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Accommodation_checkoutTime() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Accommodation",
"checkoutTime",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Accommodation_internalRemark() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Accommodation",
"internalRemark",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Accommodation_hashTags() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Accommodation",
"hashTags",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Accommodation_companyRecommended() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Accommodation",
"companyRecommended",
false,
Boolean.FALSE,
"Boolean.FALSE",
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Accommodation_mysteryProduct() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Accommodation",
"mysteryProduct",
false,
Boolean.FALSE,
"Boolean.FALSE",
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_Accommodation_resortType() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Accommodation",
"resortType",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_ActualPrices_onlineFrom() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"ActualPrices",
"onlineFrom",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setAttributeProperties_ActualPrices_offlineFrom() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"ActualPrices",
"offlineFrom",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setRelAttributeProperties_ProductTOMarketDeactivationConfig_source() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"DeactivationConfig",
"product",
false,
null,
null,
null,
true,
false,
null,
customPropsMap,
null
);
}
public void single_setRelAttributeProperties_ProductTOMarketDeactivationConfig_target() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Product",
"marketDeactivationConfig",
false,
null,
null,
null,
true,
false,
null,
customPropsMap,
null
);
}
public void single_setRelAttributeProperties_PriceRetentionToIndividualRetentions_source() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Individual",
"priceRetention",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setRelAttributeProperties_PriceRetentionToIndividualRetentions_target() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"PriceRetention",
"individualRetentions",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setRelAttributeProperties_CombinationProductToProductDefinitions_source() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"ProductDefinition",
"combinationProduct",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setRelAttributeProperties_CombinationProductToProductDefinitions_target() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"CombinationProduct",
"products",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setRelAttributeProperties_CombinationProductToPointOfSale_source() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"PointOfSale",
"combinationProduct",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setRelAttributeProperties_CombinationProductToPointOfSale_target() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"CombinationProduct",
"pointOfSale",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setRelAttributeProperties_ProductDefinitionToAttachedProducts_source() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"AttachedProduct",
"productDefinition",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setRelAttributeProperties_ProductDefinitionToAttachedProducts_target() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"ProductDefinition",
"attachedProducts",
false,
null,
null,
null,
true,
true,
null,
customPropsMap,
null
);
}
public void single_setRelAttributeProperties_ProductToshortDescriptions_source() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"DescriptionDetails",
"productShortDescription",
false,
null,
null,
null,
true,
false,
null,
customPropsMap,
null
);
}
public void single_setRelAttributeProperties_ProductToshortDescriptions_target() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Product",
"shortDescriptions",
false,
null,
null,
null,
true,
false,
null,
customPropsMap,
null
);
}
public void single_setRelAttributeProperties_ProductTolongDescriptions_source() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"DescriptionDetails",
"productLongDescription",
false,
null,
null,
null,
true,
false,
null,
customPropsMap,
null
);
}
public void single_setRelAttributeProperties_ProductTolongDescriptions_target() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Product",
"longDescriptions",
false,
null,
null,
null,
true,
false,
null,
customPropsMap,
null
);
}
public void single_setRelAttributeProperties_ProductToProductUpdate_source() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"ProductUpdate",
"product",
false,
null,
null,
null,
true,
false,
null,
customPropsMap,
null
);
}
public void single_setRelAttributeProperties_ProductToProductUpdate_target() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"Product",
"productUpdates",
false,
null,
null,
null,
true,
false,
null,
customPropsMap,
null
);
}
public void single_setRelAttributeProperties_StaffInformationToEContactInfos_source() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"EContactInfo",
"staffInformation",
false,
null,
null,
null,
true,
false,
null,
customPropsMap,
null
);
}
public void single_setRelAttributeProperties_StaffInformationToEContactInfos_target() throws JaloBusinessException
{
Map customPropsMap = new HashMap();
setAttributeProperties(
"StaffInformation",
"eContactInfos",
false,
null,
null,
null,
true,
false,
null,
customPropsMap,
null
);
}
}
|
package uz.projects.wallpaper.models;
import java.io.Serializable;
import java.util.List;
public class Category implements Serializable {
private String title;
private List<ImageData> imageDataList;
public Category(String title, List<ImageData> imageDataList) {
this.title = title;
this.imageDataList = imageDataList;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public List<ImageData> getImageDataList() {
return imageDataList;
}
public void setImageDataList(List<ImageData> imageDataList) {
this.imageDataList = imageDataList;
}
}
|
package com.ece496;
import android.app.DatePickerDialog;
import android.app.Dialog;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.DialogFragment;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.DatePicker;
import android.widget.GridView;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.ece496.backend.Scheduler;
import java.text.SimpleDateFormat;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.Locale;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.Locale;
public class MonthViewFragment extends Fragment {
static TextView CurrentDate;
static ImageView left;
static ImageView right;
public static final String TAG = "YOUR-TAG-NAME";
static int curr_year;
static int curr_month;
static int curr_day;
private RelativeLayout mLayout;
Calendar c;
int offset;
int margin_offset;
private int eventIndex;
@Override
public View onCreateView(LayoutInflater inflater,
ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_monthview, container, false);
//CalendarCustomView mView = (CalendarCustomView)view.findViewById(R.id.custom_calendar);
System.out.println (new Scheduler().get_backend_events_of_date(LocalDate.now()));
mLayout = view.findViewById(R.id.left_event_column);
eventIndex = mLayout.getChildCount();
CurrentDate = view.findViewById(R.id.display_current_date);
left = view.findViewById(R.id.previous_day);
right = view.findViewById(R.id.next_day);
c = Calendar.getInstance();
int day = c.get(Calendar.DAY_OF_MONTH);
int month = c.get(Calendar.MONTH);
int year = c.get(Calendar.YEAR);
int hour = c.get(Calendar.HOUR_OF_DAY);
int minute = c.get(Calendar.MINUTE);
curr_day = day;
curr_month = month + 1;
curr_year = year;
CurrentDate.setText(String.format("%s %d, %d", getMonthName(curr_month), curr_day, curr_year));
CurrentDate.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
// showDialog(DATE_DIALOG_ID);
DialogFragment newFragment = new MonthViewFragment.DatePickerFragmentMainPage();
newFragment.show(getFragmentManager(), "datePicker");
}
});
left.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
curr_day = day;
curr_month = month + 1;
curr_year = year;
offset = offset -1;
c = Calendar.getInstance();
c.add(Calendar.DAY_OF_MONTH, offset);
int day = c.get(Calendar.DAY_OF_MONTH);
int month = c.get(Calendar.MONTH);
int year = c.get(Calendar.YEAR);
int hour = c.get(Calendar.HOUR_OF_DAY);
int minute = c.get(Calendar.MINUTE);
curr_day = day;
curr_month = month + 1;
curr_year = year;
CurrentDate.setText(String.format("%s %d, %d", getMonthName(curr_month), curr_day, curr_year));
}
});
right.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
curr_day = day;
curr_month = month + 1;
curr_year = year;
offset = offset + 1;
c = Calendar.getInstance();
c.add(Calendar.DAY_OF_MONTH, offset);
int day = c.get(Calendar.DAY_OF_MONTH);
int month = c.get(Calendar.MONTH);
int year = c.get(Calendar.YEAR);
int hour = c.get(Calendar.HOUR_OF_DAY);
int minute = c.get(Calendar.MINUTE);
curr_day = day;
curr_month = month + 1;
curr_year = year;
CurrentDate.setText(String.format("%s %d, %d", getMonthName(curr_month), curr_day, curr_year));
}
});
displayDailyEvents();
return view;
}
@Override
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
}
public static class DatePickerFragmentMainPage extends DialogFragment implements DatePickerDialog.OnDateSetListener {
public Dialog onCreateDialog(Bundle savedInstanceState) {
// Use the current date as the default date in the picker
final Calendar c = Calendar.getInstance();
int year = c.get(Calendar.YEAR);
int month = c.get(Calendar.MONTH);
int day = c.get(Calendar.DAY_OF_MONTH);
return new DatePickerDialog(getActivity(), this, year, month, day);
}
public void onDateSet(DatePicker view, int year, int month, int day) {
curr_day = day;
curr_month = month +1;
curr_year=year;
CurrentDate.setText(String.format("%s %d, %d", getMonthName(curr_month), curr_day, curr_year));
//GET NEW LIST
}
public String getMonthName(int n) {
String month = "";
switch (n) {
case 1:
month = "January";
break;
case 2:
month = "February";
break;
case 3:
month = "March";
break;
case 4:
month = "April";
break;
case 5:
month = "May";
break;
case 6:
month = "June";
break;
case 7:
month = "July";
break;
case 8:
month = "August";
break;
case 9:
month = "September";
break;
case 10:
month = "October";
break;
case 11:
month = "November";
break;
case 12:
month = "December";
break;
default:
month = "";
break;
}
return month;
}
}
public String getMonthName(int n) {
String month = "";
switch (n) {
case 1:
month = "January";
break;
case 2:
month = "February";
break;
case 3:
month = "March";
break;
case 4:
month = "April";
break;
case 5:
month = "May";
break;
case 6:
month = "June";
break;
case 7:
month = "July";
break;
case 8:
month = "August";
break;
case 9:
month = "September";
break;
case 10:
month = "October";
break;
case 11:
month = "November";
break;
case 12:
month = "December";
break;
default:
month = "";
break;
}
return month;
}
private void displayDailyEvents(){
Scheduler s = new Scheduler();
List<FrontEndEvent> dailyEvent = new ArrayList<FrontEndEvent>(); //s.get_frontend_events_of_day(curr_year, curr_month, curr_day);
FrontEndEvent temp1 = new FrontEndEvent("event 1", "desc1", "2019 03 18 1 00", "2019 03 18 03 00", 120, "0000 00 00 00 00",
"0000 00 00 00 00", 0, "0000 00 00 00 00");
FrontEndEvent temp2 = new FrontEndEvent("event 2", "desc2", "2019 03 18 10 00", "2019 03 18 11 00", 120, "0000 00 00 00 00",
"0000 00 00 00 00", 0, "0000 00 00 00 00");
FrontEndEvent temp3 = new FrontEndEvent("event 3", "desc3", "2019 03 18 18 00", "2019 03 18 19 30", 120, "0000 00 00 00 00",
"0000 00 00 00 00", 0, "0000 00 00 00 00");
FrontEndEvent temp4 = new FrontEndEvent("event 3", "desc3", "2019 03 18 13 00", "2019 03 18 14 30", 120, "0000 00 00 00 00",
"0000 00 00 00 00", 0, "0000 00 00 00 00");
dailyEvent.add(temp1);
dailyEvent.add(temp2);
dailyEvent.add(temp4);
dailyEvent.add(temp3);
margin_offset = 15;
for(FrontEndEvent eObject : dailyEvent){
Date eventDate = eObject.getDate();
Date endDate = eObject.getEnd();
String eventMessage = eObject.getMessage();
int eventBlockHeight = getEventTimeFrame(eventDate, endDate);
Log.d(TAG, "Height " + eventBlockHeight);
displayEventSection(eventDate, eventBlockHeight, eventMessage);
margin_offset += 15 + eventBlockHeight;
}
}
private int getEventTimeFrame(Date start, Date end){
long diff = end.getTime() - start.getTime();
long diffMinutes = diff / (60 * 1000) % 60;
long diffHours = diff / (60 * 60 * 1000) % 24;
Log.d(TAG, "Hour value diff" + diffHours);
Log.d(TAG, "Minutes value diff" + diffMinutes);
long height = (diffHours * 60) + ((diffMinutes * 60) / 100) ;
int h = (int) height;
return h;
}
private void displayEventSection(Date eventDate, int height, String message){
SimpleDateFormat timeFormatter = new SimpleDateFormat("HH:mm", Locale.ENGLISH);
String displayValue = timeFormatter.format(eventDate);
String[]hourMinutes = displayValue.split(":");
int hours = Integer.parseInt(hourMinutes[0]);
int minutes = Integer.parseInt(hourMinutes[1]);
Log.d(TAG, "Hour value " + hours);
Log.d(TAG, "Minutes value " + minutes);
int topViewMargin = 0 + margin_offset;
Log.d(TAG, "Margin top " + topViewMargin);
createEventView(topViewMargin, height, message);
}
private void createEventView(int topMargin, int height, String message){
TextView mEventView = new TextView(getContext());
RelativeLayout.LayoutParams lParam = new RelativeLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);
lParam.addRule(RelativeLayout.ALIGN_PARENT_START);
lParam.topMargin = topMargin * 2;
lParam.leftMargin = 24;
mEventView.setLayoutParams(lParam);
mEventView.setPadding(24, 0, 24, 0);
mEventView.setHeight(height * 2);
mEventView.setGravity(0x11);
mEventView.setTextColor(Color.parseColor("#ffffff"));
mEventView.setText(message);
mEventView.setBackgroundColor(R.color.colorPrimary);
mLayout.addView(mEventView, eventIndex - 1);
}
}
|
package crawler_test;
import java.io.*;
import java.net.URL;
import java.util.ArrayList;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.io.FileUtils;
public class Test1 {
public static void main(String[] args) throws Exception {
String url = "http://www.hzim.org/p/hzim/match/textpath.jsf?match=35588577";//需要获取图片的网页url
String sourceCode = getSourceCode(url);//网页的源代码
String regExp = "<img(.+?)src=\"(.+?)\\.(jpg|jpeg|bmp|gif|png)\"";//需要匹配的源代码的正则表达式
String fileUrl = "/Users/Baltan/Desktop/old-driver.txt";//保存网页源代码的文件路径
String dirUrl = "/Users/Baltan/Desktop/pic";//保存网页文件的文件夹路径
ArrayList<String> picUrlList = getPicUrlList(url, sourceCode, regExp, fileUrl);
savePic(picUrlList, dirUrl);
}
/**
* 获取网页的源代码
*
* @param url 需要获取图片的网页url
* @return 网页的源代码
* @throws Exception
*/
public static String getSourceCode(String url) throws Exception {
URL realUrl = new URL(url);
// URLConnection connection = realUrl.openConnection();
// connection.connect();
// InputStream is = connection.getInputStream();
InputStream is = realUrl.openStream();
BufferedReader br = new BufferedReader(new InputStreamReader(is));
StringBuffer sb = new StringBuffer();
String sourceCode;
while ((sourceCode = br.readLine()) != null) {
sb.append(sourceCode);
}
if (br != null) {
br.close();
}
return sb.toString();
}
/**
* 获得网页源代码中所有图片路径集合,并写入到本地文件
*
* @param url 需要获取图片的网页url
* @param sourceCode 网页的源代码
* @param regExp 需要匹配的源代码的正则表达式
* @param fileUrl 保存网页源代码的文件路径
* @return 匹配到的网页源代码内容集合
* @throws Exception
*/
public static ArrayList<String> getPicUrlList(String url, String sourceCode, String regExp, String fileUrl)
throws Exception {
Pattern pattern = Pattern.compile(regExp);
Matcher matcher = pattern.matcher(sourceCode);
File file = new File(fileUrl);
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file)));
ArrayList<String> picUrlList = new ArrayList<>();
URL realUrl = new URL(url);
while (matcher.find()) {
String str = matcher.group();
int start = str.indexOf("src=\"") + 5;
int end = str.length() - 1;
str = str.substring(start, end);//获得图片路径
if (str.startsWith("/")) {
str = realUrl.getProtocol() + "://" + realUrl.getHost() + str;//如果图片路径为相对路径,将其改为绝对路径
}
String picUrl = str;
picUrlList.add(picUrl);
bw.write(picUrl);
bw.write("\n");
}
bw.flush();
if (bw != null) {
bw.close();
}
return picUrlList;
}
/**
* 将网页上的本地文件保存到本地文件夹中
*
* @param picUrlList 匹配到的网页源代码内容集合
* @param dirUrl 保存网页文件的文件夹路径
* @throws Exception
*/
public static void savePic(ArrayList<String> picUrlList, String dirUrl) throws Exception {
int i;
for (i = 0; i < picUrlList.size(); i++) {
String url = picUrlList.get(i);
String picName = dirUrl + "/" + url.substring(url.lastIndexOf("/") + 1, url.length());//图片本地保存路径,图片命名为原始文件名
URL picUrl = new URL(url);
File picFile = new File(picName);
FileUtils utils = new FileUtils();
utils.copyURLToFile(picUrl, picFile);
}
System.out.println("下载完成!");
}
}
|
package nc.prog1415;
import androidx.fragment.app.FragmentActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.OnMapReadyCallback;
import com.google.android.gms.maps.SupportMapFragment;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.MarkerOptions;
public class instaMap extends FragmentActivity implements OnMapReadyCallback {
private GoogleMap mMap;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_insta_map);
// Obtain the SupportMapFragment and get notified when the map is ready to be used.
SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()
.findFragmentById(R.id.map);
mapFragment.getMapAsync(this);
homButton();
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.map_options, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Change the map type based on the user's selection.
switch (item.getItemId()) {
case R.id.normal_map:
mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);
return true;
case R.id.hybrid_map:
mMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);
return true;
case R.id.satellite_map:
mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE);
return true;
case R.id.terrain_map:
mMap.setMapType(GoogleMap.MAP_TYPE_TERRAIN);
return true;
default:
return super.onOptionsItemSelected(item);
}
}
private void homButton(){
Button btnHome = (Button) findViewById(R.id.btnHome);
btnHome.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
startActivity(new Intent(instaMap.this,MainActivity.class));
}
});
}
@Override
public void onMapReady(GoogleMap googleMap) {
mMap = googleMap;
// Add a marker in Sydney and move the camera
LatLng sydney = new LatLng(-34, 151);
mMap.addMarker(new MarkerOptions().position(sydney).title("Marker in Sydney"));
mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));
}
}
|
package proxypatten.Proxy;
import proxypatten.Store.AgencyStore;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
public class RunTimeAgencyCarStoreProxy implements InvocationHandler {
private Object object;
public Object newProxy(Object object){
this.object = object;
return Proxy.newProxyInstance(object.getClass().getClassLoader(), object.getClass().getInterfaces(), this);
}
public RunTimeAgencyCarStoreProxy(Object object) {
this.object = object;
}
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
checkBeforeSell();
return method.invoke(object,args);
}
private void checkBeforeSell(){
System.out.println("Check the car.");
}
}
|
package com.saasbp.auth.adapter.in.web;
import java.util.UUID;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import com.saasbp.auth.application.port.in.PasswordResetUseCase;
@RestController
public class PasswordResetController {
@Autowired
private PasswordResetUseCase useCase;
@PostMapping("password-resets")
public void requestPasswordReset(@Valid @RequestBody EmailDto dto) {
useCase.requestPasswordReset(dto.getEmail());
}
@PutMapping(path = "password-resets/{code}/confirmation", consumes = MediaType.TEXT_PLAIN_VALUE)
public void fulfillPasswordReset(@PathVariable("code") UUID code, @RequestBody String newPassword) {
useCase.fulfillPasswordReset(code, newPassword);
}
}
|
package com.itheima.service;
import com.itheima.entity.Result;
import com.itheima.pojo.CheckGroup;
import java.util.List; /**
* 检查组服务接口
*/
public interface CheckGroupService {
/**
* 新增检查组
* @param checkGroup
* @param checkitemIds
*/
void add(CheckGroup checkGroup, List<Integer> checkitemIds);
/**
* 检查组分页
* @param queryString
* @param currentPage
* @param pageSize
* @return
*/
Result findPage(String queryString, Integer currentPage, Integer pageSize);
/**
* 根据检查组id查询检查组对象
* @param id
* @return
*/
CheckGroup findById(Integer id);
/**
* 根据检查组id查询检查项ids
* @param id
* @return
*/
List<Integer> findCheckItemIdsByCheckGroupId(Integer id);
/**
* 编辑检查项
* @param checkitemIds
* @param checkGroup
*/
void edit(Integer[] checkitemIds, CheckGroup checkGroup);
/**
* 查询所有检查组数据
* @return
*/
List<CheckGroup> findAll();
}
|
package com.beiming.modules.sys.resources.mapper;
import com.beiming.modules.base.mapper.BaseMapper;
import com.beiming.modules.sys.resources.domain.entity.resourceWeijianwei;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface resourceWeijianweiMapper extends BaseMapper<resourceWeijianwei> {
}
|
package com.tt.miniapp.msg.file;
import java.io.File;
import java.util.HashMap;
import org.json.JSONObject;
public class ApiStatCtrl extends AbsStringParamCtrl {
public ApiStatCtrl(String paramString) {
super(paramString);
}
protected boolean handleInvoke() {
String str = optString("path");
File file = new File(getRealFilePath(str));
if (!canRead(file)) {
this.mExtraInfo = getPermissionDenyStr(new String[] { this.mApiName, str });
return false;
}
if (!file.exists()) {
this.mExtraInfo = getNoSuchFileStr(new String[] { str });
return false;
}
Stats stats = Stats.getFileStats(getRealFilePath(str));
if (stats != null) {
this.mExtraData = new HashMap<String, Object>();
this.mExtraData.put("stat", stats.toJson());
return true;
}
this.mExtraInfo = getFormatExtraInfo("get stat fail %s", new Object[] { str });
return false;
}
protected void parseParam(String paramString) throws Exception {
JSONObject jSONObject = new JSONObject(paramString);
this.mArgumentsMap.put("path", new AbsFileCtrl.ValuePair<String>(this, jSONObject.optString("path"), true));
}
}
/* Location: C:\Users\august\Desktop\tik\df_miniapp\classes.jar!\com\tt\miniapp\msg\file\ApiStatCtrl.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 1.1.3
*/
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.hudi.common.model;
import org.apache.hudi.common.util.Option;
import org.apache.avro.Schema;
import org.apache.avro.generic.IndexedRecord;
import java.io.IOException;
import java.io.Serializable;
import java.util.Map;
/**
* Every Hoodie table has an implementation of the <code>HoodieRecordPayload</code> This abstracts out callbacks which
* depend on record specific logic.
*/
public interface HoodieRecordPayload<T extends HoodieRecordPayload> extends Serializable {
/**
* When more than one HoodieRecord have the same HoodieKey, this function combines them before attempting to
* insert/upsert (if combining turned on in HoodieClientConfig).
*/
T preCombine(T another);
/**
* This methods lets you write custom merging/combining logic to produce new values as a function of current value on
* storage and whats contained in this object.
* <p>
* eg: 1) You are updating counters, you may want to add counts to currentValue and write back updated counts 2) You
* may be reading DB redo logs, and merge them with current image for a database row on storage
*
* @param currentValue Current value in storage, to merge/combine this payload with
* @param schema Schema used for record
* @return new combined/merged value to be written back to storage. EMPTY to skip writing this record.
*/
Option<IndexedRecord> combineAndGetUpdateValue(IndexedRecord currentValue, Schema schema) throws IOException;
/**
* Generates an avro record out of the given HoodieRecordPayload, to be written out to storage. Called when writing a
* new value for the given HoodieKey, wherein there is no existing record in storage to be combined against. (i.e
* insert) Return EMPTY to skip writing this record.
*/
Option<IndexedRecord> getInsertValue(Schema schema) throws IOException;
/**
* This method can be used to extract some metadata from HoodieRecordPayload. The metadata is passed to
* {@code WriteStatus.markSuccess()} and {@code WriteStatus.markFailure()} in order to compute some aggregate metrics
* using the metadata in the context of a write success or failure.
*/
default Option<Map<String, String>> getMetadata() {
return Option.empty();
}
}
|
package com.storytime.client.joinroom;
import de.novanic.eventservice.client.event.Event;
import de.novanic.eventservice.client.event.domain.Domain;
import de.novanic.eventservice.client.event.domain.DomainFactory;
public class LobbyRoomHostedEvent implements Event {
private static final long serialVersionUID = 1L;
public static Domain domain = DomainFactory.getDomain("Lobby");
public String roomName = "";
public String theme = "";
public String password = "";
public int authorsTime = 0;
public int mastersTime = 0;
public int numberOfPlayers = 0;
public int pointLimit = 0;
public LobbyRoomHostedEvent() {
}
public static Domain getDomain() {
return domain;
}
public static void setDomain(Domain domain) {
LobbyRoomHostedEvent.domain = domain;
}
public String getRoomName() {
return roomName;
}
public void setRoomName(String roomName) {
this.roomName = roomName;
}
public String getTheme() {
return theme;
}
public void setTheme(String theme) {
this.theme = theme;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public int getAuthorsTime() {
return authorsTime;
}
public void setAuthorsTime(int authorsTime) {
this.authorsTime = authorsTime;
}
public int getMastersTime() {
return mastersTime;
}
public void setMastersTime(int mastersTime) {
this.mastersTime = mastersTime;
}
public int getNumberOfPlayers() {
return numberOfPlayers;
}
public void setNumberOfPlayers(int numberOfPlayers) {
this.numberOfPlayers = numberOfPlayers;
}
public int getPointLimit() {
return pointLimit;
}
public void setPointLimit(int pointLimit) {
this.pointLimit = pointLimit;
}
}
|
/*******************************************************************************
* Copyright 2020 Grégoire Martinetti
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
******************************************************************************/
package org.gmart.devtools.java.serdes.codeGen.javaGen.model.referenceResolution.runtime;
import java.util.Arrays;
import java.util.List;
public interface KeysFor<T> extends DependentInstance {
T getReferredObject();
List<Object> getKeys();
void setKeys(List<Object> referenceVector);
default void setKeys(Object ... referenceVector) {
setKeys(Arrays.asList(referenceVector));
}
}
|
package com.pz.Converter;
import com.pz.DataBase.PokojeZdjecia;
import com.pz.Dto.PokojeZdjeciaDto;
import org.springframework.stereotype.Component;
@Component
public class PokojeZdjeciaConverterImpl implements PokojeZdjeciaConverter {
@Override
public PokojeZdjecia convertToEntity(PokojeZdjeciaDto pokojeZdjeciaDto) {
return PokojeZdjecia.builder()
.id(pokojeZdjeciaDto.getId())
.idPokoju(pokojeZdjeciaDto.getIdPokoju())
.zdjecie(pokojeZdjeciaDto.getZdjecie())
.build();
}
@Override
public PokojeZdjeciaDto convertToDto(PokojeZdjecia pokojeZdjecia) {
return PokojeZdjeciaDto.builder()
.id(pokojeZdjecia.getId())
.idPokoju(pokojeZdjecia.getIdPokoju())
.zdjecie(pokojeZdjecia.getZdjecie())
.build();
}
}
|
package com.tencent.mm.ac;
import com.tencent.mm.ab.d;
import com.tencent.mm.kernel.g;
import com.tencent.mm.model.bv.a;
import com.tencent.mm.platformtools.ab;
import com.tencent.mm.protocal.c.by;
import com.tencent.mm.sdk.platformtools.bi;
import com.tencent.mm.sdk.platformtools.bl;
import com.tencent.mm.sdk.platformtools.x;
import com.tencent.mm.storage.aa;
import java.util.Map;
class z$9 implements a {
final /* synthetic */ z dMY;
z$9(z zVar) {
this.dMY = zVar;
}
public final void a(d.a aVar) {
by byVar = aVar.dIN;
if (byVar == null) {
x.e("MicroMsg.SubCoreBiz", "AddMsg is null.");
return;
}
String a = ab.a(byVar.rcl);
if (bi.oW(a)) {
x.e("MicroMsg.SubCoreBiz", "msg content is null");
return;
}
Map z = bl.z(a, "sysmsg");
if (z == null || z.size() <= 0) {
x.e("MicroMsg.SubCoreBiz", "receiveMessage, no sysmsg");
return;
}
if ("mmbizattrappsvr_BizAttrSync".equalsIgnoreCase((String) z.get(".sysmsg.$type"))) {
x.i("MicroMsg.SubCoreBiz", "BizAttrSync openFlag : %d.", new Object[]{Integer.valueOf(bi.getInt((String) z.get(".sysmsg.mmbizattrappsvr_BizAttrSync.openflag"), 0))});
g.Ei().DT().a(aa.a.sQF, Integer.valueOf(r0));
g.Ei().DT().lm(true);
return;
}
x.e("MicroMsg.SubCoreBiz", "receiveMessage, type not BizAttrSync.");
}
}
|
package com.rizqisatria.go_travel;
import android.app.DatePickerDialog;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.DatePicker;
import android.widget.EditText;
import android.widget.ProgressBar;
import android.widget.Spinner;
import android.widget.TextView;
import com.google.android.gms.tasks.OnCompleteListener;
import com.google.android.gms.tasks.Task;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Locale;
public class Drop_Activity extends AppCompatActivity {
public static final String extra = "extra";
FirebaseDatabase firebaseDatabase;
DatabaseReference databaseReference;
Spinner spinner;
Spinner spinner1;
Spinner spinner2;
Integer harga = 0;
String Tharga;
private DatePickerDialog datePickerDialog;
private SimpleDateFormat dateFormatter;
private TextView tvDateResult;
private Button btDatePicker;
private Button btnPesan;
private EditText jumlah;
private TextView tanggal;
private TextView price;
String show,jemput,tujuan, jumlah1;
ProgressBar progressBar;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_drop_);
firebaseDatabase = FirebaseDatabase.getInstance();
databaseReference = firebaseDatabase.getReference("pesanan");
spinner = (Spinner) findViewById(R.id.spinner1);
String [] countries = {"Tabanan", "Kuta", "Denpasar"};
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,android.R.layout.simple_spinner_dropdown_item,countries);
spinner.setAdapter(adapter);
spinner1 = (Spinner) findViewById(R.id.spinner2);
String [] countries1 = {"Denpasar", "Kuta", "Tabanan"};
ArrayAdapter<String> adapter1 = new ArrayAdapter<String>(this,android.R.layout.simple_spinner_dropdown_item,countries1);
spinner1.setAdapter(adapter1);
spinner2 = (Spinner) findViewById(R.id.spinner3);
String [] countries2 = {"1", "2", "3", "4"};
ArrayAdapter<String> adapter2 = new ArrayAdapter<String>(this,android.R.layout.simple_spinner_dropdown_item,countries2);
spinner2.setAdapter(adapter2);
price = (TextView) findViewById(R.id.harga);
spinner2.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {
String plhpesanan = spinner2.getSelectedItem().toString();
Integer plh = Integer.parseInt(plhpesanan);
String jmpt = spinner.getSelectedItem().toString();
switch (jmpt) {
case "Tabanan":
harga = plh * 15000;
Tharga =String.valueOf(harga);
price.setText(Tharga);
break;
case "Kuta":
harga = plh * 50000;
Tharga =String.valueOf(harga);
price.setText(Tharga);
break;
case "Denpasar":
harga = plh * 35000;
Tharga =String.valueOf(harga);
price.setText(Tharga);break;
}
}
@Override
public void onNothingSelected (AdapterView < ? > adapterView){
}
});
progressBar = (ProgressBar) findViewById(R.id.progress);
progressBar.setVisibility(View.GONE);
jemput = spinner1.getSelectedItem().toString();
spinner2.getSelectedItem().toString();
tujuan = spinner.getSelectedItem().toString().trim();
tanggal = (TextView) findViewById(R.id.tampil);
show = tanggal.getText().toString();
dateFormatter = new SimpleDateFormat("dd-MM-yyyy", Locale.US);
btnPesan = (Button) findViewById(R.id.pesan1);
tvDateResult = (TextView) findViewById(R.id.tampil);
btDatePicker = (Button) findViewById(R.id.date);
btDatePicker.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
showDateDialog();
}
});
btnPesan.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
final pesanan pesan=new pesanan(spinner.getSelectedItem().toString(),spinner1.getSelectedItem().toString(),spinner2.getSelectedItem().toString(),tanggal.getText().toString(),price.getText().toString());
progressBar.setVisibility(View.VISIBLE);
final String key = databaseReference.push().getKey();
databaseReference.child(key).setValue(pesan).addOnCompleteListener(new OnCompleteListener<Void>() {
@Override
public void onComplete(@NonNull Task<Void> task) {
if (task.isSuccessful()) {
progressBar.setVisibility(View.GONE);
Intent intent = new Intent(Drop_Activity.this, TampilDrop_Activity.class);
intent.putExtra(extra, key);
startActivity(intent);
}
}
});
}
});
}
/*
Config config = new Config(this);
config.setTujuan(kota);
config.getTujuan();
tvJemput.setText(config.getTujuan());
*/
private void showDateDialog(){
Calendar newCalendar = Calendar.getInstance();
datePickerDialog = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {
@Override
public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {
Calendar newDate = Calendar.getInstance();
newDate.set(year, monthOfYear, dayOfMonth);
tvDateResult.setText(" "+dateFormatter.format(newDate.getTime()));
}
},newCalendar.get(Calendar.YEAR), newCalendar.get(Calendar.MONTH), newCalendar.get(Calendar.DAY_OF_MONTH));
datePickerDialog.show();
}
}
|
package graph;
/**
* This is for DiGraph
* to implement Depth first search
* @author c0kalla
*
*/
public class DepthFirstSearch {
private boolean[] marked;
private int[] edgeTo;
private int s;
public DepthFirstSearch(DiGraph g, int s) {
this.marked = new boolean[g.V()];
this.edgeTo = new int[g.V()];
this.s = s;
dfs(g, s);
}
public void dfs(DiGraph g, int v) {
this.marked[v] = true;
for(int w : g.adj(v)) {
if(!this.marked[w]) {
dfs(g, w);
this.edgeTo[w] = v;
}
}
}
public boolean visited(int v) {
return marked[v];
}
}
|
package com.example.rohitkumarbhamu.coolvachans.data;
import android.util.Log;
import com.android.volley.Request;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.JsonArrayRequest;
import com.example.rohitkumarbhamu.coolvachans.controller.AppController;
import com.example.rohitkumarbhamu.coolvachans.model.Quote;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.ArrayList;
//created by rohit bhamu
public class QuoteData {
ArrayList<Quote>quoteArrayList=new ArrayList<>();
public void getQuotes(final QuoteListAsyncResponse callBack){
String url="https://gist.githubusercontent.com/nasrulhazim/54b659e43b1035215cd0ba1d4577ee80/raw/e3c6895ce42069f0ee7e991229064f167fe8ccdc/quotes.json";
JsonArrayRequest jsonArrayRequest=new JsonArrayRequest(Request.Method.GET, url, new Response.Listener<JSONArray>() {
@Override
public void onResponse(JSONArray response) {
for (int i=0;i<response.length();i++){
try {
JSONObject quoteObject = response.getJSONObject(i);
Quote quote= new Quote();
quote.setQuote(quoteObject.getString("quote"));
quote.setAuthor(quoteObject.getString("name"));
Log.d("STUFFF::",quoteObject.getString("name"));
quoteArrayList.add(quote);
} catch (JSONException e) {
e.printStackTrace();
}
}
if (null != callBack) callBack.processFinished(quoteArrayList);
}
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
}
});
AppController.getInstance().addToRequestQueue(jsonArrayRequest);
}
}
|
package com.liu.asus.yikezhong;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.os.Handler;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import android.widget.TextView;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import javax.inject.Inject;
import bean.VisionBean;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import commpont.DaggerUpvisioncommpont;
import mInterface.UpVisonv;
import mybase.BaseActivity;
import mybase.Basepresent;
import mymodules.Upvisionmoudule;
import present.UpVisonP;
import utils.ClearCacheUtils;
import utils.SPUtils;
public class ShezhiActivity extends BaseActivity implements UpVisonv {
@Inject
UpVisonP upVisonP;
@BindView(R.id.shezhi_rl_clear_huncun)
RelativeLayout shezhiRlClearHuncun;
@BindView(R.id.shezhi_login_clear)
Button shezhiLoginClear;
@BindView(R.id.she_tv_hcnum)
TextView sheTvHcnum;
@BindView(R.id.shezhi_back)
ImageView shezhiBack;
@BindView(R.id.tv_back)
TextView tvBack;
@BindView(R.id.shezhi_rl_check_version)
RelativeLayout shezhiRlCheckVersion;
Handler m_mainHandler;
ProgressDialog m_progressDlg;
@Override
public List<Basepresent> initp() {
return null;
}
@Override
public int getid() {
return R.layout.activity_shezhi;
}
@Override
public void init() {
m_mainHandler = new Handler();
m_progressDlg = new ProgressDialog(this);
m_progressDlg.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
// 设置ProgressDialog 的进度条是否不明确 false 就是不设置为不明确
m_progressDlg.setIndeterminate(false);
DaggerUpvisioncommpont.builder().upvisionmoudule(new Upvisionmoudule(this)).build().upjects(this);
try {
String totalCacheSize = ClearCacheUtils.getdqSize(this);
sheTvHcnum.setText(totalCacheSize);
} catch (Exception e) {
e.printStackTrace();
}
}
@Override
public void ondestory() {
}
@OnClick({R.id.shezhi_rl_clear_huncun, R.id.shezhi_login_clear, R.id.shezhi_back, R.id.tv_back,R.id.shezhi_rl_check_version})
public void onViewClicked(View view) {
switch (view.getId()) {
case R.id.shezhi_rl_clear_huncun:
try {
AlertDialog.Builder ad = new AlertDialog.Builder(this)
.setTitle("是否清除缓存")
.setNegativeButton("取消", null)
.setPositiveButton("确定", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
ClearCacheUtils.clearAllCache(ShezhiActivity.this);
try {
ClearCacheUtils.clearAllCache(ShezhiActivity.this);
String totalCacheSize = ClearCacheUtils.getdqSize(ShezhiActivity.this);
sheTvHcnum.setText(totalCacheSize);
} catch (Exception e) {
e.printStackTrace();
}
}
});
ad.show();
} catch (Exception e) {
e.printStackTrace();
}
break;
case R.id.shezhi_login_clear:
SPUtils.clear(this);
Intent intent = new Intent(this, LoginActivity.class);
startActivity(intent);
finish();
break;
case R.id.shezhi_back:
finish();
break;
case R.id.tv_back:
finish();
break;
case R.id.shezhi_rl_check_version:
upVisonP.getupvision();
break;
}
}
@Override
public void success() {
}
@Override
public void fail(String msg) {
}
@Override
public void upsuccess(final VisionBean visionBean) {
Toast(visionBean.versionCode);
try {
PackageInfo Common = this.getPackageManager().getPackageInfo(this.getPackageName(), 0);
int verCode = Common.versionCode;
System.out.println("verCode==="+verCode);
String verName =Common.versionName;
if(Common.versionCode==Integer.parseInt(visionBean.versionCode)){
Toast("已经是最新版本");
return;
}
String str= "当前版本:"+verName+" Code:"+verCode+" ,发现新版本:"+visionBean.versionName+
" Code:"+visionBean.versionCode+" ,是否更新?";
Dialog dialog = new AlertDialog.Builder(this).setTitle("软件更新").setMessage(str)
// 设置内容
.setPositiveButton("更新",// 设置确定按钮
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog,
int which) {
m_progressDlg.setTitle("正在下载");
m_progressDlg.setMessage("请稍候...");
downFile(visionBean.apkUrl); //开始下载
}
})
.setNegativeButton("暂不更新",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog,
int whichButton) {
// 点击"取消"按钮之后退出程序
}
}).create();// 创建
// 显示对话框
dialog.show();
} catch (PackageManager.NameNotFoundException e) {
e.printStackTrace();
}
}
private void downFile(final String url) {
m_progressDlg.show();
new Thread() {
public void run() {
HttpClient client = new DefaultHttpClient();
HttpGet get = new HttpGet(url);
HttpResponse response;
try {
response = client.execute(get);
HttpEntity entity = response.getEntity();
long length = entity.getContentLength();
m_progressDlg.setMax((int)length);//设置进度条的最大值
InputStream is = entity.getContent();
FileOutputStream fileOutputStream = null;
if (is != null) {
File file = new File(
Environment.getExternalStorageDirectory(),
"yikezhong.apk");
fileOutputStream = new FileOutputStream(file);
byte[] buf = new byte[1024];
int ch = -1;
int count = 0;
while ((ch = is.read(buf)) != -1) {
fileOutputStream.write(buf, 0, ch);
count += ch;
if (length > 0) {
m_progressDlg.setProgress(count);//设置当前进度
}
}
}
fileOutputStream.flush();
if (fileOutputStream != null) {
fileOutputStream.close();
}
down(); //告诉HANDER已经下载完成了,可以安装了
} catch (ClientProtocolException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
}.start();
}
private void down() {
m_mainHandler.post(new Runnable() {
public void run() {
m_progressDlg.cancel();
update();
}
});
}
void update() {
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.fromFile(new File(Environment
.getExternalStorageDirectory(), "yikezhong.apk")),
"application/vnd.android.package-archive");
startActivity(intent);
}
}
|
package models;
import java.util.*;
import javax.persistence.*;
import play.db.ebean.*;
@MappedSuperclass
public class Advertisement extends Model {
@Id
public Long id;
@ManyToOne
public Student student;
public String course;
public String description;
public boolean testAd;
//static methods
public static Advertisement create(Student student, String studies, String description, boolean testAd) {
Advertisement ad = new Advertisement(student, studies, description, testAd);
ad.save();
return ad;
}
public static Model.Finder<Long,Advertisement> find = new Model.Finder(Long.class, Advertisement.class);
public static List<Advertisement> findInvolving(String user) {
return find.where()
.eq("members.email", user)
.findList();
}
//actual implementation
public Advertisement(Student student, String course, String description, boolean testAd){
this.course = course;
this.description = description;
this.student = student;
this.testAd = testAd;
}
// public Advertisement(Student student){
// this.student = student;
// this.course = "";
// this.description = "";
// }
public Student getStudent() {
return student;
}
public String getCourse() {
return course;
}
public void setCourse(String course) {
this.course = course;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Long getId() {
return id;
}
public boolean isTest(){
return testAd;
}
}
|
package org.tellervo.desktop.odk.fields;
import java.util.ArrayList;
import java.util.Enumeration;
import org.tellervo.desktop.odk.SelectableChoice;
import org.tridas.interfaces.ITridas;
public class ODKUserDefinedChoiceField extends AbstractODKChoiceField {
private static final long serialVersionUID = 1L;
private Class<? extends ITridas> attachedTo;
public ODKUserDefinedChoiceField(String fieldcode, String fieldname, String description,
Object defaultvalue, Class<? extends ITridas> attachedTo, Enumeration<String> choices) {
super(ODKDataType.SELECT_ONE, fieldcode, fieldname, description, defaultvalue);
this.attachedTo = attachedTo;
ArrayList<Object> list = new ArrayList<Object>();
while(choices.hasMoreElements()){
list.add(choices.nextElement());
}
this.setPossibleChoices(SelectableChoice.makeObjectsSelectable(list));
this.selectAllChoices();
}
@Override
public Boolean isFieldRequired() {
return false;
}
@Override
public Class<? extends ITridas> getTridasClass() {
return attachedTo;
}
}
|
package com.example.wanghong.criminalintent;
import java.io.Serializable;
/**
* Created by wanghong on 2016/6/1.
*/
public class Time implements Serializable {
private int hour;
private int min;
public Time(int h,int m)
{
this.hour=h;
this.min=m;
}
@Override
public String toString() {
return hour+":"+min;
}
}
|
package PresentationLayer.View;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionListener;
/**
* The type Raport view.
*/
public class RaportView extends JFrame {
private JTextField intervalMin = new JTextField();
private JTextField intervalMax = new JTextField();
private JTextField productsOrderedMore = new JTextField();
private JTextField clientsOrdered = new JTextField();
private JTextField valueHigher= new JTextField();
private JTextField intervalDay = new JTextField();
private JButton generateRepBtn = new JButton("Generate Reports");
/**
* Instantiates a new Raport view.
*/
public RaportView(){
this.setTitle("Admin Frame");
this.setSize(550,500);
this.setLocationRelativeTo(null);
this.setVisible(true);
this.getContentPane().setBackground(new Color(206, 91, 101, 111));
intervalMin.setPreferredSize (new Dimension(50, 30));
intervalMax.setPreferredSize (new Dimension(50, 30));
valueHigher.setPreferredSize (new Dimension(50, 30));
intervalDay.setPreferredSize (new Dimension(50, 30));
clientsOrdered.setPreferredSize (new Dimension(50, 30));
productsOrderedMore.setPreferredSize (new Dimension(50, 30));
JPanel intervalPanel = new JPanel();
intervalPanel.setBounds(0,50,300,50);
intervalPanel.add(new JLabel(" Interval hour between"));
intervalPanel.add(intervalMin);
intervalPanel.add(intervalMax);
JPanel productsMorePanel = new JPanel();
productsMorePanel.setBounds(0,100,300,50);
productsMorePanel.add(new JLabel(" Products ordered more than"));
productsMorePanel.add(productsOrderedMore);
JPanel clientsOrderedPanel = new JPanel();
clientsOrderedPanel.setBounds(0,150,450,50);
clientsOrderedPanel.add(new JLabel(" Clients who ordered more than"));
clientsOrderedPanel.add(clientsOrdered);
clientsOrderedPanel.add(new JLabel(" and value higher than"));
clientsOrderedPanel.add(valueHigher);
JPanel dayPanel = new JPanel();
dayPanel.setBounds(0,200,300,50);
dayPanel.add(new JLabel(" Products ordered in day "));
dayPanel.add(intervalDay);
JPanel buttonPanel = new JPanel();
buttonPanel.setBounds(150,250,200,50);
buttonPanel.add(generateRepBtn);
JPanel allPanels = new JPanel();
allPanels.add(intervalPanel);
allPanels.add(productsMorePanel);
allPanels.add(clientsOrderedPanel);
allPanels.add(dayPanel);
allPanels.add(buttonPanel);
allPanels.setLayout(null);
this.setContentPane(allPanels);
}
/**
* Gets interval min.
*
* @return the interval min
*/
public String getIntervalMin() {
return intervalMin.getText();
}
/**
* Gets interval max.
*
* @return the interval max
*/
public String getIntervalMax() {
return intervalMax.getText();
}
/**
* Gets products ordered more.
*
* @return the products ordered more
*/
public String getProductsOrderedMore() {
return productsOrderedMore.getText();
}
/**
* Gets clients ordered.
*
* @return the clients ordered
*/
public String getClientsOrdered() {
return clientsOrdered.getText();
}
/**
* Gets value higher.
*
* @return the value higher
*/
public String getValueHigher() {
return valueHigher.getText();
}
/**
* Gets interval day.
*
* @return the interval day
*/
public String getIntervalDay() {
return intervalDay.getText();
}
/**
* Generate rep btn.
*
* @param act the act
*/
public void generateRepBtn(ActionListener act){
generateRepBtn.addActionListener(act);
}
}
|
package com.app.cosmetics.api;
import lombok.Getter;
import lombok.Setter;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
@Setter
@Getter
public class AccountRequest {
private String username;
private String password;
@Email
private String email;
@NotBlank
private String firstName;
private String lastName;
private String address;
private String avatar;
}
|
package com.zoneigh.clappybird.render;
import java.util.ArrayList;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.Texture.TextureWrap;
import com.badlogic.gdx.graphics.g2d.Animation;
import com.badlogic.gdx.graphics.g2d.Sprite;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.math.MathUtils;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.physics.box2d.Body;
import com.zoneigh.clappybird.ClappyBird;
public class SpriteRendering {
private static Texture floorTexture;
private static Sprite floorSprite;
private static TextureRegion bottomObstacleTexture;
private static TextureRegion topObstacleTexture;
private static Texture spriteTexture;
private static TextureRegion startScreenBanner;
private static TextureRegion backgroundImage;
private static TextureRegion[] birdTextures;
private static int screenWidth;
private static int screenHeight;
private static float scaleY;
private static float scaleX;
private static Sprite birdSprite;
private static Animation birdAnimation;
private static float stateTime;
private static TextureRegion currentBirdFrame;
public static void createSprites() {
spriteTexture = new Texture(Gdx.files.internal("data/sprites.png"));
//starts at (640, 256), size 318x133
startScreenBanner = new TextureRegion(spriteTexture, 640, 256, 318, 133);
//starts at (0, 0), size 640x960
backgroundImage = new TextureRegion(spriteTexture, 0, 0, 640, 960);
//starts at (640, 0), size 156x128
birdTextures = new TextureRegion[3];
birdTextures[0] = new TextureRegion(spriteTexture, 640, 0, 156, 128);
//starts at (796, 0), size 156x128
birdTextures[1] = new TextureRegion(spriteTexture, 796, 0, 156, 128);
//starts at (640, 128), size 156x128
birdTextures[2] = new TextureRegion(spriteTexture, 640, 128, 156, 128);
//starts at (796, 402), size 112x608
bottomObstacleTexture = new TextureRegion(spriteTexture, 796, 402, 112, 608);
//starts at (664, 402), size 108x608
topObstacleTexture = new TextureRegion(spriteTexture, 664, 402, 108, 608);
birdAnimation = new Animation(0.075f, birdTextures);
stateTime = 0f;
birdSprite = new Sprite(birdTextures[0]);
//Calculate birdSize
//in Bird.java, I blew it up 5 times
//it was 1 x 0.82, now it is 5 x 4.10
//so width would be (5 / VIEWPORT_WIDTH) * screenWidth
//height would be (4.10 / VIEWPORT_HEIGHT) * screenHeight
screenWidth = Gdx.graphics.getWidth();
screenHeight = Gdx.graphics.getHeight();
birdSprite.setSize(Math.round((5f / ClappyBird.VIEWPORT_WIDTH) * screenWidth), Math.round((4.1f / ClappyBird.VIEWPORT_HEIGHT) * screenHeight));
scaleY = (float) screenHeight / ClappyBird.VIEWPORT_HEIGHT;
scaleX = (float) screenWidth / ClappyBird.VIEWPORT_WIDTH;
floorTexture = new Texture(Gdx.files.internal("data/floor.png"));
floorTexture.setWrap(TextureWrap.Repeat, TextureWrap.Repeat);
floorSprite = new Sprite(floorTexture, 0, 0, 128, 64);
floorSprite.setSize(screenWidth, 64);
}
public static void disposeSprites() {
spriteTexture.dispose();
floorTexture.dispose();
}
public static void renderBackground(SpriteBatch batch) {
batch.draw(backgroundImage, 0, 0, 0, 0, (float)screenWidth, (float)screenHeight, 1f, 1f, 0);
}
public static void renderGround(SpriteBatch batch) {
//stateTime is shared by renderGround and renderBird
stateTime += Gdx.graphics.getDeltaTime();
//only scroll when the game is playing
if (ClappyBird.gamePlaying || !ClappyBird.gameStarted) {
floorSprite.setU(stateTime);
floorSprite.setU2(stateTime + 2.25f);
}
batch.draw(floorSprite, 0, Math.round((960f - (759f + 64f)) / 960f * screenHeight), 0, 0, screenWidth, 64, 1, 1, 0);
}
public static void renderObstacles(SpriteBatch batch, ArrayList<Body> obstacles) {
for (int i = 0; i < obstacles.size(); i++) {
Body body = obstacles.get(i);
if (i % 2 == 0) { //bottom obstacles
float obsYPos = body.getPosition().y;
float obstacleRatio = (obsYPos - Box2dRendering.FLOOR_HEIGHT) / Box2dRendering.OBSTACLE_HALF_WIDTH;
int obstacleHeight = Math.round(112 * obstacleRatio);
int obstacleWidth = 112;
Sprite sprite = new Sprite(bottomObstacleTexture, 0, 0, obstacleWidth, obstacleHeight);
sprite.setSize(obstacleWidth, obstacleHeight);
sprite.setPosition(Math.round(body.getPosition().x / ClappyBird.VIEWPORT_WIDTH * screenWidth - (obstacleWidth / 2f)), Math.round(body.getPosition().y / ClappyBird.VIEWPORT_HEIGHT * screenHeight - (obstacleWidth * obstacleRatio / 2f)));
sprite.draw(batch);
} else { //top obstacles
float obsYPos = body.getPosition().y;
float obstacleRatio = (ClappyBird.VIEWPORT_HEIGHT - obsYPos) / Box2dRendering.OBSTACLE_HALF_WIDTH;
int obstacleHeight = Math.round(108 * obstacleRatio);
int obstacleWidth = 108;
Sprite sprite = new Sprite(topObstacleTexture, 0, 608 - obstacleHeight, obstacleWidth, obstacleHeight);
sprite.setSize(obstacleWidth, obstacleHeight);
sprite.setPosition(Math.round(body.getPosition().x / ClappyBird.VIEWPORT_WIDTH * screenWidth - (obstacleWidth / 2f)), Math.round(body.getPosition().y / ClappyBird.VIEWPORT_HEIGHT * screenHeight - (obstacleWidth * obstacleRatio / 2f)));
sprite.draw(batch);
}
}
}
public static void renderStartScreenBanner(SpriteBatch batch) {
batch.draw(startScreenBanner, screenWidth / 2 - 318, screenHeight / 3 * 2, 0, 0, 318, 133, 2f, 2f, 0);
}
public static void renderBird(SpriteBatch batch) {
currentBirdFrame = birdAnimation.getKeyFrame(stateTime, true);
birdSprite.setRegion(currentBirdFrame);
Vector2 birdPos = Box2dRendering.birdBody.getPosition().sub(Box2dRendering.birdModelOrigin);
//scale it with screenHeight / VIEWPORT_HEIGHT
birdSprite.setPosition(birdPos.x * scaleX, birdPos.y * scaleY);
birdSprite.setOrigin(Box2dRendering.birdModelOrigin.x * scaleX, Box2dRendering.birdModelOrigin.y * scaleY);
birdSprite.setRotation(Box2dRendering.birdBody.getAngle() * MathUtils.radiansToDegrees);
birdSprite.draw(batch);
}
}
|
package org.firstinspires.ftc.teamcode.teamcode.libraries;//package org.firstinspires.ftc.teamcode.libraries;
//
//import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
//
//import org.firstinspires.ftc.robotcore.external.matrices.OpenGLMatrix;
//import org.firstinspires.ftc.robotcore.external.matrices.VectorF;
//import org.firstinspires.ftc.robotcore.external.navigation.Orientation;
//import org.firstinspires.ftc.robotcore.external.navigation.VuforiaTrackable;
//import org.firstinspires.ftc.robotcore.external.navigation.VuforiaTrackableDefaultListener;
//
//import static com.qualcomm.robotcore.hardware.DcMotor.RunMode.RUN_TO_POSITION;
//import static com.qualcomm.robotcore.hardware.DcMotor.RunMode.STOP_AND_RESET_ENCODER;
//import static org.firstinspires.ftc.robotcore.external.navigation.AngleUnit.DEGREES;
//import static org.firstinspires.ftc.robotcore.external.navigation.AxesOrder.XYZ;
//import static org.firstinspires.ftc.robotcore.external.navigation.AxesReference.EXTRINSIC;
//import static org.firstinspires.ftc.teamcode.libraries.Constants.MOTOR_BACK_LEFT_WHEEL;
//import static org.firstinspires.ftc.teamcode.libraries.Constants.MOTOR_BACK_RIGHT_WHEEL;
//import static org.firstinspires.ftc.teamcode.libraries.Constants.MOTOR_FRONT_LEFT_WHEEL;
//import static org.firstinspires.ftc.teamcode.libraries.Constants.MOTOR_FRONT_RIGHT_WHEEL;
//import static org.firstinspires.ftc.teamcode.libraries.Constants.NEVEREST_40_REVOLUTION_ENCODER_COUNT;
//import static org.firstinspires.ftc.teamcode.libraries.Constants.SERVO_ARM;
//import static org.firstinspires.ftc.teamcode.libraries.Constants.SERVO_ARM_POS_GRAB;
//import static org.firstinspires.ftc.teamcode.libraries.Constants.TRACK_DISTANCE;
//import static org.firstinspires.ftc.teamcode.libraries.Constants.WHEEL_DIAMETER;
//import static org.firstinspires.ftc.teamcode.libraries.Constants.WHEEL_GEAR_RATIO;
//
////@TeleOp(name="SKYSTONE Vuforia Nav Webcam1", group ="Concept")
//public class AutoLib2019 extends ConceptVuforiaSkyStoneNavigationWebcam2{
// private Robot robot;
// private LinearOpMode opMode;
//
//
// public AutoLib2019(LinearOpMode opMode) {
// robot = new Robot(opMode);
// this.opMode = opMode;
//
// // initTfod();
// }
// //********** Base Motor Methods **********//
//
// public void calcMove(float centimeters, float power, Constants.Direction direction) {
// // Calculates target encoder position
// final int targetPosition = (int) ((((centimeters / (Math.PI * WHEEL_DIAMETER)) *
// NEVEREST_40_REVOLUTION_ENCODER_COUNT)) * WHEEL_GEAR_RATIO);
//
// switch (direction) {
// case FORWARD:
// prepMotorsForCalcMove(targetPosition, targetPosition, targetPosition, targetPosition);
// break;
// case BACKWARD:
// prepMotorsForCalcMove(-targetPosition, -targetPosition, -targetPosition, -targetPosition);
// break;
// case LEFT:
// prepMotorsForCalcMove(-targetPosition, targetPosition, targetPosition, -targetPosition);
// break;
// case RIGHT:
// prepMotorsForCalcMove(targetPosition, -targetPosition, -targetPosition, targetPosition);
// }
//
// setBaseMotorPowers(power);
//
// while (areBaseMotorsBusy()) {
//// opMode.telemetry.addData("Left", robot.getDcMotorPosition(LEFT_WHEEL));
//// opMode.telemetry.addData("Right", robot.getDcMotorPosition(RIGHT_WHEEL));
//// opMode.telemetry.update();
// opMode.idle();
// }
//
// setBaseMotorPowers(0);
// }
//
// public void calcTurn(int degrees, float power) {
// // Calculates target encoder position
// int targetPosition = (int) (2 * ((TRACK_DISTANCE) * degrees
// * NEVEREST_40_REVOLUTION_ENCODER_COUNT) /
// (WHEEL_DIAMETER * 360));
//
//
// prepMotorsForCalcMove(-targetPosition, targetPosition, -targetPosition, targetPosition);
//
// setBaseMotorPowers(power);
//
// while (areBaseMotorsBusy()) {
//// opMode.telemetry.addData("Left", robot.getDcMotorPosition(LEFT_WHEEL));
//// opMode.telemetry.addData("Right", robot.getDcMotorPosition(RIGHT_WHEEL));
//// opMode.telemetry.update();
// opMode.idle();
// }
//
// setBaseMotorPowers(0);
// }
//
// private void setBaseMotorPowers(float power) {
// robot.setDcMotorPower(MOTOR_BACK_LEFT_WHEEL, power);
// robot.setDcMotorPower(MOTOR_FRONT_RIGHT_WHEEL, power);
// robot.setDcMotorPower(MOTOR_FRONT_LEFT_WHEEL, power);
// robot.setDcMotorPower(MOTOR_BACK_RIGHT_WHEEL, power);
// }
//
// private void prepMotorsForCalcMove(int frontLeftTargetPosition, int frontRightTargetPosition,
// int backLeftTargetPosition, int backRightTargetPosition) {
// robot.setDcMotorMode(MOTOR_FRONT_LEFT_WHEEL, STOP_AND_RESET_ENCODER);
// robot.setDcMotorMode(MOTOR_FRONT_RIGHT_WHEEL, STOP_AND_RESET_ENCODER);
// robot.setDcMotorMode(MOTOR_BACK_LEFT_WHEEL, STOP_AND_RESET_ENCODER);
// robot.setDcMotorMode(MOTOR_BACK_RIGHT_WHEEL, STOP_AND_RESET_ENCODER);
//
// robot.setDcMotorMode(MOTOR_FRONT_LEFT_WHEEL, RUN_TO_POSITION);
// robot.setDcMotorMode(MOTOR_FRONT_RIGHT_WHEEL, RUN_TO_POSITION);
// robot.setDcMotorMode(MOTOR_BACK_LEFT_WHEEL, RUN_TO_POSITION);
// robot.setDcMotorMode(MOTOR_BACK_RIGHT_WHEEL, RUN_TO_POSITION);
//
// robot.setDcMotorTargetPosition(MOTOR_FRONT_LEFT_WHEEL, frontLeftTargetPosition);
// robot.setDcMotorTargetPosition(MOTOR_FRONT_RIGHT_WHEEL, frontRightTargetPosition);
// robot.setDcMotorTargetPosition(MOTOR_BACK_LEFT_WHEEL, backLeftTargetPosition);
// robot.setDcMotorTargetPosition(MOTOR_BACK_RIGHT_WHEEL, backRightTargetPosition);
// }
//
// private boolean areBaseMotorsBusy() {
// return robot.isMotorBusy(MOTOR_FRONT_LEFT_WHEEL) || robot.isMotorBusy(MOTOR_FRONT_RIGHT_WHEEL) ||
// robot.isMotorBusy(MOTOR_BACK_LEFT_WHEEL) || robot.isMotorBusy(MOTOR_BACK_RIGHT_WHEEL);
// }
// public void moveArm() {
// robot.setServoPosition(SERVO_ARM, SERVO_ARM_POS_GRAB);
// }
//
//
//
//
//}
|
package com.jc.databinding.util;
/**
* Created by jc on 2016-5-12.
*/
public class StringUtils {
public static boolean isEmpty(Object object){
return object == null || object.toString() == "";
}
public static String trimString(String str){
return isEmpty(str)?"":str.trim();
}
}
|
package com.weixin.controller;
import com.weixin.service.LoginService;
import me.chanjar.weixin.common.error.WxErrorException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class LoginController {
@Autowired
private LoginService loginService;
@GetMapping("/login/{code}")
public void login(@PathVariable("code") String code) {
try {
loginService.login(code);
} catch (WxErrorException e) {
e.printStackTrace();
}
}
}
|
package netbase;
/**
* @author kangkang lou
*/
import java.util.Scanner;
/**
* 分类讨论下。
* <p>
* 显然,任意数和 4 的倍数相乘,其结果仍是 4 的倍数;
* 显然,若存在任意数量 2 的倍数,两两之间乘起来就是 4 的倍数;
* 如果存在一个数不是 2 的倍数,即它是一个奇数:
* 放在 2 的倍数旁边,一定不符合要求;
* 放在 4 的倍数旁边,相乘结果仍是 4 的倍数。
* <p>
* <p>
* 因此符合要求的排列分两种情况:
* <p>
* 存在 2 的倍数,所有 2 的倍数相邻排列,需要一个 4 的倍数连接剩下的数,奇数最多和 4 的倍数数量相等,要求 countMod4 >= countOdd
* 没有 2 的倍数,原本放 2 的倍数一端可以改放一个奇数,countMod4 >= countOdd - 1
*/
public class Main_4 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
while (in.hasNext()) {
int t = in.nextInt();
for (int i = 0; i < t; i++) {
int n = in.nextInt();
int a[] = new int[n];
for (int j = 0; j < n; j++) {
a[j] = in.nextInt();
}
int mod4_num = 0, mod2_num = 0, odd = 0;
for (int k = 0; k < a.length; k++) {
if (a[k] % 4 == 0) {
mod4_num++;
} else if (a[k] % 2 == 0) {
mod2_num++;
} else {
odd++;
}
}
if (mod2_num > 0) {
if (mod4_num >= odd) {
System.out.println("Yes");
} else {
System.out.println("No");
}
} else {
if (mod4_num >= (odd - 1)) {
System.out.println("Yes");
} else {
System.out.println("No");
}
}
}
}
}
}
|
package com.example.railway.service.Machinist;
import com.example.railway.model.Locomotive;
import com.example.railway.model.Machinist;
import java.util.List;
public interface IMachinistService {
Machinist update(Machinist machinist);
Machinist delete(String id);
Machinist getById(String id);
Machinist create(Machinist machinist);
List<Machinist> getAll();
}
|
public class DeJaMort extends Exception {
}
|
package com.pearl.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;
import com.pearl.domain.BoardVO;
import com.pearl.domain.EmotionVO;
import com.pearl.service.EmotionService;
import com.pearl.service.GalleryService;
import lombok.Setter;
@Controller
@RequestMapping("/gallery/*")
public class GalleryController {
@Setter(onMethod_ = @Autowired)
private GalleryService service;
@Setter(onMethod_ = @Autowired)
private EmotionService emotion;
@RequestMapping("/list")
public ModelAndView list() {
ModelAndView mv = new ModelAndView("gallery/gallery");
List<BoardVO> list = service.list();
mv.addObject("gallery", list);
return mv;
}
@RequestMapping("/get")
public ModelAndView get(int boardNum) {
ModelAndView mv = new ModelAndView("gallery/get");
BoardVO board = service.read(boardNum);
mv.addObject("gallery", board);
mv.addObject("writer", service.readWriter(board.getMemNum()));
List<EmotionVO> emo = emotion.emoCount(boardNum);
for(int i=0;i<emo.size();i++) {
EmotionVO vo = emo.get(i);
mv.addObject(vo.getEmoExpress(), vo.getEmoCount());
}
//mv.addObject("emotion", emotion.emoCount(boardNum));
return mv;
}
@RequestMapping("/write")
public ModelAndView write() {
return new ModelAndView("gallery/write");
}
@PostMapping("/register")
public ModelAndView register(BoardVO vo) {
ModelAndView mv = new ModelAndView("redirect:/gallery/list");
service.insert(vo);
return mv;
}
@GetMapping("/modify")
public ModelAndView modify(int boardNum) {
ModelAndView mv = new ModelAndView("gallery/modify");
mv.addObject("gallery", service.read(boardNum));
return mv;
}
@PostMapping("/modify")
public ModelAndView modify(BoardVO vo) {
ModelAndView mv = new ModelAndView();
service.update(vo);
mv.setViewName("redirect:/gallery/get?boardNum="+vo.getBoardNum());
return mv;
}
@RequestMapping("/delete")
public ModelAndView delete(int boardNum) {
ModelAndView mv = new ModelAndView();
service.delete(boardNum);
mv.setViewName("redirect:/gallery/list");
return mv;
}
@RequestMapping(value="/emotion", method=RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE,
produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<String> emotion(@RequestBody EmotionVO vo) throws Exception{
System.out.println("vo : "+vo.getBoardNum()+","+vo.getMemNum()+","+vo.getEmoExpress());
EmotionVO emo = emotion.getEmo(vo);
if(emo==null) {
emotion.emotionInsert(vo);
} else {
emotion.updateEmo(vo);
}
return new ResponseEntity<String>(vo.getEmoExpress(), HttpStatus.OK);
}
}
|
package canalsprojects.mysql_products;
/**
* Created by knals on 27/08/2014.
*/
import java.util.HashMap;
import java.util.List;
import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
public class CustomListAdapter extends BaseAdapter {
private Activity activity;
private LayoutInflater inflater;
private List<HashMap<String, String>> data;
private int resource;
private String[] from;
private int[] to;
public CustomListAdapter(Activity activity, List<HashMap<String, String>> data,
int resource, String[] from, int[] to) {
this.activity = activity;
this.resource = resource;
this.data = data;
this.from = from;
this.to = to;
}
@Override
public int getCount() {
return data.size();
}
@Override
public Object getItem(int location) {
return data.get(location);
}
@Override
public long getItemId(int position) {
return position;
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
HashMap<String, String> map = (HashMap) this.data.get(position);
if (inflater == null)
inflater = (LayoutInflater) activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
if (convertView == null)
convertView = inflater.inflate(resource, null);
TextView pid = (TextView) convertView.findViewById(to[0]);
pid.setText(map.get(from[0]));
TextView name = (TextView) convertView.findViewById(to[1]);
name.setText(map.get(from[1]));
TextView price = (TextView) convertView.findViewById(to[2]);
price.setText(map.get(from[2]));
TextView description = (TextView) convertView.findViewById(to[3]);
description.setText(map.get(from[3]));
ImageView img = (ImageView) convertView.findViewById(to[4]);
new DownloadImageTask((ImageView) convertView.findViewById(R.id.thumbnail)).execute(map.get(from[4]));
return convertView;
}
}
|
// **********************************************************************
//
// Generated by the ORBacus IDL to Java Translator
//
// Copyright (c) 2002
// IONA Technologies, Inc.
// Waltham, MA, USA
//
// All Rights Reserved
//
// **********************************************************************
// Version: 4.2.2
package chat;
//
// IDL:ChatService:1.0
//
public class _ChatServiceStub extends org.omg.CORBA.portable.ObjectImpl
implements ChatService
{
private static final String[] _ob_ids_ =
{
"IDL:ChatService:1.0",
};
public String[]
_ids()
{
return _ob_ids_;
}
final public static java.lang.Class _ob_opsClass = ChatServiceOperations.class;
//
// IDL:ChatService/getTheDate:1.0
//
public String
getTheDate()
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("getTheDate", true);
in = _invoke(out);
String _ob_r = in.read_wstring();
return _ob_r;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("getTheDate", _ob_opsClass);
if(_ob_so == null)
continue;
ChatServiceOperations _ob_self = (ChatServiceOperations)_ob_so.servant;
try
{
return _ob_self.getTheDate();
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:ChatService/newChatRoom:1.0
//
public void
newChatRoom(String _ob_a0)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("newChatRoom", true);
out.write_string(_ob_a0);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("newChatRoom", _ob_opsClass);
if(_ob_so == null)
continue;
ChatServiceOperations _ob_self = (ChatServiceOperations)_ob_so.servant;
try
{
_ob_self.newChatRoom(_ob_a0);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
//
// IDL:ChatService/send:1.0
//
public void
send(String _ob_a0,
String _ob_a1)
{
while(true)
{
if(!this._is_local())
{
org.omg.CORBA.portable.OutputStream out = null;
org.omg.CORBA.portable.InputStream in = null;
try
{
out = _request("send", true);
out.write_string(_ob_a0);
out.write_string(_ob_a1);
in = _invoke(out);
return;
}
catch(org.omg.CORBA.portable.RemarshalException _ob_ex)
{
continue;
}
catch(org.omg.CORBA.portable.ApplicationException _ob_aex)
{
final String _ob_id = _ob_aex.getId();
in = _ob_aex.getInputStream();
throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: " + _ob_id);
}
finally
{
_releaseReply(in);
}
}
else
{
org.omg.CORBA.portable.ServantObject _ob_so = _servant_preinvoke("send", _ob_opsClass);
if(_ob_so == null)
continue;
ChatServiceOperations _ob_self = (ChatServiceOperations)_ob_so.servant;
try
{
_ob_self.send(_ob_a0, _ob_a1);
return;
}
finally
{
_servant_postinvoke(_ob_so);
}
}
}
}
}
|
package io.x666c.glib4j.graphics;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import javax.swing.JFrame;
import io.x666c.glib4j.GDisplay;
import io.x666c.glib4j.GFrame;
public class DisplayRenderer extends Renderer {
private final GDisplay display;
public DisplayRenderer(Graphics2D g, GDisplay display) {
super(g, null);
this.display = display;
}
@Override
public GFrame gframe() {
throw new UnsupportedOperationException();
}
@Override
public JFrame jframe() {
throw new UnsupportedOperationException();
}
@Override
public int width() {
return super.width();
}
@Override
public int height() {
return super.height();
}
@Override
public BufferedImage toImage() {
BufferedImage i = new BufferedImage(display.getSize().width, display.getSize().height, BufferedImage.TYPE_INT_RGB);
Graphics2D imageGraphics = i.createGraphics();
imageGraphics.setColor(Color.GRAY);
imageGraphics.fillRect(0, 0, 100, 100);
display.paint(imageGraphics);
imageGraphics.dispose();
return i;
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.